{-# 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.ApiGatewayV2.GetIntegrationResponses
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Gets the IntegrationResponses for an Integration.
--
-- This operation returns paginated results.
module Amazonka.ApiGatewayV2.GetIntegrationResponses
  ( -- * Creating a Request
    GetIntegrationResponses (..),
    newGetIntegrationResponses,

    -- * Request Lenses
    getIntegrationResponses_maxResults,
    getIntegrationResponses_nextToken,
    getIntegrationResponses_integrationId,
    getIntegrationResponses_apiId,

    -- * Destructuring the Response
    GetIntegrationResponsesResponse (..),
    newGetIntegrationResponsesResponse,

    -- * Response Lenses
    getIntegrationResponsesResponse_items,
    getIntegrationResponsesResponse_nextToken,
    getIntegrationResponsesResponse_httpStatus,
  )
where

import Amazonka.ApiGatewayV2.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

-- | /See:/ 'newGetIntegrationResponses' smart constructor.
data GetIntegrationResponses = GetIntegrationResponses'
  { -- | The maximum number of elements to be returned for this resource.
    GetIntegrationResponses -> Maybe Text
maxResults :: Prelude.Maybe Prelude.Text,
    -- | The next page of elements from this collection. Not valid for the last
    -- element of the collection.
    GetIntegrationResponses -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The integration ID.
    GetIntegrationResponses -> Text
integrationId :: Prelude.Text,
    -- | The API identifier.
    GetIntegrationResponses -> Text
apiId :: Prelude.Text
  }
  deriving (GetIntegrationResponses -> GetIntegrationResponses -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetIntegrationResponses -> GetIntegrationResponses -> Bool
$c/= :: GetIntegrationResponses -> GetIntegrationResponses -> Bool
== :: GetIntegrationResponses -> GetIntegrationResponses -> Bool
$c== :: GetIntegrationResponses -> GetIntegrationResponses -> Bool
Prelude.Eq, ReadPrec [GetIntegrationResponses]
ReadPrec GetIntegrationResponses
Int -> ReadS GetIntegrationResponses
ReadS [GetIntegrationResponses]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetIntegrationResponses]
$creadListPrec :: ReadPrec [GetIntegrationResponses]
readPrec :: ReadPrec GetIntegrationResponses
$creadPrec :: ReadPrec GetIntegrationResponses
readList :: ReadS [GetIntegrationResponses]
$creadList :: ReadS [GetIntegrationResponses]
readsPrec :: Int -> ReadS GetIntegrationResponses
$creadsPrec :: Int -> ReadS GetIntegrationResponses
Prelude.Read, Int -> GetIntegrationResponses -> ShowS
[GetIntegrationResponses] -> ShowS
GetIntegrationResponses -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetIntegrationResponses] -> ShowS
$cshowList :: [GetIntegrationResponses] -> ShowS
show :: GetIntegrationResponses -> String
$cshow :: GetIntegrationResponses -> String
showsPrec :: Int -> GetIntegrationResponses -> ShowS
$cshowsPrec :: Int -> GetIntegrationResponses -> ShowS
Prelude.Show, forall x. Rep GetIntegrationResponses x -> GetIntegrationResponses
forall x. GetIntegrationResponses -> Rep GetIntegrationResponses x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetIntegrationResponses x -> GetIntegrationResponses
$cfrom :: forall x. GetIntegrationResponses -> Rep GetIntegrationResponses x
Prelude.Generic)

-- |
-- Create a value of 'GetIntegrationResponses' 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:
--
-- 'maxResults', 'getIntegrationResponses_maxResults' - The maximum number of elements to be returned for this resource.
--
-- 'nextToken', 'getIntegrationResponses_nextToken' - The next page of elements from this collection. Not valid for the last
-- element of the collection.
--
-- 'integrationId', 'getIntegrationResponses_integrationId' - The integration ID.
--
-- 'apiId', 'getIntegrationResponses_apiId' - The API identifier.
newGetIntegrationResponses ::
  -- | 'integrationId'
  Prelude.Text ->
  -- | 'apiId'
  Prelude.Text ->
  GetIntegrationResponses
newGetIntegrationResponses :: Text -> Text -> GetIntegrationResponses
newGetIntegrationResponses Text
pIntegrationId_ Text
pApiId_ =
  GetIntegrationResponses'
    { $sel:maxResults:GetIntegrationResponses' :: Maybe Text
maxResults =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:GetIntegrationResponses' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:integrationId:GetIntegrationResponses' :: Text
integrationId = Text
pIntegrationId_,
      $sel:apiId:GetIntegrationResponses' :: Text
apiId = Text
pApiId_
    }

-- | The maximum number of elements to be returned for this resource.
getIntegrationResponses_maxResults :: Lens.Lens' GetIntegrationResponses (Prelude.Maybe Prelude.Text)
getIntegrationResponses_maxResults :: Lens' GetIntegrationResponses (Maybe Text)
getIntegrationResponses_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationResponses' {Maybe Text
maxResults :: Maybe Text
$sel:maxResults:GetIntegrationResponses' :: GetIntegrationResponses -> Maybe Text
maxResults} -> Maybe Text
maxResults) (\s :: GetIntegrationResponses
s@GetIntegrationResponses' {} Maybe Text
a -> GetIntegrationResponses
s {$sel:maxResults:GetIntegrationResponses' :: Maybe Text
maxResults = Maybe Text
a} :: GetIntegrationResponses)

-- | The next page of elements from this collection. Not valid for the last
-- element of the collection.
getIntegrationResponses_nextToken :: Lens.Lens' GetIntegrationResponses (Prelude.Maybe Prelude.Text)
getIntegrationResponses_nextToken :: Lens' GetIntegrationResponses (Maybe Text)
getIntegrationResponses_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationResponses' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetIntegrationResponses' :: GetIntegrationResponses -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetIntegrationResponses
s@GetIntegrationResponses' {} Maybe Text
a -> GetIntegrationResponses
s {$sel:nextToken:GetIntegrationResponses' :: Maybe Text
nextToken = Maybe Text
a} :: GetIntegrationResponses)

-- | The integration ID.
getIntegrationResponses_integrationId :: Lens.Lens' GetIntegrationResponses Prelude.Text
getIntegrationResponses_integrationId :: Lens' GetIntegrationResponses Text
getIntegrationResponses_integrationId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationResponses' {Text
integrationId :: Text
$sel:integrationId:GetIntegrationResponses' :: GetIntegrationResponses -> Text
integrationId} -> Text
integrationId) (\s :: GetIntegrationResponses
s@GetIntegrationResponses' {} Text
a -> GetIntegrationResponses
s {$sel:integrationId:GetIntegrationResponses' :: Text
integrationId = Text
a} :: GetIntegrationResponses)

-- | The API identifier.
getIntegrationResponses_apiId :: Lens.Lens' GetIntegrationResponses Prelude.Text
getIntegrationResponses_apiId :: Lens' GetIntegrationResponses Text
getIntegrationResponses_apiId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationResponses' {Text
apiId :: Text
$sel:apiId:GetIntegrationResponses' :: GetIntegrationResponses -> Text
apiId} -> Text
apiId) (\s :: GetIntegrationResponses
s@GetIntegrationResponses' {} Text
a -> GetIntegrationResponses
s {$sel:apiId:GetIntegrationResponses' :: Text
apiId = Text
a} :: GetIntegrationResponses)

instance Core.AWSPager GetIntegrationResponses where
  page :: GetIntegrationResponses
-> AWSResponse GetIntegrationResponses
-> Maybe GetIntegrationResponses
page GetIntegrationResponses
rq AWSResponse GetIntegrationResponses
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse GetIntegrationResponses
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' GetIntegrationResponsesResponse (Maybe Text)
getIntegrationResponsesResponse_nextToken
            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 GetIntegrationResponses
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' GetIntegrationResponsesResponse (Maybe [IntegrationResponse])
getIntegrationResponsesResponse_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.$ GetIntegrationResponses
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' GetIntegrationResponses (Maybe Text)
getIntegrationResponses_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse GetIntegrationResponses
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' GetIntegrationResponsesResponse (Maybe Text)
getIntegrationResponsesResponse_nextToken
          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 GetIntegrationResponses where
  type
    AWSResponse GetIntegrationResponses =
      GetIntegrationResponsesResponse
  request :: (Service -> Service)
-> GetIntegrationResponses -> Request GetIntegrationResponses
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 GetIntegrationResponses
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse GetIntegrationResponses)))
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 [IntegrationResponse]
-> Maybe Text -> Int -> GetIntegrationResponsesResponse
GetIntegrationResponsesResponse'
            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
"items" 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
"nextToken")
            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 GetIntegrationResponses where
  hashWithSalt :: Int -> GetIntegrationResponses -> Int
hashWithSalt Int
_salt GetIntegrationResponses' {Maybe Text
Text
apiId :: Text
integrationId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Text
$sel:apiId:GetIntegrationResponses' :: GetIntegrationResponses -> Text
$sel:integrationId:GetIntegrationResponses' :: GetIntegrationResponses -> Text
$sel:nextToken:GetIntegrationResponses' :: GetIntegrationResponses -> Maybe Text
$sel:maxResults:GetIntegrationResponses' :: GetIntegrationResponses -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
maxResults
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
integrationId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
apiId

instance Prelude.NFData GetIntegrationResponses where
  rnf :: GetIntegrationResponses -> ()
rnf GetIntegrationResponses' {Maybe Text
Text
apiId :: Text
integrationId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Text
$sel:apiId:GetIntegrationResponses' :: GetIntegrationResponses -> Text
$sel:integrationId:GetIntegrationResponses' :: GetIntegrationResponses -> Text
$sel:nextToken:GetIntegrationResponses' :: GetIntegrationResponses -> Maybe Text
$sel:maxResults:GetIntegrationResponses' :: GetIntegrationResponses -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
maxResults
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
integrationId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
apiId

instance Data.ToHeaders GetIntegrationResponses where
  toHeaders :: GetIntegrationResponses -> ResponseHeaders
toHeaders =
    forall a b. a -> b -> a
Prelude.const
      ( forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Content-Type"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Data.ToPath GetIntegrationResponses where
  toPath :: GetIntegrationResponses -> ByteString
toPath GetIntegrationResponses' {Maybe Text
Text
apiId :: Text
integrationId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Text
$sel:apiId:GetIntegrationResponses' :: GetIntegrationResponses -> Text
$sel:integrationId:GetIntegrationResponses' :: GetIntegrationResponses -> Text
$sel:nextToken:GetIntegrationResponses' :: GetIntegrationResponses -> Maybe Text
$sel:maxResults:GetIntegrationResponses' :: GetIntegrationResponses -> Maybe Text
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/v2/apis/",
        forall a. ToByteString a => a -> ByteString
Data.toBS Text
apiId,
        ByteString
"/integrations/",
        forall a. ToByteString a => a -> ByteString
Data.toBS Text
integrationId,
        ByteString
"/integrationresponses"
      ]

instance Data.ToQuery GetIntegrationResponses where
  toQuery :: GetIntegrationResponses -> QueryString
toQuery GetIntegrationResponses' {Maybe Text
Text
apiId :: Text
integrationId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Text
$sel:apiId:GetIntegrationResponses' :: GetIntegrationResponses -> Text
$sel:integrationId:GetIntegrationResponses' :: GetIntegrationResponses -> Text
$sel:nextToken:GetIntegrationResponses' :: GetIntegrationResponses -> Maybe Text
$sel:maxResults:GetIntegrationResponses' :: GetIntegrationResponses -> Maybe Text
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"maxResults" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
maxResults,
        ByteString
"nextToken" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
nextToken
      ]

-- | /See:/ 'newGetIntegrationResponsesResponse' smart constructor.
data GetIntegrationResponsesResponse = GetIntegrationResponsesResponse'
  { -- | The elements from this collection.
    GetIntegrationResponsesResponse -> Maybe [IntegrationResponse]
items :: Prelude.Maybe [IntegrationResponse],
    -- | The next page of elements from this collection. Not valid for the last
    -- element of the collection.
    GetIntegrationResponsesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    GetIntegrationResponsesResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetIntegrationResponsesResponse
-> GetIntegrationResponsesResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetIntegrationResponsesResponse
-> GetIntegrationResponsesResponse -> Bool
$c/= :: GetIntegrationResponsesResponse
-> GetIntegrationResponsesResponse -> Bool
== :: GetIntegrationResponsesResponse
-> GetIntegrationResponsesResponse -> Bool
$c== :: GetIntegrationResponsesResponse
-> GetIntegrationResponsesResponse -> Bool
Prelude.Eq, ReadPrec [GetIntegrationResponsesResponse]
ReadPrec GetIntegrationResponsesResponse
Int -> ReadS GetIntegrationResponsesResponse
ReadS [GetIntegrationResponsesResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetIntegrationResponsesResponse]
$creadListPrec :: ReadPrec [GetIntegrationResponsesResponse]
readPrec :: ReadPrec GetIntegrationResponsesResponse
$creadPrec :: ReadPrec GetIntegrationResponsesResponse
readList :: ReadS [GetIntegrationResponsesResponse]
$creadList :: ReadS [GetIntegrationResponsesResponse]
readsPrec :: Int -> ReadS GetIntegrationResponsesResponse
$creadsPrec :: Int -> ReadS GetIntegrationResponsesResponse
Prelude.Read, Int -> GetIntegrationResponsesResponse -> ShowS
[GetIntegrationResponsesResponse] -> ShowS
GetIntegrationResponsesResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetIntegrationResponsesResponse] -> ShowS
$cshowList :: [GetIntegrationResponsesResponse] -> ShowS
show :: GetIntegrationResponsesResponse -> String
$cshow :: GetIntegrationResponsesResponse -> String
showsPrec :: Int -> GetIntegrationResponsesResponse -> ShowS
$cshowsPrec :: Int -> GetIntegrationResponsesResponse -> ShowS
Prelude.Show, forall x.
Rep GetIntegrationResponsesResponse x
-> GetIntegrationResponsesResponse
forall x.
GetIntegrationResponsesResponse
-> Rep GetIntegrationResponsesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetIntegrationResponsesResponse x
-> GetIntegrationResponsesResponse
$cfrom :: forall x.
GetIntegrationResponsesResponse
-> Rep GetIntegrationResponsesResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetIntegrationResponsesResponse' 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', 'getIntegrationResponsesResponse_items' - The elements from this collection.
--
-- 'nextToken', 'getIntegrationResponsesResponse_nextToken' - The next page of elements from this collection. Not valid for the last
-- element of the collection.
--
-- 'httpStatus', 'getIntegrationResponsesResponse_httpStatus' - The response's http status code.
newGetIntegrationResponsesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetIntegrationResponsesResponse
newGetIntegrationResponsesResponse :: Int -> GetIntegrationResponsesResponse
newGetIntegrationResponsesResponse Int
pHttpStatus_ =
  GetIntegrationResponsesResponse'
    { $sel:items:GetIntegrationResponsesResponse' :: Maybe [IntegrationResponse]
items =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:GetIntegrationResponsesResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:GetIntegrationResponsesResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The elements from this collection.
getIntegrationResponsesResponse_items :: Lens.Lens' GetIntegrationResponsesResponse (Prelude.Maybe [IntegrationResponse])
getIntegrationResponsesResponse_items :: Lens' GetIntegrationResponsesResponse (Maybe [IntegrationResponse])
getIntegrationResponsesResponse_items = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationResponsesResponse' {Maybe [IntegrationResponse]
items :: Maybe [IntegrationResponse]
$sel:items:GetIntegrationResponsesResponse' :: GetIntegrationResponsesResponse -> Maybe [IntegrationResponse]
items} -> Maybe [IntegrationResponse]
items) (\s :: GetIntegrationResponsesResponse
s@GetIntegrationResponsesResponse' {} Maybe [IntegrationResponse]
a -> GetIntegrationResponsesResponse
s {$sel:items:GetIntegrationResponsesResponse' :: Maybe [IntegrationResponse]
items = Maybe [IntegrationResponse]
a} :: GetIntegrationResponsesResponse) 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 next page of elements from this collection. Not valid for the last
-- element of the collection.
getIntegrationResponsesResponse_nextToken :: Lens.Lens' GetIntegrationResponsesResponse (Prelude.Maybe Prelude.Text)
getIntegrationResponsesResponse_nextToken :: Lens' GetIntegrationResponsesResponse (Maybe Text)
getIntegrationResponsesResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationResponsesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetIntegrationResponsesResponse' :: GetIntegrationResponsesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetIntegrationResponsesResponse
s@GetIntegrationResponsesResponse' {} Maybe Text
a -> GetIntegrationResponsesResponse
s {$sel:nextToken:GetIntegrationResponsesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetIntegrationResponsesResponse)

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

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