{-# 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.Connect.StartChatContact
(
StartChatContact (..),
newStartChatContact,
startChatContact_clientToken,
startChatContact_attributes,
startChatContact_initialMessage,
startChatContact_instanceId,
startChatContact_contactFlowId,
startChatContact_participantDetails,
StartChatContactResponse (..),
newStartChatContactResponse,
startChatContactResponse_participantToken,
startChatContactResponse_participantId,
startChatContactResponse_contactId,
startChatContactResponse_httpStatus,
)
where
import Amazonka.Connect.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 StartChatContact = StartChatContact'
{
StartChatContact -> Maybe Text
clientToken :: Prelude.Maybe Prelude.Text,
StartChatContact -> Maybe (HashMap Text Text)
attributes :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
StartChatContact -> Maybe ChatMessage
initialMessage :: Prelude.Maybe ChatMessage,
StartChatContact -> Text
instanceId :: Prelude.Text,
StartChatContact -> Text
contactFlowId :: Prelude.Text,
StartChatContact -> ParticipantDetails
participantDetails :: ParticipantDetails
}
deriving (StartChatContact -> StartChatContact -> Bool
(StartChatContact -> StartChatContact -> Bool)
-> (StartChatContact -> StartChatContact -> Bool)
-> Eq StartChatContact
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartChatContact -> StartChatContact -> Bool
$c/= :: StartChatContact -> StartChatContact -> Bool
== :: StartChatContact -> StartChatContact -> Bool
$c== :: StartChatContact -> StartChatContact -> Bool
Prelude.Eq, ReadPrec [StartChatContact]
ReadPrec StartChatContact
Int -> ReadS StartChatContact
ReadS [StartChatContact]
(Int -> ReadS StartChatContact)
-> ReadS [StartChatContact]
-> ReadPrec StartChatContact
-> ReadPrec [StartChatContact]
-> Read StartChatContact
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartChatContact]
$creadListPrec :: ReadPrec [StartChatContact]
readPrec :: ReadPrec StartChatContact
$creadPrec :: ReadPrec StartChatContact
readList :: ReadS [StartChatContact]
$creadList :: ReadS [StartChatContact]
readsPrec :: Int -> ReadS StartChatContact
$creadsPrec :: Int -> ReadS StartChatContact
Prelude.Read, Int -> StartChatContact -> ShowS
[StartChatContact] -> ShowS
StartChatContact -> String
(Int -> StartChatContact -> ShowS)
-> (StartChatContact -> String)
-> ([StartChatContact] -> ShowS)
-> Show StartChatContact
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartChatContact] -> ShowS
$cshowList :: [StartChatContact] -> ShowS
show :: StartChatContact -> String
$cshow :: StartChatContact -> String
showsPrec :: Int -> StartChatContact -> ShowS
$cshowsPrec :: Int -> StartChatContact -> ShowS
Prelude.Show, (forall x. StartChatContact -> Rep StartChatContact x)
-> (forall x. Rep StartChatContact x -> StartChatContact)
-> Generic StartChatContact
forall x. Rep StartChatContact x -> StartChatContact
forall x. StartChatContact -> Rep StartChatContact x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep StartChatContact x -> StartChatContact
$cfrom :: forall x. StartChatContact -> Rep StartChatContact x
Prelude.Generic)
newStartChatContact ::
Prelude.Text ->
Prelude.Text ->
ParticipantDetails ->
StartChatContact
newStartChatContact :: Text -> Text -> ParticipantDetails -> StartChatContact
newStartChatContact
Text
pInstanceId_
Text
pContactFlowId_
ParticipantDetails
pParticipantDetails_ =
StartChatContact' :: Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe ChatMessage
-> Text
-> Text
-> ParticipantDetails
-> StartChatContact
StartChatContact'
{ $sel:clientToken:StartChatContact' :: Maybe Text
clientToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:attributes:StartChatContact' :: Maybe (HashMap Text Text)
attributes = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:initialMessage:StartChatContact' :: Maybe ChatMessage
initialMessage = Maybe ChatMessage
forall a. Maybe a
Prelude.Nothing,
$sel:instanceId:StartChatContact' :: Text
instanceId = Text
pInstanceId_,
$sel:contactFlowId:StartChatContact' :: Text
contactFlowId = Text
pContactFlowId_,
$sel:participantDetails:StartChatContact' :: ParticipantDetails
participantDetails = ParticipantDetails
pParticipantDetails_
}
startChatContact_clientToken :: Lens.Lens' StartChatContact (Prelude.Maybe Prelude.Text)
startChatContact_clientToken :: (Maybe Text -> f (Maybe Text))
-> StartChatContact -> f StartChatContact
startChatContact_clientToken = (StartChatContact -> Maybe Text)
-> (StartChatContact -> Maybe Text -> StartChatContact)
-> Lens StartChatContact StartChatContact (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartChatContact' {Maybe Text
clientToken :: Maybe Text
$sel:clientToken:StartChatContact' :: StartChatContact -> Maybe Text
clientToken} -> Maybe Text
clientToken) (\s :: StartChatContact
s@StartChatContact' {} Maybe Text
a -> StartChatContact
s {$sel:clientToken:StartChatContact' :: Maybe Text
clientToken = Maybe Text
a} :: StartChatContact)
startChatContact_attributes :: Lens.Lens' StartChatContact (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
startChatContact_attributes :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> StartChatContact -> f StartChatContact
startChatContact_attributes = (StartChatContact -> Maybe (HashMap Text Text))
-> (StartChatContact
-> Maybe (HashMap Text Text) -> StartChatContact)
-> Lens
StartChatContact
StartChatContact
(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 (\StartChatContact' {Maybe (HashMap Text Text)
attributes :: Maybe (HashMap Text Text)
$sel:attributes:StartChatContact' :: StartChatContact -> Maybe (HashMap Text Text)
attributes} -> Maybe (HashMap Text Text)
attributes) (\s :: StartChatContact
s@StartChatContact' {} Maybe (HashMap Text Text)
a -> StartChatContact
s {$sel:attributes:StartChatContact' :: Maybe (HashMap Text Text)
attributes = Maybe (HashMap Text Text)
a} :: StartChatContact) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> StartChatContact -> f StartChatContact)
-> ((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)))
-> StartChatContact
-> f StartChatContact
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
startChatContact_initialMessage :: Lens.Lens' StartChatContact (Prelude.Maybe ChatMessage)
startChatContact_initialMessage :: (Maybe ChatMessage -> f (Maybe ChatMessage))
-> StartChatContact -> f StartChatContact
startChatContact_initialMessage = (StartChatContact -> Maybe ChatMessage)
-> (StartChatContact -> Maybe ChatMessage -> StartChatContact)
-> Lens
StartChatContact
StartChatContact
(Maybe ChatMessage)
(Maybe ChatMessage)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartChatContact' {Maybe ChatMessage
initialMessage :: Maybe ChatMessage
$sel:initialMessage:StartChatContact' :: StartChatContact -> Maybe ChatMessage
initialMessage} -> Maybe ChatMessage
initialMessage) (\s :: StartChatContact
s@StartChatContact' {} Maybe ChatMessage
a -> StartChatContact
s {$sel:initialMessage:StartChatContact' :: Maybe ChatMessage
initialMessage = Maybe ChatMessage
a} :: StartChatContact)
startChatContact_instanceId :: Lens.Lens' StartChatContact Prelude.Text
startChatContact_instanceId :: (Text -> f Text) -> StartChatContact -> f StartChatContact
startChatContact_instanceId = (StartChatContact -> Text)
-> (StartChatContact -> Text -> StartChatContact)
-> Lens StartChatContact StartChatContact Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartChatContact' {Text
instanceId :: Text
$sel:instanceId:StartChatContact' :: StartChatContact -> Text
instanceId} -> Text
instanceId) (\s :: StartChatContact
s@StartChatContact' {} Text
a -> StartChatContact
s {$sel:instanceId:StartChatContact' :: Text
instanceId = Text
a} :: StartChatContact)
startChatContact_contactFlowId :: Lens.Lens' StartChatContact Prelude.Text
startChatContact_contactFlowId :: (Text -> f Text) -> StartChatContact -> f StartChatContact
startChatContact_contactFlowId = (StartChatContact -> Text)
-> (StartChatContact -> Text -> StartChatContact)
-> Lens StartChatContact StartChatContact Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartChatContact' {Text
contactFlowId :: Text
$sel:contactFlowId:StartChatContact' :: StartChatContact -> Text
contactFlowId} -> Text
contactFlowId) (\s :: StartChatContact
s@StartChatContact' {} Text
a -> StartChatContact
s {$sel:contactFlowId:StartChatContact' :: Text
contactFlowId = Text
a} :: StartChatContact)
startChatContact_participantDetails :: Lens.Lens' StartChatContact ParticipantDetails
startChatContact_participantDetails :: (ParticipantDetails -> f ParticipantDetails)
-> StartChatContact -> f StartChatContact
startChatContact_participantDetails = (StartChatContact -> ParticipantDetails)
-> (StartChatContact -> ParticipantDetails -> StartChatContact)
-> Lens
StartChatContact
StartChatContact
ParticipantDetails
ParticipantDetails
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartChatContact' {ParticipantDetails
participantDetails :: ParticipantDetails
$sel:participantDetails:StartChatContact' :: StartChatContact -> ParticipantDetails
participantDetails} -> ParticipantDetails
participantDetails) (\s :: StartChatContact
s@StartChatContact' {} ParticipantDetails
a -> StartChatContact
s {$sel:participantDetails:StartChatContact' :: ParticipantDetails
participantDetails = ParticipantDetails
a} :: StartChatContact)
instance Core.AWSRequest StartChatContact where
type
AWSResponse StartChatContact =
StartChatContactResponse
request :: StartChatContact -> Request StartChatContact
request = Service -> StartChatContact -> Request StartChatContact
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON Service
defaultService
response :: Logger
-> Service
-> Proxy StartChatContact
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse StartChatContact)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse StartChatContact))
-> Logger
-> Service
-> Proxy StartChatContact
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse StartChatContact)))
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 -> Int -> StartChatContactResponse
StartChatContactResponse'
(Maybe Text
-> Maybe Text -> Maybe Text -> Int -> StartChatContactResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text -> Maybe Text -> Int -> StartChatContactResponse)
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
"ParticipantToken")
Either
String
(Maybe Text -> Maybe Text -> Int -> StartChatContactResponse)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> Int -> StartChatContactResponse)
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
"ParticipantId")
Either String (Maybe Text -> Int -> StartChatContactResponse)
-> Either String (Maybe Text)
-> Either String (Int -> StartChatContactResponse)
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
"ContactId")
Either String (Int -> StartChatContactResponse)
-> Either String Int -> Either String StartChatContactResponse
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 StartChatContact
instance Prelude.NFData StartChatContact
instance Core.ToHeaders StartChatContact where
toHeaders :: StartChatContact -> ResponseHeaders
toHeaders =
ResponseHeaders -> StartChatContact -> 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 StartChatContact where
toJSON :: StartChatContact -> Value
toJSON StartChatContact' {Maybe Text
Maybe (HashMap Text Text)
Maybe ChatMessage
Text
ParticipantDetails
participantDetails :: ParticipantDetails
contactFlowId :: Text
instanceId :: Text
initialMessage :: Maybe ChatMessage
attributes :: Maybe (HashMap Text Text)
clientToken :: Maybe Text
$sel:participantDetails:StartChatContact' :: StartChatContact -> ParticipantDetails
$sel:contactFlowId:StartChatContact' :: StartChatContact -> Text
$sel:instanceId:StartChatContact' :: StartChatContact -> Text
$sel:initialMessage:StartChatContact' :: StartChatContact -> Maybe ChatMessage
$sel:attributes:StartChatContact' :: StartChatContact -> Maybe (HashMap Text Text)
$sel:clientToken:StartChatContact' :: StartChatContact -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"ClientToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
clientToken,
(Text
"Attributes" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
attributes,
(Text
"InitialMessage" Text -> ChatMessage -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(ChatMessage -> Pair) -> Maybe ChatMessage -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ChatMessage
initialMessage,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"InstanceId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
instanceId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"ContactFlowId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
contactFlowId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"ParticipantDetails" Text -> ParticipantDetails -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= ParticipantDetails
participantDetails)
]
)
instance Core.ToPath StartChatContact where
toPath :: StartChatContact -> ByteString
toPath = ByteString -> StartChatContact -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/contact/chat"
instance Core.ToQuery StartChatContact where
toQuery :: StartChatContact -> QueryString
toQuery = QueryString -> StartChatContact -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data StartChatContactResponse = StartChatContactResponse'
{
StartChatContactResponse -> Maybe Text
participantToken :: Prelude.Maybe Prelude.Text,
StartChatContactResponse -> Maybe Text
participantId :: Prelude.Maybe Prelude.Text,
StartChatContactResponse -> Maybe Text
contactId :: Prelude.Maybe Prelude.Text,
StartChatContactResponse -> Int
httpStatus :: Prelude.Int
}
deriving (StartChatContactResponse -> StartChatContactResponse -> Bool
(StartChatContactResponse -> StartChatContactResponse -> Bool)
-> (StartChatContactResponse -> StartChatContactResponse -> Bool)
-> Eq StartChatContactResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartChatContactResponse -> StartChatContactResponse -> Bool
$c/= :: StartChatContactResponse -> StartChatContactResponse -> Bool
== :: StartChatContactResponse -> StartChatContactResponse -> Bool
$c== :: StartChatContactResponse -> StartChatContactResponse -> Bool
Prelude.Eq, ReadPrec [StartChatContactResponse]
ReadPrec StartChatContactResponse
Int -> ReadS StartChatContactResponse
ReadS [StartChatContactResponse]
(Int -> ReadS StartChatContactResponse)
-> ReadS [StartChatContactResponse]
-> ReadPrec StartChatContactResponse
-> ReadPrec [StartChatContactResponse]
-> Read StartChatContactResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartChatContactResponse]
$creadListPrec :: ReadPrec [StartChatContactResponse]
readPrec :: ReadPrec StartChatContactResponse
$creadPrec :: ReadPrec StartChatContactResponse
readList :: ReadS [StartChatContactResponse]
$creadList :: ReadS [StartChatContactResponse]
readsPrec :: Int -> ReadS StartChatContactResponse
$creadsPrec :: Int -> ReadS StartChatContactResponse
Prelude.Read, Int -> StartChatContactResponse -> ShowS
[StartChatContactResponse] -> ShowS
StartChatContactResponse -> String
(Int -> StartChatContactResponse -> ShowS)
-> (StartChatContactResponse -> String)
-> ([StartChatContactResponse] -> ShowS)
-> Show StartChatContactResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartChatContactResponse] -> ShowS
$cshowList :: [StartChatContactResponse] -> ShowS
show :: StartChatContactResponse -> String
$cshow :: StartChatContactResponse -> String
showsPrec :: Int -> StartChatContactResponse -> ShowS
$cshowsPrec :: Int -> StartChatContactResponse -> ShowS
Prelude.Show, (forall x.
StartChatContactResponse -> Rep StartChatContactResponse x)
-> (forall x.
Rep StartChatContactResponse x -> StartChatContactResponse)
-> Generic StartChatContactResponse
forall x.
Rep StartChatContactResponse x -> StartChatContactResponse
forall x.
StartChatContactResponse -> Rep StartChatContactResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StartChatContactResponse x -> StartChatContactResponse
$cfrom :: forall x.
StartChatContactResponse -> Rep StartChatContactResponse x
Prelude.Generic)
newStartChatContactResponse ::
Prelude.Int ->
StartChatContactResponse
newStartChatContactResponse :: Int -> StartChatContactResponse
newStartChatContactResponse Int
pHttpStatus_ =
StartChatContactResponse' :: Maybe Text
-> Maybe Text -> Maybe Text -> Int -> StartChatContactResponse
StartChatContactResponse'
{ $sel:participantToken:StartChatContactResponse' :: Maybe Text
participantToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:participantId:StartChatContactResponse' :: Maybe Text
participantId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:contactId:StartChatContactResponse' :: Maybe Text
contactId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:StartChatContactResponse' :: Int
httpStatus = Int
pHttpStatus_
}
startChatContactResponse_participantToken :: Lens.Lens' StartChatContactResponse (Prelude.Maybe Prelude.Text)
startChatContactResponse_participantToken :: (Maybe Text -> f (Maybe Text))
-> StartChatContactResponse -> f StartChatContactResponse
startChatContactResponse_participantToken = (StartChatContactResponse -> Maybe Text)
-> (StartChatContactResponse
-> Maybe Text -> StartChatContactResponse)
-> Lens
StartChatContactResponse
StartChatContactResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartChatContactResponse' {Maybe Text
participantToken :: Maybe Text
$sel:participantToken:StartChatContactResponse' :: StartChatContactResponse -> Maybe Text
participantToken} -> Maybe Text
participantToken) (\s :: StartChatContactResponse
s@StartChatContactResponse' {} Maybe Text
a -> StartChatContactResponse
s {$sel:participantToken:StartChatContactResponse' :: Maybe Text
participantToken = Maybe Text
a} :: StartChatContactResponse)
startChatContactResponse_participantId :: Lens.Lens' StartChatContactResponse (Prelude.Maybe Prelude.Text)
startChatContactResponse_participantId :: (Maybe Text -> f (Maybe Text))
-> StartChatContactResponse -> f StartChatContactResponse
startChatContactResponse_participantId = (StartChatContactResponse -> Maybe Text)
-> (StartChatContactResponse
-> Maybe Text -> StartChatContactResponse)
-> Lens
StartChatContactResponse
StartChatContactResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartChatContactResponse' {Maybe Text
participantId :: Maybe Text
$sel:participantId:StartChatContactResponse' :: StartChatContactResponse -> Maybe Text
participantId} -> Maybe Text
participantId) (\s :: StartChatContactResponse
s@StartChatContactResponse' {} Maybe Text
a -> StartChatContactResponse
s {$sel:participantId:StartChatContactResponse' :: Maybe Text
participantId = Maybe Text
a} :: StartChatContactResponse)
startChatContactResponse_contactId :: Lens.Lens' StartChatContactResponse (Prelude.Maybe Prelude.Text)
startChatContactResponse_contactId :: (Maybe Text -> f (Maybe Text))
-> StartChatContactResponse -> f StartChatContactResponse
startChatContactResponse_contactId = (StartChatContactResponse -> Maybe Text)
-> (StartChatContactResponse
-> Maybe Text -> StartChatContactResponse)
-> Lens
StartChatContactResponse
StartChatContactResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartChatContactResponse' {Maybe Text
contactId :: Maybe Text
$sel:contactId:StartChatContactResponse' :: StartChatContactResponse -> Maybe Text
contactId} -> Maybe Text
contactId) (\s :: StartChatContactResponse
s@StartChatContactResponse' {} Maybe Text
a -> StartChatContactResponse
s {$sel:contactId:StartChatContactResponse' :: Maybe Text
contactId = Maybe Text
a} :: StartChatContactResponse)
startChatContactResponse_httpStatus :: Lens.Lens' StartChatContactResponse Prelude.Int
startChatContactResponse_httpStatus :: (Int -> f Int)
-> StartChatContactResponse -> f StartChatContactResponse
startChatContactResponse_httpStatus = (StartChatContactResponse -> Int)
-> (StartChatContactResponse -> Int -> StartChatContactResponse)
-> Lens StartChatContactResponse StartChatContactResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartChatContactResponse' {Int
httpStatus :: Int
$sel:httpStatus:StartChatContactResponse' :: StartChatContactResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: StartChatContactResponse
s@StartChatContactResponse' {} Int
a -> StartChatContactResponse
s {$sel:httpStatus:StartChatContactResponse' :: Int
httpStatus = Int
a} :: StartChatContactResponse)
instance Prelude.NFData StartChatContactResponse