{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.APIGateway.GetResources
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Lists information about a collection of Resource resources.
--
-- This operation returns paginated results.
module Amazonka.APIGateway.GetResources
  ( -- * Creating a Request
    GetResources (..),
    newGetResources,

    -- * Request Lenses
    getResources_embed,
    getResources_limit,
    getResources_position,
    getResources_restApiId,

    -- * Destructuring the Response
    GetResourcesResponse (..),
    newGetResourcesResponse,

    -- * Response Lenses
    getResourcesResponse_items,
    getResourcesResponse_position,
    getResourcesResponse_httpStatus,
  )
where

import Amazonka.APIGateway.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | Request to list information about a collection of resources.
--
-- /See:/ 'newGetResources' smart constructor.
data GetResources = GetResources'
  { -- | A query parameter used to retrieve the specified resources embedded in
    -- the returned Resources resource in the response. This @embed@ parameter
    -- value is a list of comma-separated strings. Currently, the request
    -- supports only retrieval of the embedded Method resources this way. The
    -- query parameter value must be a single-valued list and contain the
    -- @\"methods\"@ string. For example,
    -- @GET \/restapis\/{restapi_id}\/resources?embed=methods@.
    GetResources -> Maybe [Text]
embed :: Prelude.Maybe [Prelude.Text],
    -- | The maximum number of returned results per page. The default value is 25
    -- and the maximum value is 500.
    GetResources -> Maybe Int
limit :: Prelude.Maybe Prelude.Int,
    -- | The current pagination position in the paged result set.
    GetResources -> Maybe Text
position :: Prelude.Maybe Prelude.Text,
    -- | The string identifier of the associated RestApi.
    GetResources -> Text
restApiId :: Prelude.Text
  }
  deriving (GetResources -> GetResources -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetResources -> GetResources -> Bool
$c/= :: GetResources -> GetResources -> Bool
== :: GetResources -> GetResources -> Bool
$c== :: GetResources -> GetResources -> Bool
Prelude.Eq, ReadPrec [GetResources]
ReadPrec GetResources
Int -> ReadS GetResources
ReadS [GetResources]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetResources]
$creadListPrec :: ReadPrec [GetResources]
readPrec :: ReadPrec GetResources
$creadPrec :: ReadPrec GetResources
readList :: ReadS [GetResources]
$creadList :: ReadS [GetResources]
readsPrec :: Int -> ReadS GetResources
$creadsPrec :: Int -> ReadS GetResources
Prelude.Read, Int -> GetResources -> ShowS
[GetResources] -> ShowS
GetResources -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetResources] -> ShowS
$cshowList :: [GetResources] -> ShowS
show :: GetResources -> String
$cshow :: GetResources -> String
showsPrec :: Int -> GetResources -> ShowS
$cshowsPrec :: Int -> GetResources -> ShowS
Prelude.Show, forall x. Rep GetResources x -> GetResources
forall x. GetResources -> Rep GetResources x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetResources x -> GetResources
$cfrom :: forall x. GetResources -> Rep GetResources x
Prelude.Generic)

-- |
-- Create a value of 'GetResources' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'embed', 'getResources_embed' - A query parameter used to retrieve the specified resources embedded in
-- the returned Resources resource in the response. This @embed@ parameter
-- value is a list of comma-separated strings. Currently, the request
-- supports only retrieval of the embedded Method resources this way. The
-- query parameter value must be a single-valued list and contain the
-- @\"methods\"@ string. For example,
-- @GET \/restapis\/{restapi_id}\/resources?embed=methods@.
--
-- 'limit', 'getResources_limit' - The maximum number of returned results per page. The default value is 25
-- and the maximum value is 500.
--
-- 'position', 'getResources_position' - The current pagination position in the paged result set.
--
-- 'restApiId', 'getResources_restApiId' - The string identifier of the associated RestApi.
newGetResources ::
  -- | 'restApiId'
  Prelude.Text ->
  GetResources
newGetResources :: Text -> GetResources
newGetResources Text
pRestApiId_ =
  GetResources'
    { $sel:embed:GetResources' :: Maybe [Text]
embed = forall a. Maybe a
Prelude.Nothing,
      $sel:limit:GetResources' :: Maybe Int
limit = forall a. Maybe a
Prelude.Nothing,
      $sel:position:GetResources' :: Maybe Text
position = forall a. Maybe a
Prelude.Nothing,
      $sel:restApiId:GetResources' :: Text
restApiId = Text
pRestApiId_
    }

-- | A query parameter used to retrieve the specified resources embedded in
-- the returned Resources resource in the response. This @embed@ parameter
-- value is a list of comma-separated strings. Currently, the request
-- supports only retrieval of the embedded Method resources this way. The
-- query parameter value must be a single-valued list and contain the
-- @\"methods\"@ string. For example,
-- @GET \/restapis\/{restapi_id}\/resources?embed=methods@.
getResources_embed :: Lens.Lens' GetResources (Prelude.Maybe [Prelude.Text])
getResources_embed :: Lens' GetResources (Maybe [Text])
getResources_embed = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetResources' {Maybe [Text]
embed :: Maybe [Text]
$sel:embed:GetResources' :: GetResources -> Maybe [Text]
embed} -> Maybe [Text]
embed) (\s :: GetResources
s@GetResources' {} Maybe [Text]
a -> GetResources
s {$sel:embed:GetResources' :: Maybe [Text]
embed = Maybe [Text]
a} :: GetResources) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The maximum number of returned results per page. The default value is 25
-- and the maximum value is 500.
getResources_limit :: Lens.Lens' GetResources (Prelude.Maybe Prelude.Int)
getResources_limit :: Lens' GetResources (Maybe Int)
getResources_limit = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetResources' {Maybe Int
limit :: Maybe Int
$sel:limit:GetResources' :: GetResources -> Maybe Int
limit} -> Maybe Int
limit) (\s :: GetResources
s@GetResources' {} Maybe Int
a -> GetResources
s {$sel:limit:GetResources' :: Maybe Int
limit = Maybe Int
a} :: GetResources)

-- | The current pagination position in the paged result set.
getResources_position :: Lens.Lens' GetResources (Prelude.Maybe Prelude.Text)
getResources_position :: Lens' GetResources (Maybe Text)
getResources_position = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetResources' {Maybe Text
position :: Maybe Text
$sel:position:GetResources' :: GetResources -> Maybe Text
position} -> Maybe Text
position) (\s :: GetResources
s@GetResources' {} Maybe Text
a -> GetResources
s {$sel:position:GetResources' :: Maybe Text
position = Maybe Text
a} :: GetResources)

-- | The string identifier of the associated RestApi.
getResources_restApiId :: Lens.Lens' GetResources Prelude.Text
getResources_restApiId :: Lens' GetResources Text
getResources_restApiId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetResources' {Text
restApiId :: Text
$sel:restApiId:GetResources' :: GetResources -> Text
restApiId} -> Text
restApiId) (\s :: GetResources
s@GetResources' {} Text
a -> GetResources
s {$sel:restApiId:GetResources' :: Text
restApiId = Text
a} :: GetResources)

instance Core.AWSPager GetResources where
  page :: GetResources -> AWSResponse GetResources -> Maybe GetResources
page GetResources
rq AWSResponse GetResources
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse GetResources
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' GetResourcesResponse (Maybe Text)
getResourcesResponse_position
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
        forall a. Maybe a
Prelude.Nothing
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse GetResources
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' GetResourcesResponse (Maybe [Resource])
getResourcesResponse_items
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
        forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
        forall a. a -> Maybe a
Prelude.Just
          forall a b. (a -> b) -> a -> b
Prelude.$ GetResources
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' GetResources (Maybe Text)
getResources_position
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse GetResources
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' GetResourcesResponse (Maybe Text)
getResourcesResponse_position
          forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

instance Core.AWSRequest GetResources where
  type AWSResponse GetResources = GetResourcesResponse
  request :: (Service -> Service) -> GetResources -> Request GetResources
request Service -> Service
overrides =
    forall a. ToRequest a => Service -> a -> Request a
Request.get (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy GetResources
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetResources)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe [Resource] -> Maybe Text -> Int -> GetResourcesResponse
GetResourcesResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"item" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"position")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable GetResources where
  hashWithSalt :: Int -> GetResources -> Int
hashWithSalt Int
_salt GetResources' {Maybe Int
Maybe [Text]
Maybe Text
Text
restApiId :: Text
position :: Maybe Text
limit :: Maybe Int
embed :: Maybe [Text]
$sel:restApiId:GetResources' :: GetResources -> Text
$sel:position:GetResources' :: GetResources -> Maybe Text
$sel:limit:GetResources' :: GetResources -> Maybe Int
$sel:embed:GetResources' :: GetResources -> Maybe [Text]
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
embed
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
limit
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
position
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
restApiId

instance Prelude.NFData GetResources where
  rnf :: GetResources -> ()
rnf GetResources' {Maybe Int
Maybe [Text]
Maybe Text
Text
restApiId :: Text
position :: Maybe Text
limit :: Maybe Int
embed :: Maybe [Text]
$sel:restApiId:GetResources' :: GetResources -> Text
$sel:position:GetResources' :: GetResources -> Maybe Text
$sel:limit:GetResources' :: GetResources -> Maybe Int
$sel:embed:GetResources' :: GetResources -> Maybe [Text]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
embed
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
limit
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
position
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
restApiId

instance Data.ToHeaders GetResources where
  toHeaders :: GetResources -> ResponseHeaders
toHeaders =
    forall a b. a -> b -> a
Prelude.const
      ( forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Accept"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# (ByteString
"application/json" :: Prelude.ByteString)
          ]
      )

instance Data.ToPath GetResources where
  toPath :: GetResources -> ByteString
toPath GetResources' {Maybe Int
Maybe [Text]
Maybe Text
Text
restApiId :: Text
position :: Maybe Text
limit :: Maybe Int
embed :: Maybe [Text]
$sel:restApiId:GetResources' :: GetResources -> Text
$sel:position:GetResources' :: GetResources -> Maybe Text
$sel:limit:GetResources' :: GetResources -> Maybe Int
$sel:embed:GetResources' :: GetResources -> Maybe [Text]
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ByteString
"/restapis/", forall a. ToByteString a => a -> ByteString
Data.toBS Text
restApiId, ByteString
"/resources"]

instance Data.ToQuery GetResources where
  toQuery :: GetResources -> QueryString
toQuery GetResources' {Maybe Int
Maybe [Text]
Maybe Text
Text
restApiId :: Text
position :: Maybe Text
limit :: Maybe Int
embed :: Maybe [Text]
$sel:restApiId:GetResources' :: GetResources -> Text
$sel:position:GetResources' :: GetResources -> Maybe Text
$sel:limit:GetResources' :: GetResources -> Maybe Int
$sel:embed:GetResources' :: GetResources -> Maybe [Text]
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"embed"
          forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: forall a. ToQuery a => a -> QueryString
Data.toQuery
            (forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Data.toQueryList ByteString
"member" forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
embed),
        ByteString
"limit" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Int
limit,
        ByteString
"position" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
position
      ]

-- | Represents a collection of Resource resources.
--
-- /See:/ 'newGetResourcesResponse' smart constructor.
data GetResourcesResponse = GetResourcesResponse'
  { -- | The current page of elements from this collection.
    GetResourcesResponse -> Maybe [Resource]
items :: Prelude.Maybe [Resource],
    GetResourcesResponse -> Maybe Text
position :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    GetResourcesResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetResourcesResponse -> GetResourcesResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetResourcesResponse -> GetResourcesResponse -> Bool
$c/= :: GetResourcesResponse -> GetResourcesResponse -> Bool
== :: GetResourcesResponse -> GetResourcesResponse -> Bool
$c== :: GetResourcesResponse -> GetResourcesResponse -> Bool
Prelude.Eq, ReadPrec [GetResourcesResponse]
ReadPrec GetResourcesResponse
Int -> ReadS GetResourcesResponse
ReadS [GetResourcesResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetResourcesResponse]
$creadListPrec :: ReadPrec [GetResourcesResponse]
readPrec :: ReadPrec GetResourcesResponse
$creadPrec :: ReadPrec GetResourcesResponse
readList :: ReadS [GetResourcesResponse]
$creadList :: ReadS [GetResourcesResponse]
readsPrec :: Int -> ReadS GetResourcesResponse
$creadsPrec :: Int -> ReadS GetResourcesResponse
Prelude.Read, Int -> GetResourcesResponse -> ShowS
[GetResourcesResponse] -> ShowS
GetResourcesResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetResourcesResponse] -> ShowS
$cshowList :: [GetResourcesResponse] -> ShowS
show :: GetResourcesResponse -> String
$cshow :: GetResourcesResponse -> String
showsPrec :: Int -> GetResourcesResponse -> ShowS
$cshowsPrec :: Int -> GetResourcesResponse -> ShowS
Prelude.Show, forall x. Rep GetResourcesResponse x -> GetResourcesResponse
forall x. GetResourcesResponse -> Rep GetResourcesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetResourcesResponse x -> GetResourcesResponse
$cfrom :: forall x. GetResourcesResponse -> Rep GetResourcesResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetResourcesResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'items', 'getResourcesResponse_items' - The current page of elements from this collection.
--
-- 'position', 'getResourcesResponse_position' - Undocumented member.
--
-- 'httpStatus', 'getResourcesResponse_httpStatus' - The response's http status code.
newGetResourcesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetResourcesResponse
newGetResourcesResponse :: Int -> GetResourcesResponse
newGetResourcesResponse Int
pHttpStatus_ =
  GetResourcesResponse'
    { $sel:items:GetResourcesResponse' :: Maybe [Resource]
items = forall a. Maybe a
Prelude.Nothing,
      $sel:position:GetResourcesResponse' :: Maybe Text
position = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:GetResourcesResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The current page of elements from this collection.
getResourcesResponse_items :: Lens.Lens' GetResourcesResponse (Prelude.Maybe [Resource])
getResourcesResponse_items :: Lens' GetResourcesResponse (Maybe [Resource])
getResourcesResponse_items = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetResourcesResponse' {Maybe [Resource]
items :: Maybe [Resource]
$sel:items:GetResourcesResponse' :: GetResourcesResponse -> Maybe [Resource]
items} -> Maybe [Resource]
items) (\s :: GetResourcesResponse
s@GetResourcesResponse' {} Maybe [Resource]
a -> GetResourcesResponse
s {$sel:items:GetResourcesResponse' :: Maybe [Resource]
items = Maybe [Resource]
a} :: GetResourcesResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Undocumented member.
getResourcesResponse_position :: Lens.Lens' GetResourcesResponse (Prelude.Maybe Prelude.Text)
getResourcesResponse_position :: Lens' GetResourcesResponse (Maybe Text)
getResourcesResponse_position = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetResourcesResponse' {Maybe Text
position :: Maybe Text
$sel:position:GetResourcesResponse' :: GetResourcesResponse -> Maybe Text
position} -> Maybe Text
position) (\s :: GetResourcesResponse
s@GetResourcesResponse' {} Maybe Text
a -> GetResourcesResponse
s {$sel:position:GetResourcesResponse' :: Maybe Text
position = Maybe Text
a} :: GetResourcesResponse)

-- | The response's http status code.
getResourcesResponse_httpStatus :: Lens.Lens' GetResourcesResponse Prelude.Int
getResourcesResponse_httpStatus :: Lens' GetResourcesResponse Int
getResourcesResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetResourcesResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetResourcesResponse' :: GetResourcesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetResourcesResponse
s@GetResourcesResponse' {} Int
a -> GetResourcesResponse
s {$sel:httpStatus:GetResourcesResponse' :: Int
httpStatus = Int
a} :: GetResourcesResponse)

instance Prelude.NFData GetResourcesResponse where
  rnf :: GetResourcesResponse -> ()
rnf GetResourcesResponse' {Int
Maybe [Resource]
Maybe Text
httpStatus :: Int
position :: Maybe Text
items :: Maybe [Resource]
$sel:httpStatus:GetResourcesResponse' :: GetResourcesResponse -> Int
$sel:position:GetResourcesResponse' :: GetResourcesResponse -> Maybe Text
$sel:items:GetResourcesResponse' :: GetResourcesResponse -> Maybe [Resource]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [Resource]
items
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
position
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus