{-# 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.LexModels.GetBotChannelAssociation
(
GetBotChannelAssociation (..),
newGetBotChannelAssociation,
getBotChannelAssociation_name,
getBotChannelAssociation_botName,
getBotChannelAssociation_botAlias,
GetBotChannelAssociationResponse (..),
newGetBotChannelAssociationResponse,
getBotChannelAssociationResponse_failureReason,
getBotChannelAssociationResponse_status,
getBotChannelAssociationResponse_botAlias,
getBotChannelAssociationResponse_botName,
getBotChannelAssociationResponse_botConfiguration,
getBotChannelAssociationResponse_createdDate,
getBotChannelAssociationResponse_name,
getBotChannelAssociationResponse_type,
getBotChannelAssociationResponse_description,
getBotChannelAssociationResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.LexModels.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data GetBotChannelAssociation = GetBotChannelAssociation'
{
GetBotChannelAssociation -> Text
name :: Prelude.Text,
GetBotChannelAssociation -> Text
botName :: Prelude.Text,
GetBotChannelAssociation -> Text
botAlias :: Prelude.Text
}
deriving (GetBotChannelAssociation -> GetBotChannelAssociation -> Bool
(GetBotChannelAssociation -> GetBotChannelAssociation -> Bool)
-> (GetBotChannelAssociation -> GetBotChannelAssociation -> Bool)
-> Eq GetBotChannelAssociation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetBotChannelAssociation -> GetBotChannelAssociation -> Bool
$c/= :: GetBotChannelAssociation -> GetBotChannelAssociation -> Bool
== :: GetBotChannelAssociation -> GetBotChannelAssociation -> Bool
$c== :: GetBotChannelAssociation -> GetBotChannelAssociation -> Bool
Prelude.Eq, ReadPrec [GetBotChannelAssociation]
ReadPrec GetBotChannelAssociation
Int -> ReadS GetBotChannelAssociation
ReadS [GetBotChannelAssociation]
(Int -> ReadS GetBotChannelAssociation)
-> ReadS [GetBotChannelAssociation]
-> ReadPrec GetBotChannelAssociation
-> ReadPrec [GetBotChannelAssociation]
-> Read GetBotChannelAssociation
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetBotChannelAssociation]
$creadListPrec :: ReadPrec [GetBotChannelAssociation]
readPrec :: ReadPrec GetBotChannelAssociation
$creadPrec :: ReadPrec GetBotChannelAssociation
readList :: ReadS [GetBotChannelAssociation]
$creadList :: ReadS [GetBotChannelAssociation]
readsPrec :: Int -> ReadS GetBotChannelAssociation
$creadsPrec :: Int -> ReadS GetBotChannelAssociation
Prelude.Read, Int -> GetBotChannelAssociation -> ShowS
[GetBotChannelAssociation] -> ShowS
GetBotChannelAssociation -> String
(Int -> GetBotChannelAssociation -> ShowS)
-> (GetBotChannelAssociation -> String)
-> ([GetBotChannelAssociation] -> ShowS)
-> Show GetBotChannelAssociation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetBotChannelAssociation] -> ShowS
$cshowList :: [GetBotChannelAssociation] -> ShowS
show :: GetBotChannelAssociation -> String
$cshow :: GetBotChannelAssociation -> String
showsPrec :: Int -> GetBotChannelAssociation -> ShowS
$cshowsPrec :: Int -> GetBotChannelAssociation -> ShowS
Prelude.Show, (forall x.
GetBotChannelAssociation -> Rep GetBotChannelAssociation x)
-> (forall x.
Rep GetBotChannelAssociation x -> GetBotChannelAssociation)
-> Generic GetBotChannelAssociation
forall x.
Rep GetBotChannelAssociation x -> GetBotChannelAssociation
forall x.
GetBotChannelAssociation -> Rep GetBotChannelAssociation x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetBotChannelAssociation x -> GetBotChannelAssociation
$cfrom :: forall x.
GetBotChannelAssociation -> Rep GetBotChannelAssociation x
Prelude.Generic)
newGetBotChannelAssociation ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
GetBotChannelAssociation
newGetBotChannelAssociation :: Text -> Text -> Text -> GetBotChannelAssociation
newGetBotChannelAssociation
Text
pName_
Text
pBotName_
Text
pBotAlias_ =
GetBotChannelAssociation' :: Text -> Text -> Text -> GetBotChannelAssociation
GetBotChannelAssociation'
{ $sel:name:GetBotChannelAssociation' :: Text
name = Text
pName_,
$sel:botName:GetBotChannelAssociation' :: Text
botName = Text
pBotName_,
$sel:botAlias:GetBotChannelAssociation' :: Text
botAlias = Text
pBotAlias_
}
getBotChannelAssociation_name :: Lens.Lens' GetBotChannelAssociation Prelude.Text
getBotChannelAssociation_name :: (Text -> f Text)
-> GetBotChannelAssociation -> f GetBotChannelAssociation
getBotChannelAssociation_name = (GetBotChannelAssociation -> Text)
-> (GetBotChannelAssociation -> Text -> GetBotChannelAssociation)
-> Lens GetBotChannelAssociation GetBotChannelAssociation Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBotChannelAssociation' {Text
name :: Text
$sel:name:GetBotChannelAssociation' :: GetBotChannelAssociation -> Text
name} -> Text
name) (\s :: GetBotChannelAssociation
s@GetBotChannelAssociation' {} Text
a -> GetBotChannelAssociation
s {$sel:name:GetBotChannelAssociation' :: Text
name = Text
a} :: GetBotChannelAssociation)
getBotChannelAssociation_botName :: Lens.Lens' GetBotChannelAssociation Prelude.Text
getBotChannelAssociation_botName :: (Text -> f Text)
-> GetBotChannelAssociation -> f GetBotChannelAssociation
getBotChannelAssociation_botName = (GetBotChannelAssociation -> Text)
-> (GetBotChannelAssociation -> Text -> GetBotChannelAssociation)
-> Lens GetBotChannelAssociation GetBotChannelAssociation Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBotChannelAssociation' {Text
botName :: Text
$sel:botName:GetBotChannelAssociation' :: GetBotChannelAssociation -> Text
botName} -> Text
botName) (\s :: GetBotChannelAssociation
s@GetBotChannelAssociation' {} Text
a -> GetBotChannelAssociation
s {$sel:botName:GetBotChannelAssociation' :: Text
botName = Text
a} :: GetBotChannelAssociation)
getBotChannelAssociation_botAlias :: Lens.Lens' GetBotChannelAssociation Prelude.Text
getBotChannelAssociation_botAlias :: (Text -> f Text)
-> GetBotChannelAssociation -> f GetBotChannelAssociation
getBotChannelAssociation_botAlias = (GetBotChannelAssociation -> Text)
-> (GetBotChannelAssociation -> Text -> GetBotChannelAssociation)
-> Lens GetBotChannelAssociation GetBotChannelAssociation Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBotChannelAssociation' {Text
botAlias :: Text
$sel:botAlias:GetBotChannelAssociation' :: GetBotChannelAssociation -> Text
botAlias} -> Text
botAlias) (\s :: GetBotChannelAssociation
s@GetBotChannelAssociation' {} Text
a -> GetBotChannelAssociation
s {$sel:botAlias:GetBotChannelAssociation' :: Text
botAlias = Text
a} :: GetBotChannelAssociation)
instance Core.AWSRequest GetBotChannelAssociation where
type
AWSResponse GetBotChannelAssociation =
GetBotChannelAssociationResponse
request :: GetBotChannelAssociation -> Request GetBotChannelAssociation
request = Service
-> GetBotChannelAssociation -> Request GetBotChannelAssociation
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy GetBotChannelAssociation
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetBotChannelAssociation)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetBotChannelAssociation))
-> Logger
-> Service
-> Proxy GetBotChannelAssociation
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetBotChannelAssociation)))
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 ChannelStatus
-> Maybe Text
-> Maybe Text
-> Maybe (Sensitive (HashMap Text Text))
-> Maybe POSIX
-> Maybe Text
-> Maybe ChannelType
-> Maybe Text
-> Int
-> GetBotChannelAssociationResponse
GetBotChannelAssociationResponse'
(Maybe Text
-> Maybe ChannelStatus
-> Maybe Text
-> Maybe Text
-> Maybe (Sensitive (HashMap Text Text))
-> Maybe POSIX
-> Maybe Text
-> Maybe ChannelType
-> Maybe Text
-> Int
-> GetBotChannelAssociationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe ChannelStatus
-> Maybe Text
-> Maybe Text
-> Maybe (Sensitive (HashMap Text Text))
-> Maybe POSIX
-> Maybe Text
-> Maybe ChannelType
-> Maybe Text
-> Int
-> GetBotChannelAssociationResponse)
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
"failureReason")
Either
String
(Maybe ChannelStatus
-> Maybe Text
-> Maybe Text
-> Maybe (Sensitive (HashMap Text Text))
-> Maybe POSIX
-> Maybe Text
-> Maybe ChannelType
-> Maybe Text
-> Int
-> GetBotChannelAssociationResponse)
-> Either String (Maybe ChannelStatus)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe (Sensitive (HashMap Text Text))
-> Maybe POSIX
-> Maybe Text
-> Maybe ChannelType
-> Maybe Text
-> Int
-> GetBotChannelAssociationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe ChannelStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"status")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe (Sensitive (HashMap Text Text))
-> Maybe POSIX
-> Maybe Text
-> Maybe ChannelType
-> Maybe Text
-> Int
-> GetBotChannelAssociationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe (Sensitive (HashMap Text Text))
-> Maybe POSIX
-> Maybe Text
-> Maybe ChannelType
-> Maybe Text
-> Int
-> GetBotChannelAssociationResponse)
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
"botAlias")
Either
String
(Maybe Text
-> Maybe (Sensitive (HashMap Text Text))
-> Maybe POSIX
-> Maybe Text
-> Maybe ChannelType
-> Maybe Text
-> Int
-> GetBotChannelAssociationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe (Sensitive (HashMap Text Text))
-> Maybe POSIX
-> Maybe Text
-> Maybe ChannelType
-> Maybe Text
-> Int
-> GetBotChannelAssociationResponse)
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
"botName")
Either
String
(Maybe (Sensitive (HashMap Text Text))
-> Maybe POSIX
-> Maybe Text
-> Maybe ChannelType
-> Maybe Text
-> Int
-> GetBotChannelAssociationResponse)
-> Either String (Maybe (Sensitive (HashMap Text Text)))
-> Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe ChannelType
-> Maybe Text
-> Int
-> GetBotChannelAssociationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text
-> Either String (Maybe (Maybe (Sensitive (HashMap Text Text))))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"botConfiguration"
Either String (Maybe (Maybe (Sensitive (HashMap Text Text))))
-> Maybe (Sensitive (HashMap Text Text))
-> Either String (Maybe (Sensitive (HashMap Text Text)))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (Sensitive (HashMap Text Text))
forall a. Monoid a => a
Prelude.mempty
)
Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe ChannelType
-> Maybe Text
-> Int
-> GetBotChannelAssociationResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text
-> Maybe ChannelType
-> Maybe Text
-> Int
-> GetBotChannelAssociationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"createdDate")
Either
String
(Maybe Text
-> Maybe ChannelType
-> Maybe Text
-> Int
-> GetBotChannelAssociationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe ChannelType
-> Maybe Text -> Int -> GetBotChannelAssociationResponse)
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
"name")
Either
String
(Maybe ChannelType
-> Maybe Text -> Int -> GetBotChannelAssociationResponse)
-> Either String (Maybe ChannelType)
-> Either
String (Maybe Text -> Int -> GetBotChannelAssociationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe ChannelType)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"type")
Either
String (Maybe Text -> Int -> GetBotChannelAssociationResponse)
-> Either String (Maybe Text)
-> Either String (Int -> GetBotChannelAssociationResponse)
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
"description")
Either String (Int -> GetBotChannelAssociationResponse)
-> Either String Int
-> Either String GetBotChannelAssociationResponse
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 GetBotChannelAssociation
instance Prelude.NFData GetBotChannelAssociation
instance Core.ToHeaders GetBotChannelAssociation where
toHeaders :: GetBotChannelAssociation -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetBotChannelAssociation -> 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 GetBotChannelAssociation where
toPath :: GetBotChannelAssociation -> ByteString
toPath GetBotChannelAssociation' {Text
botAlias :: Text
botName :: Text
name :: Text
$sel:botAlias:GetBotChannelAssociation' :: GetBotChannelAssociation -> Text
$sel:botName:GetBotChannelAssociation' :: GetBotChannelAssociation -> Text
$sel:name:GetBotChannelAssociation' :: GetBotChannelAssociation -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/bots/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
botName,
ByteString
"/aliases/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
botAlias,
ByteString
"/channels/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
name
]
instance Core.ToQuery GetBotChannelAssociation where
toQuery :: GetBotChannelAssociation -> QueryString
toQuery = QueryString -> GetBotChannelAssociation -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetBotChannelAssociationResponse = GetBotChannelAssociationResponse'
{
GetBotChannelAssociationResponse -> Maybe Text
failureReason :: Prelude.Maybe Prelude.Text,
GetBotChannelAssociationResponse -> Maybe ChannelStatus
status :: Prelude.Maybe ChannelStatus,
GetBotChannelAssociationResponse -> Maybe Text
botAlias :: Prelude.Maybe Prelude.Text,
GetBotChannelAssociationResponse -> Maybe Text
botName :: Prelude.Maybe Prelude.Text,
GetBotChannelAssociationResponse
-> Maybe (Sensitive (HashMap Text Text))
botConfiguration :: Prelude.Maybe (Core.Sensitive (Prelude.HashMap Prelude.Text Prelude.Text)),
GetBotChannelAssociationResponse -> Maybe POSIX
createdDate :: Prelude.Maybe Core.POSIX,
GetBotChannelAssociationResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
GetBotChannelAssociationResponse -> Maybe ChannelType
type' :: Prelude.Maybe ChannelType,
GetBotChannelAssociationResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
GetBotChannelAssociationResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetBotChannelAssociationResponse
-> GetBotChannelAssociationResponse -> Bool
(GetBotChannelAssociationResponse
-> GetBotChannelAssociationResponse -> Bool)
-> (GetBotChannelAssociationResponse
-> GetBotChannelAssociationResponse -> Bool)
-> Eq GetBotChannelAssociationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetBotChannelAssociationResponse
-> GetBotChannelAssociationResponse -> Bool
$c/= :: GetBotChannelAssociationResponse
-> GetBotChannelAssociationResponse -> Bool
== :: GetBotChannelAssociationResponse
-> GetBotChannelAssociationResponse -> Bool
$c== :: GetBotChannelAssociationResponse
-> GetBotChannelAssociationResponse -> Bool
Prelude.Eq, Int -> GetBotChannelAssociationResponse -> ShowS
[GetBotChannelAssociationResponse] -> ShowS
GetBotChannelAssociationResponse -> String
(Int -> GetBotChannelAssociationResponse -> ShowS)
-> (GetBotChannelAssociationResponse -> String)
-> ([GetBotChannelAssociationResponse] -> ShowS)
-> Show GetBotChannelAssociationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetBotChannelAssociationResponse] -> ShowS
$cshowList :: [GetBotChannelAssociationResponse] -> ShowS
show :: GetBotChannelAssociationResponse -> String
$cshow :: GetBotChannelAssociationResponse -> String
showsPrec :: Int -> GetBotChannelAssociationResponse -> ShowS
$cshowsPrec :: Int -> GetBotChannelAssociationResponse -> ShowS
Prelude.Show, (forall x.
GetBotChannelAssociationResponse
-> Rep GetBotChannelAssociationResponse x)
-> (forall x.
Rep GetBotChannelAssociationResponse x
-> GetBotChannelAssociationResponse)
-> Generic GetBotChannelAssociationResponse
forall x.
Rep GetBotChannelAssociationResponse x
-> GetBotChannelAssociationResponse
forall x.
GetBotChannelAssociationResponse
-> Rep GetBotChannelAssociationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetBotChannelAssociationResponse x
-> GetBotChannelAssociationResponse
$cfrom :: forall x.
GetBotChannelAssociationResponse
-> Rep GetBotChannelAssociationResponse x
Prelude.Generic)
newGetBotChannelAssociationResponse ::
Prelude.Int ->
GetBotChannelAssociationResponse
newGetBotChannelAssociationResponse :: Int -> GetBotChannelAssociationResponse
newGetBotChannelAssociationResponse Int
pHttpStatus_ =
GetBotChannelAssociationResponse' :: Maybe Text
-> Maybe ChannelStatus
-> Maybe Text
-> Maybe Text
-> Maybe (Sensitive (HashMap Text Text))
-> Maybe POSIX
-> Maybe Text
-> Maybe ChannelType
-> Maybe Text
-> Int
-> GetBotChannelAssociationResponse
GetBotChannelAssociationResponse'
{ $sel:failureReason:GetBotChannelAssociationResponse' :: Maybe Text
failureReason =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:status:GetBotChannelAssociationResponse' :: Maybe ChannelStatus
status = Maybe ChannelStatus
forall a. Maybe a
Prelude.Nothing,
$sel:botAlias:GetBotChannelAssociationResponse' :: Maybe Text
botAlias = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:botName:GetBotChannelAssociationResponse' :: Maybe Text
botName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:botConfiguration:GetBotChannelAssociationResponse' :: Maybe (Sensitive (HashMap Text Text))
botConfiguration = Maybe (Sensitive (HashMap Text Text))
forall a. Maybe a
Prelude.Nothing,
$sel:createdDate:GetBotChannelAssociationResponse' :: Maybe POSIX
createdDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:name:GetBotChannelAssociationResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:type':GetBotChannelAssociationResponse' :: Maybe ChannelType
type' = Maybe ChannelType
forall a. Maybe a
Prelude.Nothing,
$sel:description:GetBotChannelAssociationResponse' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetBotChannelAssociationResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getBotChannelAssociationResponse_failureReason :: Lens.Lens' GetBotChannelAssociationResponse (Prelude.Maybe Prelude.Text)
getBotChannelAssociationResponse_failureReason :: (Maybe Text -> f (Maybe Text))
-> GetBotChannelAssociationResponse
-> f GetBotChannelAssociationResponse
getBotChannelAssociationResponse_failureReason = (GetBotChannelAssociationResponse -> Maybe Text)
-> (GetBotChannelAssociationResponse
-> Maybe Text -> GetBotChannelAssociationResponse)
-> Lens
GetBotChannelAssociationResponse
GetBotChannelAssociationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBotChannelAssociationResponse' {Maybe Text
failureReason :: Maybe Text
$sel:failureReason:GetBotChannelAssociationResponse' :: GetBotChannelAssociationResponse -> Maybe Text
failureReason} -> Maybe Text
failureReason) (\s :: GetBotChannelAssociationResponse
s@GetBotChannelAssociationResponse' {} Maybe Text
a -> GetBotChannelAssociationResponse
s {$sel:failureReason:GetBotChannelAssociationResponse' :: Maybe Text
failureReason = Maybe Text
a} :: GetBotChannelAssociationResponse)
getBotChannelAssociationResponse_status :: Lens.Lens' GetBotChannelAssociationResponse (Prelude.Maybe ChannelStatus)
getBotChannelAssociationResponse_status :: (Maybe ChannelStatus -> f (Maybe ChannelStatus))
-> GetBotChannelAssociationResponse
-> f GetBotChannelAssociationResponse
getBotChannelAssociationResponse_status = (GetBotChannelAssociationResponse -> Maybe ChannelStatus)
-> (GetBotChannelAssociationResponse
-> Maybe ChannelStatus -> GetBotChannelAssociationResponse)
-> Lens
GetBotChannelAssociationResponse
GetBotChannelAssociationResponse
(Maybe ChannelStatus)
(Maybe ChannelStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBotChannelAssociationResponse' {Maybe ChannelStatus
status :: Maybe ChannelStatus
$sel:status:GetBotChannelAssociationResponse' :: GetBotChannelAssociationResponse -> Maybe ChannelStatus
status} -> Maybe ChannelStatus
status) (\s :: GetBotChannelAssociationResponse
s@GetBotChannelAssociationResponse' {} Maybe ChannelStatus
a -> GetBotChannelAssociationResponse
s {$sel:status:GetBotChannelAssociationResponse' :: Maybe ChannelStatus
status = Maybe ChannelStatus
a} :: GetBotChannelAssociationResponse)
getBotChannelAssociationResponse_botAlias :: Lens.Lens' GetBotChannelAssociationResponse (Prelude.Maybe Prelude.Text)
getBotChannelAssociationResponse_botAlias :: (Maybe Text -> f (Maybe Text))
-> GetBotChannelAssociationResponse
-> f GetBotChannelAssociationResponse
getBotChannelAssociationResponse_botAlias = (GetBotChannelAssociationResponse -> Maybe Text)
-> (GetBotChannelAssociationResponse
-> Maybe Text -> GetBotChannelAssociationResponse)
-> Lens
GetBotChannelAssociationResponse
GetBotChannelAssociationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBotChannelAssociationResponse' {Maybe Text
botAlias :: Maybe Text
$sel:botAlias:GetBotChannelAssociationResponse' :: GetBotChannelAssociationResponse -> Maybe Text
botAlias} -> Maybe Text
botAlias) (\s :: GetBotChannelAssociationResponse
s@GetBotChannelAssociationResponse' {} Maybe Text
a -> GetBotChannelAssociationResponse
s {$sel:botAlias:GetBotChannelAssociationResponse' :: Maybe Text
botAlias = Maybe Text
a} :: GetBotChannelAssociationResponse)
getBotChannelAssociationResponse_botName :: Lens.Lens' GetBotChannelAssociationResponse (Prelude.Maybe Prelude.Text)
getBotChannelAssociationResponse_botName :: (Maybe Text -> f (Maybe Text))
-> GetBotChannelAssociationResponse
-> f GetBotChannelAssociationResponse
getBotChannelAssociationResponse_botName = (GetBotChannelAssociationResponse -> Maybe Text)
-> (GetBotChannelAssociationResponse
-> Maybe Text -> GetBotChannelAssociationResponse)
-> Lens
GetBotChannelAssociationResponse
GetBotChannelAssociationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBotChannelAssociationResponse' {Maybe Text
botName :: Maybe Text
$sel:botName:GetBotChannelAssociationResponse' :: GetBotChannelAssociationResponse -> Maybe Text
botName} -> Maybe Text
botName) (\s :: GetBotChannelAssociationResponse
s@GetBotChannelAssociationResponse' {} Maybe Text
a -> GetBotChannelAssociationResponse
s {$sel:botName:GetBotChannelAssociationResponse' :: Maybe Text
botName = Maybe Text
a} :: GetBotChannelAssociationResponse)
getBotChannelAssociationResponse_botConfiguration :: Lens.Lens' GetBotChannelAssociationResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
getBotChannelAssociationResponse_botConfiguration :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetBotChannelAssociationResponse
-> f GetBotChannelAssociationResponse
getBotChannelAssociationResponse_botConfiguration = (GetBotChannelAssociationResponse
-> Maybe (Sensitive (HashMap Text Text)))
-> (GetBotChannelAssociationResponse
-> Maybe (Sensitive (HashMap Text Text))
-> GetBotChannelAssociationResponse)
-> Lens
GetBotChannelAssociationResponse
GetBotChannelAssociationResponse
(Maybe (Sensitive (HashMap Text Text)))
(Maybe (Sensitive (HashMap Text Text)))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBotChannelAssociationResponse' {Maybe (Sensitive (HashMap Text Text))
botConfiguration :: Maybe (Sensitive (HashMap Text Text))
$sel:botConfiguration:GetBotChannelAssociationResponse' :: GetBotChannelAssociationResponse
-> Maybe (Sensitive (HashMap Text Text))
botConfiguration} -> Maybe (Sensitive (HashMap Text Text))
botConfiguration) (\s :: GetBotChannelAssociationResponse
s@GetBotChannelAssociationResponse' {} Maybe (Sensitive (HashMap Text Text))
a -> GetBotChannelAssociationResponse
s {$sel:botConfiguration:GetBotChannelAssociationResponse' :: Maybe (Sensitive (HashMap Text Text))
botConfiguration = Maybe (Sensitive (HashMap Text Text))
a} :: GetBotChannelAssociationResponse) ((Maybe (Sensitive (HashMap Text Text))
-> f (Maybe (Sensitive (HashMap Text Text))))
-> GetBotChannelAssociationResponse
-> f GetBotChannelAssociationResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (Sensitive (HashMap Text Text))
-> f (Maybe (Sensitive (HashMap Text Text))))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetBotChannelAssociationResponse
-> f GetBotChannelAssociationResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(Sensitive (HashMap Text Text))
(Sensitive (HashMap Text Text))
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (Sensitive (HashMap Text Text)))
(Maybe (Sensitive (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
(Sensitive (HashMap Text Text))
(Sensitive (HashMap Text Text))
(HashMap Text Text)
(HashMap Text Text)
forall a. Iso' (Sensitive a) a
Core._Sensitive AnIso
(Sensitive (HashMap Text Text))
(Sensitive (HashMap Text Text))
(HashMap Text Text)
(HashMap Text Text)
-> (Exchange
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(Identity (HashMap Text Text))
-> Exchange
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(Identity (HashMap Text Text)))
-> AnIso
(Sensitive (HashMap Text Text))
(Sensitive (HashMap Text Text))
(HashMap Text Text)
(HashMap Text Text)
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Exchange
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(Identity (HashMap Text Text))
-> Exchange
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(Identity (HashMap Text Text))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced)
getBotChannelAssociationResponse_createdDate :: Lens.Lens' GetBotChannelAssociationResponse (Prelude.Maybe Prelude.UTCTime)
getBotChannelAssociationResponse_createdDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetBotChannelAssociationResponse
-> f GetBotChannelAssociationResponse
getBotChannelAssociationResponse_createdDate = (GetBotChannelAssociationResponse -> Maybe POSIX)
-> (GetBotChannelAssociationResponse
-> Maybe POSIX -> GetBotChannelAssociationResponse)
-> Lens
GetBotChannelAssociationResponse
GetBotChannelAssociationResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBotChannelAssociationResponse' {Maybe POSIX
createdDate :: Maybe POSIX
$sel:createdDate:GetBotChannelAssociationResponse' :: GetBotChannelAssociationResponse -> Maybe POSIX
createdDate} -> Maybe POSIX
createdDate) (\s :: GetBotChannelAssociationResponse
s@GetBotChannelAssociationResponse' {} Maybe POSIX
a -> GetBotChannelAssociationResponse
s {$sel:createdDate:GetBotChannelAssociationResponse' :: Maybe POSIX
createdDate = Maybe POSIX
a} :: GetBotChannelAssociationResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> GetBotChannelAssociationResponse
-> f GetBotChannelAssociationResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetBotChannelAssociationResponse
-> f GetBotChannelAssociationResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
getBotChannelAssociationResponse_name :: Lens.Lens' GetBotChannelAssociationResponse (Prelude.Maybe Prelude.Text)
getBotChannelAssociationResponse_name :: (Maybe Text -> f (Maybe Text))
-> GetBotChannelAssociationResponse
-> f GetBotChannelAssociationResponse
getBotChannelAssociationResponse_name = (GetBotChannelAssociationResponse -> Maybe Text)
-> (GetBotChannelAssociationResponse
-> Maybe Text -> GetBotChannelAssociationResponse)
-> Lens
GetBotChannelAssociationResponse
GetBotChannelAssociationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBotChannelAssociationResponse' {Maybe Text
name :: Maybe Text
$sel:name:GetBotChannelAssociationResponse' :: GetBotChannelAssociationResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: GetBotChannelAssociationResponse
s@GetBotChannelAssociationResponse' {} Maybe Text
a -> GetBotChannelAssociationResponse
s {$sel:name:GetBotChannelAssociationResponse' :: Maybe Text
name = Maybe Text
a} :: GetBotChannelAssociationResponse)
getBotChannelAssociationResponse_type :: Lens.Lens' GetBotChannelAssociationResponse (Prelude.Maybe ChannelType)
getBotChannelAssociationResponse_type :: (Maybe ChannelType -> f (Maybe ChannelType))
-> GetBotChannelAssociationResponse
-> f GetBotChannelAssociationResponse
getBotChannelAssociationResponse_type = (GetBotChannelAssociationResponse -> Maybe ChannelType)
-> (GetBotChannelAssociationResponse
-> Maybe ChannelType -> GetBotChannelAssociationResponse)
-> Lens
GetBotChannelAssociationResponse
GetBotChannelAssociationResponse
(Maybe ChannelType)
(Maybe ChannelType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBotChannelAssociationResponse' {Maybe ChannelType
type' :: Maybe ChannelType
$sel:type':GetBotChannelAssociationResponse' :: GetBotChannelAssociationResponse -> Maybe ChannelType
type'} -> Maybe ChannelType
type') (\s :: GetBotChannelAssociationResponse
s@GetBotChannelAssociationResponse' {} Maybe ChannelType
a -> GetBotChannelAssociationResponse
s {$sel:type':GetBotChannelAssociationResponse' :: Maybe ChannelType
type' = Maybe ChannelType
a} :: GetBotChannelAssociationResponse)
getBotChannelAssociationResponse_description :: Lens.Lens' GetBotChannelAssociationResponse (Prelude.Maybe Prelude.Text)
getBotChannelAssociationResponse_description :: (Maybe Text -> f (Maybe Text))
-> GetBotChannelAssociationResponse
-> f GetBotChannelAssociationResponse
getBotChannelAssociationResponse_description = (GetBotChannelAssociationResponse -> Maybe Text)
-> (GetBotChannelAssociationResponse
-> Maybe Text -> GetBotChannelAssociationResponse)
-> Lens
GetBotChannelAssociationResponse
GetBotChannelAssociationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBotChannelAssociationResponse' {Maybe Text
description :: Maybe Text
$sel:description:GetBotChannelAssociationResponse' :: GetBotChannelAssociationResponse -> Maybe Text
description} -> Maybe Text
description) (\s :: GetBotChannelAssociationResponse
s@GetBotChannelAssociationResponse' {} Maybe Text
a -> GetBotChannelAssociationResponse
s {$sel:description:GetBotChannelAssociationResponse' :: Maybe Text
description = Maybe Text
a} :: GetBotChannelAssociationResponse)
getBotChannelAssociationResponse_httpStatus :: Lens.Lens' GetBotChannelAssociationResponse Prelude.Int
getBotChannelAssociationResponse_httpStatus :: (Int -> f Int)
-> GetBotChannelAssociationResponse
-> f GetBotChannelAssociationResponse
getBotChannelAssociationResponse_httpStatus = (GetBotChannelAssociationResponse -> Int)
-> (GetBotChannelAssociationResponse
-> Int -> GetBotChannelAssociationResponse)
-> Lens
GetBotChannelAssociationResponse
GetBotChannelAssociationResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBotChannelAssociationResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetBotChannelAssociationResponse' :: GetBotChannelAssociationResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetBotChannelAssociationResponse
s@GetBotChannelAssociationResponse' {} Int
a -> GetBotChannelAssociationResponse
s {$sel:httpStatus:GetBotChannelAssociationResponse' :: Int
httpStatus = Int
a} :: GetBotChannelAssociationResponse)
instance
Prelude.NFData
GetBotChannelAssociationResponse