{-# 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 #-}
module Amazonka.ApiGatewayV2.GetIntegrationResponse
(
GetIntegrationResponse (..),
newGetIntegrationResponse,
getIntegrationResponse_apiId,
getIntegrationResponse_integrationResponseId,
getIntegrationResponse_integrationId,
GetIntegrationResponseResponse (..),
newGetIntegrationResponseResponse,
getIntegrationResponseResponse_integrationResponseId,
getIntegrationResponseResponse_integrationResponseKey,
getIntegrationResponseResponse_templateSelectionExpression,
getIntegrationResponseResponse_contentHandlingStrategy,
getIntegrationResponseResponse_responseTemplates,
getIntegrationResponseResponse_responseParameters,
getIntegrationResponseResponse_httpStatus,
)
where
import Amazonka.ApiGatewayV2.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data GetIntegrationResponse = GetIntegrationResponse'
{
GetIntegrationResponse -> Text
apiId :: Prelude.Text,
GetIntegrationResponse -> Text
integrationResponseId :: Prelude.Text,
GetIntegrationResponse -> Text
integrationId :: Prelude.Text
}
deriving (GetIntegrationResponse -> GetIntegrationResponse -> Bool
(GetIntegrationResponse -> GetIntegrationResponse -> Bool)
-> (GetIntegrationResponse -> GetIntegrationResponse -> Bool)
-> Eq GetIntegrationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetIntegrationResponse -> GetIntegrationResponse -> Bool
$c/= :: GetIntegrationResponse -> GetIntegrationResponse -> Bool
== :: GetIntegrationResponse -> GetIntegrationResponse -> Bool
$c== :: GetIntegrationResponse -> GetIntegrationResponse -> Bool
Prelude.Eq, ReadPrec [GetIntegrationResponse]
ReadPrec GetIntegrationResponse
Int -> ReadS GetIntegrationResponse
ReadS [GetIntegrationResponse]
(Int -> ReadS GetIntegrationResponse)
-> ReadS [GetIntegrationResponse]
-> ReadPrec GetIntegrationResponse
-> ReadPrec [GetIntegrationResponse]
-> Read GetIntegrationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetIntegrationResponse]
$creadListPrec :: ReadPrec [GetIntegrationResponse]
readPrec :: ReadPrec GetIntegrationResponse
$creadPrec :: ReadPrec GetIntegrationResponse
readList :: ReadS [GetIntegrationResponse]
$creadList :: ReadS [GetIntegrationResponse]
readsPrec :: Int -> ReadS GetIntegrationResponse
$creadsPrec :: Int -> ReadS GetIntegrationResponse
Prelude.Read, Int -> GetIntegrationResponse -> ShowS
[GetIntegrationResponse] -> ShowS
GetIntegrationResponse -> String
(Int -> GetIntegrationResponse -> ShowS)
-> (GetIntegrationResponse -> String)
-> ([GetIntegrationResponse] -> ShowS)
-> Show GetIntegrationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetIntegrationResponse] -> ShowS
$cshowList :: [GetIntegrationResponse] -> ShowS
show :: GetIntegrationResponse -> String
$cshow :: GetIntegrationResponse -> String
showsPrec :: Int -> GetIntegrationResponse -> ShowS
$cshowsPrec :: Int -> GetIntegrationResponse -> ShowS
Prelude.Show, (forall x. GetIntegrationResponse -> Rep GetIntegrationResponse x)
-> (forall x.
Rep GetIntegrationResponse x -> GetIntegrationResponse)
-> Generic GetIntegrationResponse
forall x. Rep GetIntegrationResponse x -> GetIntegrationResponse
forall x. GetIntegrationResponse -> Rep GetIntegrationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetIntegrationResponse x -> GetIntegrationResponse
$cfrom :: forall x. GetIntegrationResponse -> Rep GetIntegrationResponse x
Prelude.Generic)
newGetIntegrationResponse ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
GetIntegrationResponse
newGetIntegrationResponse :: Text -> Text -> Text -> GetIntegrationResponse
newGetIntegrationResponse
Text
pApiId_
Text
pIntegrationResponseId_
Text
pIntegrationId_ =
GetIntegrationResponse' :: Text -> Text -> Text -> GetIntegrationResponse
GetIntegrationResponse'
{ $sel:apiId:GetIntegrationResponse' :: Text
apiId = Text
pApiId_,
$sel:integrationResponseId:GetIntegrationResponse' :: Text
integrationResponseId = Text
pIntegrationResponseId_,
$sel:integrationId:GetIntegrationResponse' :: Text
integrationId = Text
pIntegrationId_
}
getIntegrationResponse_apiId :: Lens.Lens' GetIntegrationResponse Prelude.Text
getIntegrationResponse_apiId :: (Text -> f Text)
-> GetIntegrationResponse -> f GetIntegrationResponse
getIntegrationResponse_apiId = (GetIntegrationResponse -> Text)
-> (GetIntegrationResponse -> Text -> GetIntegrationResponse)
-> Lens GetIntegrationResponse GetIntegrationResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationResponse' {Text
apiId :: Text
$sel:apiId:GetIntegrationResponse' :: GetIntegrationResponse -> Text
apiId} -> Text
apiId) (\s :: GetIntegrationResponse
s@GetIntegrationResponse' {} Text
a -> GetIntegrationResponse
s {$sel:apiId:GetIntegrationResponse' :: Text
apiId = Text
a} :: GetIntegrationResponse)
getIntegrationResponse_integrationResponseId :: Lens.Lens' GetIntegrationResponse Prelude.Text
getIntegrationResponse_integrationResponseId :: (Text -> f Text)
-> GetIntegrationResponse -> f GetIntegrationResponse
getIntegrationResponse_integrationResponseId = (GetIntegrationResponse -> Text)
-> (GetIntegrationResponse -> Text -> GetIntegrationResponse)
-> Lens GetIntegrationResponse GetIntegrationResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationResponse' {Text
integrationResponseId :: Text
$sel:integrationResponseId:GetIntegrationResponse' :: GetIntegrationResponse -> Text
integrationResponseId} -> Text
integrationResponseId) (\s :: GetIntegrationResponse
s@GetIntegrationResponse' {} Text
a -> GetIntegrationResponse
s {$sel:integrationResponseId:GetIntegrationResponse' :: Text
integrationResponseId = Text
a} :: GetIntegrationResponse)
getIntegrationResponse_integrationId :: Lens.Lens' GetIntegrationResponse Prelude.Text
getIntegrationResponse_integrationId :: (Text -> f Text)
-> GetIntegrationResponse -> f GetIntegrationResponse
getIntegrationResponse_integrationId = (GetIntegrationResponse -> Text)
-> (GetIntegrationResponse -> Text -> GetIntegrationResponse)
-> Lens GetIntegrationResponse GetIntegrationResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationResponse' {Text
integrationId :: Text
$sel:integrationId:GetIntegrationResponse' :: GetIntegrationResponse -> Text
integrationId} -> Text
integrationId) (\s :: GetIntegrationResponse
s@GetIntegrationResponse' {} Text
a -> GetIntegrationResponse
s {$sel:integrationId:GetIntegrationResponse' :: Text
integrationId = Text
a} :: GetIntegrationResponse)
instance Core.AWSRequest GetIntegrationResponse where
type
AWSResponse GetIntegrationResponse =
GetIntegrationResponseResponse
request :: GetIntegrationResponse -> Request GetIntegrationResponse
request = Service -> GetIntegrationResponse -> Request GetIntegrationResponse
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy GetIntegrationResponse
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetIntegrationResponse)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetIntegrationResponse))
-> Logger
-> Service
-> Proxy GetIntegrationResponse
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetIntegrationResponse)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ContentHandlingStrategy
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Int
-> GetIntegrationResponseResponse
GetIntegrationResponseResponse'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ContentHandlingStrategy
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Int
-> GetIntegrationResponseResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe ContentHandlingStrategy
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Int
-> GetIntegrationResponseResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"integrationResponseId")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe ContentHandlingStrategy
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Int
-> GetIntegrationResponseResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe ContentHandlingStrategy
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Int
-> GetIntegrationResponseResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"integrationResponseKey")
Either
String
(Maybe Text
-> Maybe ContentHandlingStrategy
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Int
-> GetIntegrationResponseResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe ContentHandlingStrategy
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Int
-> GetIntegrationResponseResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"templateSelectionExpression")
Either
String
(Maybe ContentHandlingStrategy
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Int
-> GetIntegrationResponseResponse)
-> Either String (Maybe ContentHandlingStrategy)
-> Either
String
(Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Int
-> GetIntegrationResponseResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe ContentHandlingStrategy)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"contentHandlingStrategy")
Either
String
(Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Int
-> GetIntegrationResponseResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either
String
(Maybe (HashMap Text Text)
-> Int -> GetIntegrationResponseResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"responseTemplates"
Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty
)
Either
String
(Maybe (HashMap Text Text)
-> Int -> GetIntegrationResponseResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> GetIntegrationResponseResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"responseParameters"
Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> GetIntegrationResponseResponse)
-> Either String Int
-> Either String GetIntegrationResponseResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable GetIntegrationResponse
instance Prelude.NFData GetIntegrationResponse
instance Core.ToHeaders GetIntegrationResponse where
toHeaders :: GetIntegrationResponse -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetIntegrationResponse -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToPath GetIntegrationResponse where
toPath :: GetIntegrationResponse -> ByteString
toPath GetIntegrationResponse' {Text
integrationId :: Text
integrationResponseId :: Text
apiId :: Text
$sel:integrationId:GetIntegrationResponse' :: GetIntegrationResponse -> Text
$sel:integrationResponseId:GetIntegrationResponse' :: GetIntegrationResponse -> Text
$sel:apiId:GetIntegrationResponse' :: GetIntegrationResponse -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/v2/apis/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
apiId,
ByteString
"/integrations/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
integrationId,
ByteString
"/integrationresponses/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
integrationResponseId
]
instance Core.ToQuery GetIntegrationResponse where
toQuery :: GetIntegrationResponse -> QueryString
toQuery = QueryString -> GetIntegrationResponse -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetIntegrationResponseResponse = GetIntegrationResponseResponse'
{
GetIntegrationResponseResponse -> Maybe Text
integrationResponseId :: Prelude.Maybe Prelude.Text,
GetIntegrationResponseResponse -> Maybe Text
integrationResponseKey :: Prelude.Maybe Prelude.Text,
GetIntegrationResponseResponse -> Maybe Text
templateSelectionExpression :: Prelude.Maybe Prelude.Text,
GetIntegrationResponseResponse -> Maybe ContentHandlingStrategy
contentHandlingStrategy :: Prelude.Maybe ContentHandlingStrategy,
GetIntegrationResponseResponse -> Maybe (HashMap Text Text)
responseTemplates :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
GetIntegrationResponseResponse -> Maybe (HashMap Text Text)
responseParameters :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
GetIntegrationResponseResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetIntegrationResponseResponse
-> GetIntegrationResponseResponse -> Bool
(GetIntegrationResponseResponse
-> GetIntegrationResponseResponse -> Bool)
-> (GetIntegrationResponseResponse
-> GetIntegrationResponseResponse -> Bool)
-> Eq GetIntegrationResponseResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetIntegrationResponseResponse
-> GetIntegrationResponseResponse -> Bool
$c/= :: GetIntegrationResponseResponse
-> GetIntegrationResponseResponse -> Bool
== :: GetIntegrationResponseResponse
-> GetIntegrationResponseResponse -> Bool
$c== :: GetIntegrationResponseResponse
-> GetIntegrationResponseResponse -> Bool
Prelude.Eq, ReadPrec [GetIntegrationResponseResponse]
ReadPrec GetIntegrationResponseResponse
Int -> ReadS GetIntegrationResponseResponse
ReadS [GetIntegrationResponseResponse]
(Int -> ReadS GetIntegrationResponseResponse)
-> ReadS [GetIntegrationResponseResponse]
-> ReadPrec GetIntegrationResponseResponse
-> ReadPrec [GetIntegrationResponseResponse]
-> Read GetIntegrationResponseResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetIntegrationResponseResponse]
$creadListPrec :: ReadPrec [GetIntegrationResponseResponse]
readPrec :: ReadPrec GetIntegrationResponseResponse
$creadPrec :: ReadPrec GetIntegrationResponseResponse
readList :: ReadS [GetIntegrationResponseResponse]
$creadList :: ReadS [GetIntegrationResponseResponse]
readsPrec :: Int -> ReadS GetIntegrationResponseResponse
$creadsPrec :: Int -> ReadS GetIntegrationResponseResponse
Prelude.Read, Int -> GetIntegrationResponseResponse -> ShowS
[GetIntegrationResponseResponse] -> ShowS
GetIntegrationResponseResponse -> String
(Int -> GetIntegrationResponseResponse -> ShowS)
-> (GetIntegrationResponseResponse -> String)
-> ([GetIntegrationResponseResponse] -> ShowS)
-> Show GetIntegrationResponseResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetIntegrationResponseResponse] -> ShowS
$cshowList :: [GetIntegrationResponseResponse] -> ShowS
show :: GetIntegrationResponseResponse -> String
$cshow :: GetIntegrationResponseResponse -> String
showsPrec :: Int -> GetIntegrationResponseResponse -> ShowS
$cshowsPrec :: Int -> GetIntegrationResponseResponse -> ShowS
Prelude.Show, (forall x.
GetIntegrationResponseResponse
-> Rep GetIntegrationResponseResponse x)
-> (forall x.
Rep GetIntegrationResponseResponse x
-> GetIntegrationResponseResponse)
-> Generic GetIntegrationResponseResponse
forall x.
Rep GetIntegrationResponseResponse x
-> GetIntegrationResponseResponse
forall x.
GetIntegrationResponseResponse
-> Rep GetIntegrationResponseResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetIntegrationResponseResponse x
-> GetIntegrationResponseResponse
$cfrom :: forall x.
GetIntegrationResponseResponse
-> Rep GetIntegrationResponseResponse x
Prelude.Generic)
newGetIntegrationResponseResponse ::
Prelude.Int ->
GetIntegrationResponseResponse
newGetIntegrationResponseResponse :: Int -> GetIntegrationResponseResponse
newGetIntegrationResponseResponse Int
pHttpStatus_ =
GetIntegrationResponseResponse' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ContentHandlingStrategy
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Int
-> GetIntegrationResponseResponse
GetIntegrationResponseResponse'
{ $sel:integrationResponseId:GetIntegrationResponseResponse' :: Maybe Text
integrationResponseId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:integrationResponseKey:GetIntegrationResponseResponse' :: Maybe Text
integrationResponseKey = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:templateSelectionExpression:GetIntegrationResponseResponse' :: Maybe Text
templateSelectionExpression =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:contentHandlingStrategy:GetIntegrationResponseResponse' :: Maybe ContentHandlingStrategy
contentHandlingStrategy = Maybe ContentHandlingStrategy
forall a. Maybe a
Prelude.Nothing,
$sel:responseTemplates:GetIntegrationResponseResponse' :: Maybe (HashMap Text Text)
responseTemplates = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:responseParameters:GetIntegrationResponseResponse' :: Maybe (HashMap Text Text)
responseParameters = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetIntegrationResponseResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getIntegrationResponseResponse_integrationResponseId :: Lens.Lens' GetIntegrationResponseResponse (Prelude.Maybe Prelude.Text)
getIntegrationResponseResponse_integrationResponseId :: (Maybe Text -> f (Maybe Text))
-> GetIntegrationResponseResponse
-> f GetIntegrationResponseResponse
getIntegrationResponseResponse_integrationResponseId = (GetIntegrationResponseResponse -> Maybe Text)
-> (GetIntegrationResponseResponse
-> Maybe Text -> GetIntegrationResponseResponse)
-> Lens
GetIntegrationResponseResponse
GetIntegrationResponseResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationResponseResponse' {Maybe Text
integrationResponseId :: Maybe Text
$sel:integrationResponseId:GetIntegrationResponseResponse' :: GetIntegrationResponseResponse -> Maybe Text
integrationResponseId} -> Maybe Text
integrationResponseId) (\s :: GetIntegrationResponseResponse
s@GetIntegrationResponseResponse' {} Maybe Text
a -> GetIntegrationResponseResponse
s {$sel:integrationResponseId:GetIntegrationResponseResponse' :: Maybe Text
integrationResponseId = Maybe Text
a} :: GetIntegrationResponseResponse)
getIntegrationResponseResponse_integrationResponseKey :: Lens.Lens' GetIntegrationResponseResponse (Prelude.Maybe Prelude.Text)
getIntegrationResponseResponse_integrationResponseKey :: (Maybe Text -> f (Maybe Text))
-> GetIntegrationResponseResponse
-> f GetIntegrationResponseResponse
getIntegrationResponseResponse_integrationResponseKey = (GetIntegrationResponseResponse -> Maybe Text)
-> (GetIntegrationResponseResponse
-> Maybe Text -> GetIntegrationResponseResponse)
-> Lens
GetIntegrationResponseResponse
GetIntegrationResponseResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationResponseResponse' {Maybe Text
integrationResponseKey :: Maybe Text
$sel:integrationResponseKey:GetIntegrationResponseResponse' :: GetIntegrationResponseResponse -> Maybe Text
integrationResponseKey} -> Maybe Text
integrationResponseKey) (\s :: GetIntegrationResponseResponse
s@GetIntegrationResponseResponse' {} Maybe Text
a -> GetIntegrationResponseResponse
s {$sel:integrationResponseKey:GetIntegrationResponseResponse' :: Maybe Text
integrationResponseKey = Maybe Text
a} :: GetIntegrationResponseResponse)
getIntegrationResponseResponse_templateSelectionExpression :: Lens.Lens' GetIntegrationResponseResponse (Prelude.Maybe Prelude.Text)
getIntegrationResponseResponse_templateSelectionExpression :: (Maybe Text -> f (Maybe Text))
-> GetIntegrationResponseResponse
-> f GetIntegrationResponseResponse
getIntegrationResponseResponse_templateSelectionExpression = (GetIntegrationResponseResponse -> Maybe Text)
-> (GetIntegrationResponseResponse
-> Maybe Text -> GetIntegrationResponseResponse)
-> Lens
GetIntegrationResponseResponse
GetIntegrationResponseResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationResponseResponse' {Maybe Text
templateSelectionExpression :: Maybe Text
$sel:templateSelectionExpression:GetIntegrationResponseResponse' :: GetIntegrationResponseResponse -> Maybe Text
templateSelectionExpression} -> Maybe Text
templateSelectionExpression) (\s :: GetIntegrationResponseResponse
s@GetIntegrationResponseResponse' {} Maybe Text
a -> GetIntegrationResponseResponse
s {$sel:templateSelectionExpression:GetIntegrationResponseResponse' :: Maybe Text
templateSelectionExpression = Maybe Text
a} :: GetIntegrationResponseResponse)
getIntegrationResponseResponse_contentHandlingStrategy :: Lens.Lens' GetIntegrationResponseResponse (Prelude.Maybe ContentHandlingStrategy)
getIntegrationResponseResponse_contentHandlingStrategy :: (Maybe ContentHandlingStrategy
-> f (Maybe ContentHandlingStrategy))
-> GetIntegrationResponseResponse
-> f GetIntegrationResponseResponse
getIntegrationResponseResponse_contentHandlingStrategy = (GetIntegrationResponseResponse -> Maybe ContentHandlingStrategy)
-> (GetIntegrationResponseResponse
-> Maybe ContentHandlingStrategy -> GetIntegrationResponseResponse)
-> Lens
GetIntegrationResponseResponse
GetIntegrationResponseResponse
(Maybe ContentHandlingStrategy)
(Maybe ContentHandlingStrategy)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationResponseResponse' {Maybe ContentHandlingStrategy
contentHandlingStrategy :: Maybe ContentHandlingStrategy
$sel:contentHandlingStrategy:GetIntegrationResponseResponse' :: GetIntegrationResponseResponse -> Maybe ContentHandlingStrategy
contentHandlingStrategy} -> Maybe ContentHandlingStrategy
contentHandlingStrategy) (\s :: GetIntegrationResponseResponse
s@GetIntegrationResponseResponse' {} Maybe ContentHandlingStrategy
a -> GetIntegrationResponseResponse
s {$sel:contentHandlingStrategy:GetIntegrationResponseResponse' :: Maybe ContentHandlingStrategy
contentHandlingStrategy = Maybe ContentHandlingStrategy
a} :: GetIntegrationResponseResponse)
getIntegrationResponseResponse_responseTemplates :: Lens.Lens' GetIntegrationResponseResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
getIntegrationResponseResponse_responseTemplates :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetIntegrationResponseResponse
-> f GetIntegrationResponseResponse
getIntegrationResponseResponse_responseTemplates = (GetIntegrationResponseResponse -> Maybe (HashMap Text Text))
-> (GetIntegrationResponseResponse
-> Maybe (HashMap Text Text) -> GetIntegrationResponseResponse)
-> Lens
GetIntegrationResponseResponse
GetIntegrationResponseResponse
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationResponseResponse' {Maybe (HashMap Text Text)
responseTemplates :: Maybe (HashMap Text Text)
$sel:responseTemplates:GetIntegrationResponseResponse' :: GetIntegrationResponseResponse -> Maybe (HashMap Text Text)
responseTemplates} -> Maybe (HashMap Text Text)
responseTemplates) (\s :: GetIntegrationResponseResponse
s@GetIntegrationResponseResponse' {} Maybe (HashMap Text Text)
a -> GetIntegrationResponseResponse
s {$sel:responseTemplates:GetIntegrationResponseResponse' :: Maybe (HashMap Text Text)
responseTemplates = Maybe (HashMap Text Text)
a} :: GetIntegrationResponseResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetIntegrationResponseResponse
-> f GetIntegrationResponseResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetIntegrationResponseResponse
-> f GetIntegrationResponseResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
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 AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getIntegrationResponseResponse_responseParameters :: Lens.Lens' GetIntegrationResponseResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
getIntegrationResponseResponse_responseParameters :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetIntegrationResponseResponse
-> f GetIntegrationResponseResponse
getIntegrationResponseResponse_responseParameters = (GetIntegrationResponseResponse -> Maybe (HashMap Text Text))
-> (GetIntegrationResponseResponse
-> Maybe (HashMap Text Text) -> GetIntegrationResponseResponse)
-> Lens
GetIntegrationResponseResponse
GetIntegrationResponseResponse
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationResponseResponse' {Maybe (HashMap Text Text)
responseParameters :: Maybe (HashMap Text Text)
$sel:responseParameters:GetIntegrationResponseResponse' :: GetIntegrationResponseResponse -> Maybe (HashMap Text Text)
responseParameters} -> Maybe (HashMap Text Text)
responseParameters) (\s :: GetIntegrationResponseResponse
s@GetIntegrationResponseResponse' {} Maybe (HashMap Text Text)
a -> GetIntegrationResponseResponse
s {$sel:responseParameters:GetIntegrationResponseResponse' :: Maybe (HashMap Text Text)
responseParameters = Maybe (HashMap Text Text)
a} :: GetIntegrationResponseResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetIntegrationResponseResponse
-> f GetIntegrationResponseResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetIntegrationResponseResponse
-> f GetIntegrationResponseResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
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 AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getIntegrationResponseResponse_httpStatus :: Lens.Lens' GetIntegrationResponseResponse Prelude.Int
getIntegrationResponseResponse_httpStatus :: (Int -> f Int)
-> GetIntegrationResponseResponse
-> f GetIntegrationResponseResponse
getIntegrationResponseResponse_httpStatus = (GetIntegrationResponseResponse -> Int)
-> (GetIntegrationResponseResponse
-> Int -> GetIntegrationResponseResponse)
-> Lens
GetIntegrationResponseResponse
GetIntegrationResponseResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationResponseResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetIntegrationResponseResponse' :: GetIntegrationResponseResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetIntegrationResponseResponse
s@GetIntegrationResponseResponse' {} Int
a -> GetIntegrationResponseResponse
s {$sel:httpStatus:GetIntegrationResponseResponse' :: Int
httpStatus = Int
a} :: GetIntegrationResponseResponse)
instance
Prelude.NFData
GetIntegrationResponseResponse