{-# 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.CustomerProfiles.GetIntegration
(
GetIntegration (..),
newGetIntegration,
getIntegration_domainName,
getIntegration_uri,
GetIntegrationResponse (..),
newGetIntegrationResponse,
getIntegrationResponse_tags,
getIntegrationResponse_httpStatus,
getIntegrationResponse_domainName,
getIntegrationResponse_uri,
getIntegrationResponse_objectTypeName,
getIntegrationResponse_createdAt,
getIntegrationResponse_lastUpdatedAt,
)
where
import qualified Amazonka.Core as Core
import Amazonka.CustomerProfiles.Types
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 GetIntegration = GetIntegration'
{
GetIntegration -> Text
domainName :: Prelude.Text,
GetIntegration -> Text
uri :: Prelude.Text
}
deriving (GetIntegration -> GetIntegration -> Bool
(GetIntegration -> GetIntegration -> Bool)
-> (GetIntegration -> GetIntegration -> Bool) -> Eq GetIntegration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetIntegration -> GetIntegration -> Bool
$c/= :: GetIntegration -> GetIntegration -> Bool
== :: GetIntegration -> GetIntegration -> Bool
$c== :: GetIntegration -> GetIntegration -> Bool
Prelude.Eq, ReadPrec [GetIntegration]
ReadPrec GetIntegration
Int -> ReadS GetIntegration
ReadS [GetIntegration]
(Int -> ReadS GetIntegration)
-> ReadS [GetIntegration]
-> ReadPrec GetIntegration
-> ReadPrec [GetIntegration]
-> Read GetIntegration
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetIntegration]
$creadListPrec :: ReadPrec [GetIntegration]
readPrec :: ReadPrec GetIntegration
$creadPrec :: ReadPrec GetIntegration
readList :: ReadS [GetIntegration]
$creadList :: ReadS [GetIntegration]
readsPrec :: Int -> ReadS GetIntegration
$creadsPrec :: Int -> ReadS GetIntegration
Prelude.Read, Int -> GetIntegration -> ShowS
[GetIntegration] -> ShowS
GetIntegration -> String
(Int -> GetIntegration -> ShowS)
-> (GetIntegration -> String)
-> ([GetIntegration] -> ShowS)
-> Show GetIntegration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetIntegration] -> ShowS
$cshowList :: [GetIntegration] -> ShowS
show :: GetIntegration -> String
$cshow :: GetIntegration -> String
showsPrec :: Int -> GetIntegration -> ShowS
$cshowsPrec :: Int -> GetIntegration -> ShowS
Prelude.Show, (forall x. GetIntegration -> Rep GetIntegration x)
-> (forall x. Rep GetIntegration x -> GetIntegration)
-> Generic GetIntegration
forall x. Rep GetIntegration x -> GetIntegration
forall x. GetIntegration -> Rep GetIntegration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetIntegration x -> GetIntegration
$cfrom :: forall x. GetIntegration -> Rep GetIntegration x
Prelude.Generic)
newGetIntegration ::
Prelude.Text ->
Prelude.Text ->
GetIntegration
newGetIntegration :: Text -> Text -> GetIntegration
newGetIntegration Text
pDomainName_ Text
pUri_ =
GetIntegration' :: Text -> Text -> GetIntegration
GetIntegration'
{ $sel:domainName:GetIntegration' :: Text
domainName = Text
pDomainName_,
$sel:uri:GetIntegration' :: Text
uri = Text
pUri_
}
getIntegration_domainName :: Lens.Lens' GetIntegration Prelude.Text
getIntegration_domainName :: (Text -> f Text) -> GetIntegration -> f GetIntegration
getIntegration_domainName = (GetIntegration -> Text)
-> (GetIntegration -> Text -> GetIntegration)
-> Lens GetIntegration GetIntegration Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegration' {Text
domainName :: Text
$sel:domainName:GetIntegration' :: GetIntegration -> Text
domainName} -> Text
domainName) (\s :: GetIntegration
s@GetIntegration' {} Text
a -> GetIntegration
s {$sel:domainName:GetIntegration' :: Text
domainName = Text
a} :: GetIntegration)
getIntegration_uri :: Lens.Lens' GetIntegration Prelude.Text
getIntegration_uri :: (Text -> f Text) -> GetIntegration -> f GetIntegration
getIntegration_uri = (GetIntegration -> Text)
-> (GetIntegration -> Text -> GetIntegration)
-> Lens GetIntegration GetIntegration Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegration' {Text
uri :: Text
$sel:uri:GetIntegration' :: GetIntegration -> Text
uri} -> Text
uri) (\s :: GetIntegration
s@GetIntegration' {} Text
a -> GetIntegration
s {$sel:uri:GetIntegration' :: Text
uri = Text
a} :: GetIntegration)
instance Core.AWSRequest GetIntegration where
type
AWSResponse GetIntegration =
GetIntegrationResponse
request :: GetIntegration -> Request GetIntegration
request = Service -> GetIntegration -> Request GetIntegration
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetIntegration
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetIntegration)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetIntegration))
-> Logger
-> Service
-> Proxy GetIntegration
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetIntegration)))
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 (HashMap Text Text)
-> Int
-> Text
-> Text
-> Text
-> POSIX
-> POSIX
-> GetIntegrationResponse
GetIntegrationResponse'
(Maybe (HashMap Text Text)
-> Int
-> Text
-> Text
-> Text
-> POSIX
-> POSIX
-> GetIntegrationResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either
String
(Int
-> Text
-> Text
-> Text
-> POSIX
-> POSIX
-> GetIntegrationResponse)
forall (f :: * -> *) a b. Functor 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
"Tags" 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
-> Text
-> Text
-> Text
-> POSIX
-> POSIX
-> GetIntegrationResponse)
-> Either String Int
-> Either
String
(Text -> Text -> Text -> POSIX -> POSIX -> GetIntegrationResponse)
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))
Either
String
(Text -> Text -> Text -> POSIX -> POSIX -> GetIntegrationResponse)
-> Either String Text
-> Either
String (Text -> Text -> POSIX -> POSIX -> GetIntegrationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"DomainName")
Either
String (Text -> Text -> POSIX -> POSIX -> GetIntegrationResponse)
-> Either String Text
-> Either String (Text -> POSIX -> POSIX -> GetIntegrationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"Uri")
Either String (Text -> POSIX -> POSIX -> GetIntegrationResponse)
-> Either String Text
-> Either String (POSIX -> POSIX -> GetIntegrationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"ObjectTypeName")
Either String (POSIX -> POSIX -> GetIntegrationResponse)
-> Either String POSIX
-> Either String (POSIX -> GetIntegrationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String POSIX
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"CreatedAt")
Either String (POSIX -> GetIntegrationResponse)
-> Either String POSIX -> Either String GetIntegrationResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String POSIX
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"LastUpdatedAt")
)
instance Prelude.Hashable GetIntegration
instance Prelude.NFData GetIntegration
instance Core.ToHeaders GetIntegration where
toHeaders :: GetIntegration -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetIntegration -> 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.ToJSON GetIntegration where
toJSON :: GetIntegration -> Value
toJSON GetIntegration' {Text
uri :: Text
domainName :: Text
$sel:uri:GetIntegration' :: GetIntegration -> Text
$sel:domainName:GetIntegration' :: GetIntegration -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Uri" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
uri)]
)
instance Core.ToPath GetIntegration where
toPath :: GetIntegration -> ByteString
toPath GetIntegration' {Text
uri :: Text
domainName :: Text
$sel:uri:GetIntegration' :: GetIntegration -> Text
$sel:domainName:GetIntegration' :: GetIntegration -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/domains/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
domainName, ByteString
"/integrations"]
instance Core.ToQuery GetIntegration where
toQuery :: GetIntegration -> QueryString
toQuery = QueryString -> GetIntegration -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetIntegrationResponse = GetIntegrationResponse'
{
GetIntegrationResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
GetIntegrationResponse -> Int
httpStatus :: Prelude.Int,
GetIntegrationResponse -> Text
domainName :: Prelude.Text,
GetIntegrationResponse -> Text
uri :: Prelude.Text,
GetIntegrationResponse -> Text
objectTypeName :: Prelude.Text,
GetIntegrationResponse -> POSIX
createdAt :: Core.POSIX,
GetIntegrationResponse -> POSIX
lastUpdatedAt :: Core.POSIX
}
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.Int ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.UTCTime ->
Prelude.UTCTime ->
GetIntegrationResponse
newGetIntegrationResponse :: Int
-> Text
-> Text
-> Text
-> UTCTime
-> UTCTime
-> GetIntegrationResponse
newGetIntegrationResponse
Int
pHttpStatus_
Text
pDomainName_
Text
pUri_
Text
pObjectTypeName_
UTCTime
pCreatedAt_
UTCTime
pLastUpdatedAt_ =
GetIntegrationResponse' :: Maybe (HashMap Text Text)
-> Int
-> Text
-> Text
-> Text
-> POSIX
-> POSIX
-> GetIntegrationResponse
GetIntegrationResponse'
{ $sel:tags:GetIntegrationResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetIntegrationResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:domainName:GetIntegrationResponse' :: Text
domainName = Text
pDomainName_,
$sel:uri:GetIntegrationResponse' :: Text
uri = Text
pUri_,
$sel:objectTypeName:GetIntegrationResponse' :: Text
objectTypeName = Text
pObjectTypeName_,
$sel:createdAt:GetIntegrationResponse' :: POSIX
createdAt = Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
-> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pCreatedAt_,
$sel:lastUpdatedAt:GetIntegrationResponse' :: POSIX
lastUpdatedAt = Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
-> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pLastUpdatedAt_
}
getIntegrationResponse_tags :: Lens.Lens' GetIntegrationResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
getIntegrationResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetIntegrationResponse -> f GetIntegrationResponse
getIntegrationResponse_tags = (GetIntegrationResponse -> Maybe (HashMap Text Text))
-> (GetIntegrationResponse
-> Maybe (HashMap Text Text) -> GetIntegrationResponse)
-> Lens
GetIntegrationResponse
GetIntegrationResponse
(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 (\GetIntegrationResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:GetIntegrationResponse' :: GetIntegrationResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: GetIntegrationResponse
s@GetIntegrationResponse' {} Maybe (HashMap Text Text)
a -> GetIntegrationResponse
s {$sel:tags:GetIntegrationResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: GetIntegrationResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetIntegrationResponse -> f GetIntegrationResponse)
-> ((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)))
-> GetIntegrationResponse
-> f GetIntegrationResponse
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
getIntegrationResponse_httpStatus :: Lens.Lens' GetIntegrationResponse Prelude.Int
getIntegrationResponse_httpStatus :: (Int -> f Int)
-> GetIntegrationResponse -> f GetIntegrationResponse
getIntegrationResponse_httpStatus = (GetIntegrationResponse -> Int)
-> (GetIntegrationResponse -> Int -> GetIntegrationResponse)
-> Lens GetIntegrationResponse GetIntegrationResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetIntegrationResponse' :: GetIntegrationResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetIntegrationResponse
s@GetIntegrationResponse' {} Int
a -> GetIntegrationResponse
s {$sel:httpStatus:GetIntegrationResponse' :: Int
httpStatus = Int
a} :: GetIntegrationResponse)
getIntegrationResponse_domainName :: Lens.Lens' GetIntegrationResponse Prelude.Text
getIntegrationResponse_domainName :: (Text -> f Text)
-> GetIntegrationResponse -> f GetIntegrationResponse
getIntegrationResponse_domainName = (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
domainName :: Text
$sel:domainName:GetIntegrationResponse' :: GetIntegrationResponse -> Text
domainName} -> Text
domainName) (\s :: GetIntegrationResponse
s@GetIntegrationResponse' {} Text
a -> GetIntegrationResponse
s {$sel:domainName:GetIntegrationResponse' :: Text
domainName = Text
a} :: GetIntegrationResponse)
getIntegrationResponse_uri :: Lens.Lens' GetIntegrationResponse Prelude.Text
getIntegrationResponse_uri :: (Text -> f Text)
-> GetIntegrationResponse -> f GetIntegrationResponse
getIntegrationResponse_uri = (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
uri :: Text
$sel:uri:GetIntegrationResponse' :: GetIntegrationResponse -> Text
uri} -> Text
uri) (\s :: GetIntegrationResponse
s@GetIntegrationResponse' {} Text
a -> GetIntegrationResponse
s {$sel:uri:GetIntegrationResponse' :: Text
uri = Text
a} :: GetIntegrationResponse)
getIntegrationResponse_objectTypeName :: Lens.Lens' GetIntegrationResponse Prelude.Text
getIntegrationResponse_objectTypeName :: (Text -> f Text)
-> GetIntegrationResponse -> f GetIntegrationResponse
getIntegrationResponse_objectTypeName = (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
objectTypeName :: Text
$sel:objectTypeName:GetIntegrationResponse' :: GetIntegrationResponse -> Text
objectTypeName} -> Text
objectTypeName) (\s :: GetIntegrationResponse
s@GetIntegrationResponse' {} Text
a -> GetIntegrationResponse
s {$sel:objectTypeName:GetIntegrationResponse' :: Text
objectTypeName = Text
a} :: GetIntegrationResponse)
getIntegrationResponse_createdAt :: Lens.Lens' GetIntegrationResponse Prelude.UTCTime
getIntegrationResponse_createdAt :: (UTCTime -> f UTCTime)
-> GetIntegrationResponse -> f GetIntegrationResponse
getIntegrationResponse_createdAt = (GetIntegrationResponse -> POSIX)
-> (GetIntegrationResponse -> POSIX -> GetIntegrationResponse)
-> Lens GetIntegrationResponse GetIntegrationResponse POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationResponse' {POSIX
createdAt :: POSIX
$sel:createdAt:GetIntegrationResponse' :: GetIntegrationResponse -> POSIX
createdAt} -> POSIX
createdAt) (\s :: GetIntegrationResponse
s@GetIntegrationResponse' {} POSIX
a -> GetIntegrationResponse
s {$sel:createdAt:GetIntegrationResponse' :: POSIX
createdAt = POSIX
a} :: GetIntegrationResponse) ((POSIX -> f POSIX)
-> GetIntegrationResponse -> f GetIntegrationResponse)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> GetIntegrationResponse
-> f GetIntegrationResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
getIntegrationResponse_lastUpdatedAt :: Lens.Lens' GetIntegrationResponse Prelude.UTCTime
getIntegrationResponse_lastUpdatedAt :: (UTCTime -> f UTCTime)
-> GetIntegrationResponse -> f GetIntegrationResponse
getIntegrationResponse_lastUpdatedAt = (GetIntegrationResponse -> POSIX)
-> (GetIntegrationResponse -> POSIX -> GetIntegrationResponse)
-> Lens GetIntegrationResponse GetIntegrationResponse POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationResponse' {POSIX
lastUpdatedAt :: POSIX
$sel:lastUpdatedAt:GetIntegrationResponse' :: GetIntegrationResponse -> POSIX
lastUpdatedAt} -> POSIX
lastUpdatedAt) (\s :: GetIntegrationResponse
s@GetIntegrationResponse' {} POSIX
a -> GetIntegrationResponse
s {$sel:lastUpdatedAt:GetIntegrationResponse' :: POSIX
lastUpdatedAt = POSIX
a} :: GetIntegrationResponse) ((POSIX -> f POSIX)
-> GetIntegrationResponse -> f GetIntegrationResponse)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> GetIntegrationResponse
-> f GetIntegrationResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
instance Prelude.NFData GetIntegrationResponse