{-# 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.CreateBotVersion
(
CreateBotVersion (..),
newCreateBotVersion,
createBotVersion_checksum,
createBotVersion_name,
CreateBotVersionResponse (..),
newCreateBotVersionResponse,
createBotVersionResponse_failureReason,
createBotVersionResponse_status,
createBotVersionResponse_abortStatement,
createBotVersionResponse_intents,
createBotVersionResponse_checksum,
createBotVersionResponse_enableModelImprovements,
createBotVersionResponse_detectSentiment,
createBotVersionResponse_locale,
createBotVersionResponse_createdDate,
createBotVersionResponse_name,
createBotVersionResponse_version,
createBotVersionResponse_idleSessionTTLInSeconds,
createBotVersionResponse_clarificationPrompt,
createBotVersionResponse_voiceId,
createBotVersionResponse_lastUpdatedDate,
createBotVersionResponse_childDirected,
createBotVersionResponse_description,
createBotVersionResponse_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 CreateBotVersion = CreateBotVersion'
{
CreateBotVersion -> Maybe Text
checksum :: Prelude.Maybe Prelude.Text,
CreateBotVersion -> Text
name :: Prelude.Text
}
deriving (CreateBotVersion -> CreateBotVersion -> Bool
(CreateBotVersion -> CreateBotVersion -> Bool)
-> (CreateBotVersion -> CreateBotVersion -> Bool)
-> Eq CreateBotVersion
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateBotVersion -> CreateBotVersion -> Bool
$c/= :: CreateBotVersion -> CreateBotVersion -> Bool
== :: CreateBotVersion -> CreateBotVersion -> Bool
$c== :: CreateBotVersion -> CreateBotVersion -> Bool
Prelude.Eq, ReadPrec [CreateBotVersion]
ReadPrec CreateBotVersion
Int -> ReadS CreateBotVersion
ReadS [CreateBotVersion]
(Int -> ReadS CreateBotVersion)
-> ReadS [CreateBotVersion]
-> ReadPrec CreateBotVersion
-> ReadPrec [CreateBotVersion]
-> Read CreateBotVersion
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateBotVersion]
$creadListPrec :: ReadPrec [CreateBotVersion]
readPrec :: ReadPrec CreateBotVersion
$creadPrec :: ReadPrec CreateBotVersion
readList :: ReadS [CreateBotVersion]
$creadList :: ReadS [CreateBotVersion]
readsPrec :: Int -> ReadS CreateBotVersion
$creadsPrec :: Int -> ReadS CreateBotVersion
Prelude.Read, Int -> CreateBotVersion -> ShowS
[CreateBotVersion] -> ShowS
CreateBotVersion -> String
(Int -> CreateBotVersion -> ShowS)
-> (CreateBotVersion -> String)
-> ([CreateBotVersion] -> ShowS)
-> Show CreateBotVersion
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateBotVersion] -> ShowS
$cshowList :: [CreateBotVersion] -> ShowS
show :: CreateBotVersion -> String
$cshow :: CreateBotVersion -> String
showsPrec :: Int -> CreateBotVersion -> ShowS
$cshowsPrec :: Int -> CreateBotVersion -> ShowS
Prelude.Show, (forall x. CreateBotVersion -> Rep CreateBotVersion x)
-> (forall x. Rep CreateBotVersion x -> CreateBotVersion)
-> Generic CreateBotVersion
forall x. Rep CreateBotVersion x -> CreateBotVersion
forall x. CreateBotVersion -> Rep CreateBotVersion x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateBotVersion x -> CreateBotVersion
$cfrom :: forall x. CreateBotVersion -> Rep CreateBotVersion x
Prelude.Generic)
newCreateBotVersion ::
Prelude.Text ->
CreateBotVersion
newCreateBotVersion :: Text -> CreateBotVersion
newCreateBotVersion Text
pName_ =
CreateBotVersion' :: Maybe Text -> Text -> CreateBotVersion
CreateBotVersion'
{ $sel:checksum:CreateBotVersion' :: Maybe Text
checksum = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:name:CreateBotVersion' :: Text
name = Text
pName_
}
createBotVersion_checksum :: Lens.Lens' CreateBotVersion (Prelude.Maybe Prelude.Text)
createBotVersion_checksum :: (Maybe Text -> f (Maybe Text))
-> CreateBotVersion -> f CreateBotVersion
createBotVersion_checksum = (CreateBotVersion -> Maybe Text)
-> (CreateBotVersion -> Maybe Text -> CreateBotVersion)
-> Lens CreateBotVersion CreateBotVersion (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateBotVersion' {Maybe Text
checksum :: Maybe Text
$sel:checksum:CreateBotVersion' :: CreateBotVersion -> Maybe Text
checksum} -> Maybe Text
checksum) (\s :: CreateBotVersion
s@CreateBotVersion' {} Maybe Text
a -> CreateBotVersion
s {$sel:checksum:CreateBotVersion' :: Maybe Text
checksum = Maybe Text
a} :: CreateBotVersion)
createBotVersion_name :: Lens.Lens' CreateBotVersion Prelude.Text
createBotVersion_name :: (Text -> f Text) -> CreateBotVersion -> f CreateBotVersion
createBotVersion_name = (CreateBotVersion -> Text)
-> (CreateBotVersion -> Text -> CreateBotVersion)
-> Lens CreateBotVersion CreateBotVersion Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateBotVersion' {Text
name :: Text
$sel:name:CreateBotVersion' :: CreateBotVersion -> Text
name} -> Text
name) (\s :: CreateBotVersion
s@CreateBotVersion' {} Text
a -> CreateBotVersion
s {$sel:name:CreateBotVersion' :: Text
name = Text
a} :: CreateBotVersion)
instance Core.AWSRequest CreateBotVersion where
type
AWSResponse CreateBotVersion =
CreateBotVersionResponse
request :: CreateBotVersion -> Request CreateBotVersion
request = Service -> CreateBotVersion -> Request CreateBotVersion
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateBotVersion
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateBotVersion)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateBotVersion))
-> Logger
-> Service
-> Proxy CreateBotVersion
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateBotVersion)))
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 LexStatus
-> Maybe Statement
-> Maybe [Intent]
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Locale
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Int
-> CreateBotVersionResponse
CreateBotVersionResponse'
(Maybe Text
-> Maybe LexStatus
-> Maybe Statement
-> Maybe [Intent]
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Locale
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Int
-> CreateBotVersionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe LexStatus
-> Maybe Statement
-> Maybe [Intent]
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Locale
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Int
-> CreateBotVersionResponse)
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 LexStatus
-> Maybe Statement
-> Maybe [Intent]
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Locale
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Int
-> CreateBotVersionResponse)
-> Either String (Maybe LexStatus)
-> Either
String
(Maybe Statement
-> Maybe [Intent]
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Locale
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Int
-> CreateBotVersionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe LexStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"status")
Either
String
(Maybe Statement
-> Maybe [Intent]
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Locale
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Int
-> CreateBotVersionResponse)
-> Either String (Maybe Statement)
-> Either
String
(Maybe [Intent]
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Locale
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Int
-> CreateBotVersionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Statement)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"abortStatement")
Either
String
(Maybe [Intent]
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Locale
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Int
-> CreateBotVersionResponse)
-> Either String (Maybe [Intent])
-> Either
String
(Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Locale
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Int
-> CreateBotVersionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [Intent]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"intents" Either String (Maybe (Maybe [Intent]))
-> Maybe [Intent] -> Either String (Maybe [Intent])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Intent]
forall a. Monoid a => a
Prelude.mempty)
Either
String
(Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Locale
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Int
-> CreateBotVersionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Bool
-> Maybe Bool
-> Maybe Locale
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Int
-> CreateBotVersionResponse)
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
"checksum")
Either
String
(Maybe Bool
-> Maybe Bool
-> Maybe Locale
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Int
-> CreateBotVersionResponse)
-> Either String (Maybe Bool)
-> Either
String
(Maybe Bool
-> Maybe Locale
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Int
-> CreateBotVersionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"enableModelImprovements")
Either
String
(Maybe Bool
-> Maybe Locale
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Int
-> CreateBotVersionResponse)
-> Either String (Maybe Bool)
-> Either
String
(Maybe Locale
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Int
-> CreateBotVersionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"detectSentiment")
Either
String
(Maybe Locale
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Int
-> CreateBotVersionResponse)
-> Either String (Maybe Locale)
-> Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Int
-> CreateBotVersionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Locale)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"locale")
Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Int
-> CreateBotVersionResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Int
-> CreateBotVersionResponse)
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 Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Int
-> CreateBotVersionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Int
-> CreateBotVersionResponse)
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 Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Int
-> CreateBotVersionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Int
-> CreateBotVersionResponse)
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
"version")
Either
String
(Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Int
-> CreateBotVersionResponse)
-> Either String (Maybe Natural)
-> Either
String
(Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Int
-> CreateBotVersionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"idleSessionTTLInSeconds")
Either
String
(Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Int
-> CreateBotVersionResponse)
-> Either String (Maybe Prompt)
-> Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Int
-> CreateBotVersionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Prompt)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"clarificationPrompt")
Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Int
-> CreateBotVersionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe Bool -> Maybe Text -> Int -> CreateBotVersionResponse)
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
"voiceId")
Either
String
(Maybe POSIX
-> Maybe Bool -> Maybe Text -> Int -> CreateBotVersionResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Bool -> Maybe Text -> Int -> CreateBotVersionResponse)
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
"lastUpdatedDate")
Either
String
(Maybe Bool -> Maybe Text -> Int -> CreateBotVersionResponse)
-> Either String (Maybe Bool)
-> Either String (Maybe Text -> Int -> CreateBotVersionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"childDirected")
Either String (Maybe Text -> Int -> CreateBotVersionResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CreateBotVersionResponse)
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 -> CreateBotVersionResponse)
-> Either String Int -> Either String CreateBotVersionResponse
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 CreateBotVersion
instance Prelude.NFData CreateBotVersion
instance Core.ToHeaders CreateBotVersion where
toHeaders :: CreateBotVersion -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateBotVersion -> 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 CreateBotVersion where
toJSON :: CreateBotVersion -> Value
toJSON CreateBotVersion' {Maybe Text
Text
name :: Text
checksum :: Maybe Text
$sel:name:CreateBotVersion' :: CreateBotVersion -> Text
$sel:checksum:CreateBotVersion' :: CreateBotVersion -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[(Text
"checksum" 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
checksum]
)
instance Core.ToPath CreateBotVersion where
toPath :: CreateBotVersion -> ByteString
toPath CreateBotVersion' {Maybe Text
Text
name :: Text
checksum :: Maybe Text
$sel:name:CreateBotVersion' :: CreateBotVersion -> Text
$sel:checksum:CreateBotVersion' :: CreateBotVersion -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/bots/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
name, ByteString
"/versions"]
instance Core.ToQuery CreateBotVersion where
toQuery :: CreateBotVersion -> QueryString
toQuery = QueryString -> CreateBotVersion -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateBotVersionResponse = CreateBotVersionResponse'
{
CreateBotVersionResponse -> Maybe Text
failureReason :: Prelude.Maybe Prelude.Text,
CreateBotVersionResponse -> Maybe LexStatus
status :: Prelude.Maybe LexStatus,
CreateBotVersionResponse -> Maybe Statement
abortStatement :: Prelude.Maybe Statement,
CreateBotVersionResponse -> Maybe [Intent]
intents :: Prelude.Maybe [Intent],
CreateBotVersionResponse -> Maybe Text
checksum :: Prelude.Maybe Prelude.Text,
CreateBotVersionResponse -> Maybe Bool
enableModelImprovements :: Prelude.Maybe Prelude.Bool,
CreateBotVersionResponse -> Maybe Bool
detectSentiment :: Prelude.Maybe Prelude.Bool,
CreateBotVersionResponse -> Maybe Locale
locale :: Prelude.Maybe Locale,
CreateBotVersionResponse -> Maybe POSIX
createdDate :: Prelude.Maybe Core.POSIX,
CreateBotVersionResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
CreateBotVersionResponse -> Maybe Text
version :: Prelude.Maybe Prelude.Text,
CreateBotVersionResponse -> Maybe Natural
idleSessionTTLInSeconds :: Prelude.Maybe Prelude.Natural,
CreateBotVersionResponse -> Maybe Prompt
clarificationPrompt :: Prelude.Maybe Prompt,
CreateBotVersionResponse -> Maybe Text
voiceId :: Prelude.Maybe Prelude.Text,
CreateBotVersionResponse -> Maybe POSIX
lastUpdatedDate :: Prelude.Maybe Core.POSIX,
CreateBotVersionResponse -> Maybe Bool
childDirected :: Prelude.Maybe Prelude.Bool,
CreateBotVersionResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
CreateBotVersionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateBotVersionResponse -> CreateBotVersionResponse -> Bool
(CreateBotVersionResponse -> CreateBotVersionResponse -> Bool)
-> (CreateBotVersionResponse -> CreateBotVersionResponse -> Bool)
-> Eq CreateBotVersionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateBotVersionResponse -> CreateBotVersionResponse -> Bool
$c/= :: CreateBotVersionResponse -> CreateBotVersionResponse -> Bool
== :: CreateBotVersionResponse -> CreateBotVersionResponse -> Bool
$c== :: CreateBotVersionResponse -> CreateBotVersionResponse -> Bool
Prelude.Eq, ReadPrec [CreateBotVersionResponse]
ReadPrec CreateBotVersionResponse
Int -> ReadS CreateBotVersionResponse
ReadS [CreateBotVersionResponse]
(Int -> ReadS CreateBotVersionResponse)
-> ReadS [CreateBotVersionResponse]
-> ReadPrec CreateBotVersionResponse
-> ReadPrec [CreateBotVersionResponse]
-> Read CreateBotVersionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateBotVersionResponse]
$creadListPrec :: ReadPrec [CreateBotVersionResponse]
readPrec :: ReadPrec CreateBotVersionResponse
$creadPrec :: ReadPrec CreateBotVersionResponse
readList :: ReadS [CreateBotVersionResponse]
$creadList :: ReadS [CreateBotVersionResponse]
readsPrec :: Int -> ReadS CreateBotVersionResponse
$creadsPrec :: Int -> ReadS CreateBotVersionResponse
Prelude.Read, Int -> CreateBotVersionResponse -> ShowS
[CreateBotVersionResponse] -> ShowS
CreateBotVersionResponse -> String
(Int -> CreateBotVersionResponse -> ShowS)
-> (CreateBotVersionResponse -> String)
-> ([CreateBotVersionResponse] -> ShowS)
-> Show CreateBotVersionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateBotVersionResponse] -> ShowS
$cshowList :: [CreateBotVersionResponse] -> ShowS
show :: CreateBotVersionResponse -> String
$cshow :: CreateBotVersionResponse -> String
showsPrec :: Int -> CreateBotVersionResponse -> ShowS
$cshowsPrec :: Int -> CreateBotVersionResponse -> ShowS
Prelude.Show, (forall x.
CreateBotVersionResponse -> Rep CreateBotVersionResponse x)
-> (forall x.
Rep CreateBotVersionResponse x -> CreateBotVersionResponse)
-> Generic CreateBotVersionResponse
forall x.
Rep CreateBotVersionResponse x -> CreateBotVersionResponse
forall x.
CreateBotVersionResponse -> Rep CreateBotVersionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateBotVersionResponse x -> CreateBotVersionResponse
$cfrom :: forall x.
CreateBotVersionResponse -> Rep CreateBotVersionResponse x
Prelude.Generic)
newCreateBotVersionResponse ::
Prelude.Int ->
CreateBotVersionResponse
newCreateBotVersionResponse :: Int -> CreateBotVersionResponse
newCreateBotVersionResponse Int
pHttpStatus_ =
CreateBotVersionResponse' :: Maybe Text
-> Maybe LexStatus
-> Maybe Statement
-> Maybe [Intent]
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Locale
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Int
-> CreateBotVersionResponse
CreateBotVersionResponse'
{ $sel:failureReason:CreateBotVersionResponse' :: Maybe Text
failureReason =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:status:CreateBotVersionResponse' :: Maybe LexStatus
status = Maybe LexStatus
forall a. Maybe a
Prelude.Nothing,
$sel:abortStatement:CreateBotVersionResponse' :: Maybe Statement
abortStatement = Maybe Statement
forall a. Maybe a
Prelude.Nothing,
$sel:intents:CreateBotVersionResponse' :: Maybe [Intent]
intents = Maybe [Intent]
forall a. Maybe a
Prelude.Nothing,
$sel:checksum:CreateBotVersionResponse' :: Maybe Text
checksum = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:enableModelImprovements:CreateBotVersionResponse' :: Maybe Bool
enableModelImprovements = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:detectSentiment:CreateBotVersionResponse' :: Maybe Bool
detectSentiment = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:locale:CreateBotVersionResponse' :: Maybe Locale
locale = Maybe Locale
forall a. Maybe a
Prelude.Nothing,
$sel:createdDate:CreateBotVersionResponse' :: Maybe POSIX
createdDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:name:CreateBotVersionResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:version:CreateBotVersionResponse' :: Maybe Text
version = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:idleSessionTTLInSeconds:CreateBotVersionResponse' :: Maybe Natural
idleSessionTTLInSeconds = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:clarificationPrompt:CreateBotVersionResponse' :: Maybe Prompt
clarificationPrompt = Maybe Prompt
forall a. Maybe a
Prelude.Nothing,
$sel:voiceId:CreateBotVersionResponse' :: Maybe Text
voiceId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:lastUpdatedDate:CreateBotVersionResponse' :: Maybe POSIX
lastUpdatedDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:childDirected:CreateBotVersionResponse' :: Maybe Bool
childDirected = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:description:CreateBotVersionResponse' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateBotVersionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createBotVersionResponse_failureReason :: Lens.Lens' CreateBotVersionResponse (Prelude.Maybe Prelude.Text)
createBotVersionResponse_failureReason :: (Maybe Text -> f (Maybe Text))
-> CreateBotVersionResponse -> f CreateBotVersionResponse
createBotVersionResponse_failureReason = (CreateBotVersionResponse -> Maybe Text)
-> (CreateBotVersionResponse
-> Maybe Text -> CreateBotVersionResponse)
-> Lens
CreateBotVersionResponse
CreateBotVersionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateBotVersionResponse' {Maybe Text
failureReason :: Maybe Text
$sel:failureReason:CreateBotVersionResponse' :: CreateBotVersionResponse -> Maybe Text
failureReason} -> Maybe Text
failureReason) (\s :: CreateBotVersionResponse
s@CreateBotVersionResponse' {} Maybe Text
a -> CreateBotVersionResponse
s {$sel:failureReason:CreateBotVersionResponse' :: Maybe Text
failureReason = Maybe Text
a} :: CreateBotVersionResponse)
createBotVersionResponse_status :: Lens.Lens' CreateBotVersionResponse (Prelude.Maybe LexStatus)
createBotVersionResponse_status :: (Maybe LexStatus -> f (Maybe LexStatus))
-> CreateBotVersionResponse -> f CreateBotVersionResponse
createBotVersionResponse_status = (CreateBotVersionResponse -> Maybe LexStatus)
-> (CreateBotVersionResponse
-> Maybe LexStatus -> CreateBotVersionResponse)
-> Lens
CreateBotVersionResponse
CreateBotVersionResponse
(Maybe LexStatus)
(Maybe LexStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateBotVersionResponse' {Maybe LexStatus
status :: Maybe LexStatus
$sel:status:CreateBotVersionResponse' :: CreateBotVersionResponse -> Maybe LexStatus
status} -> Maybe LexStatus
status) (\s :: CreateBotVersionResponse
s@CreateBotVersionResponse' {} Maybe LexStatus
a -> CreateBotVersionResponse
s {$sel:status:CreateBotVersionResponse' :: Maybe LexStatus
status = Maybe LexStatus
a} :: CreateBotVersionResponse)
createBotVersionResponse_abortStatement :: Lens.Lens' CreateBotVersionResponse (Prelude.Maybe Statement)
createBotVersionResponse_abortStatement :: (Maybe Statement -> f (Maybe Statement))
-> CreateBotVersionResponse -> f CreateBotVersionResponse
createBotVersionResponse_abortStatement = (CreateBotVersionResponse -> Maybe Statement)
-> (CreateBotVersionResponse
-> Maybe Statement -> CreateBotVersionResponse)
-> Lens
CreateBotVersionResponse
CreateBotVersionResponse
(Maybe Statement)
(Maybe Statement)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateBotVersionResponse' {Maybe Statement
abortStatement :: Maybe Statement
$sel:abortStatement:CreateBotVersionResponse' :: CreateBotVersionResponse -> Maybe Statement
abortStatement} -> Maybe Statement
abortStatement) (\s :: CreateBotVersionResponse
s@CreateBotVersionResponse' {} Maybe Statement
a -> CreateBotVersionResponse
s {$sel:abortStatement:CreateBotVersionResponse' :: Maybe Statement
abortStatement = Maybe Statement
a} :: CreateBotVersionResponse)
createBotVersionResponse_intents :: Lens.Lens' CreateBotVersionResponse (Prelude.Maybe [Intent])
createBotVersionResponse_intents :: (Maybe [Intent] -> f (Maybe [Intent]))
-> CreateBotVersionResponse -> f CreateBotVersionResponse
createBotVersionResponse_intents = (CreateBotVersionResponse -> Maybe [Intent])
-> (CreateBotVersionResponse
-> Maybe [Intent] -> CreateBotVersionResponse)
-> Lens
CreateBotVersionResponse
CreateBotVersionResponse
(Maybe [Intent])
(Maybe [Intent])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateBotVersionResponse' {Maybe [Intent]
intents :: Maybe [Intent]
$sel:intents:CreateBotVersionResponse' :: CreateBotVersionResponse -> Maybe [Intent]
intents} -> Maybe [Intent]
intents) (\s :: CreateBotVersionResponse
s@CreateBotVersionResponse' {} Maybe [Intent]
a -> CreateBotVersionResponse
s {$sel:intents:CreateBotVersionResponse' :: Maybe [Intent]
intents = Maybe [Intent]
a} :: CreateBotVersionResponse) ((Maybe [Intent] -> f (Maybe [Intent]))
-> CreateBotVersionResponse -> f CreateBotVersionResponse)
-> ((Maybe [Intent] -> f (Maybe [Intent]))
-> Maybe [Intent] -> f (Maybe [Intent]))
-> (Maybe [Intent] -> f (Maybe [Intent]))
-> CreateBotVersionResponse
-> f CreateBotVersionResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Intent] [Intent] [Intent] [Intent]
-> Iso
(Maybe [Intent]) (Maybe [Intent]) (Maybe [Intent]) (Maybe [Intent])
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 [Intent] [Intent] [Intent] [Intent]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createBotVersionResponse_checksum :: Lens.Lens' CreateBotVersionResponse (Prelude.Maybe Prelude.Text)
createBotVersionResponse_checksum :: (Maybe Text -> f (Maybe Text))
-> CreateBotVersionResponse -> f CreateBotVersionResponse
createBotVersionResponse_checksum = (CreateBotVersionResponse -> Maybe Text)
-> (CreateBotVersionResponse
-> Maybe Text -> CreateBotVersionResponse)
-> Lens
CreateBotVersionResponse
CreateBotVersionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateBotVersionResponse' {Maybe Text
checksum :: Maybe Text
$sel:checksum:CreateBotVersionResponse' :: CreateBotVersionResponse -> Maybe Text
checksum} -> Maybe Text
checksum) (\s :: CreateBotVersionResponse
s@CreateBotVersionResponse' {} Maybe Text
a -> CreateBotVersionResponse
s {$sel:checksum:CreateBotVersionResponse' :: Maybe Text
checksum = Maybe Text
a} :: CreateBotVersionResponse)
createBotVersionResponse_enableModelImprovements :: Lens.Lens' CreateBotVersionResponse (Prelude.Maybe Prelude.Bool)
createBotVersionResponse_enableModelImprovements :: (Maybe Bool -> f (Maybe Bool))
-> CreateBotVersionResponse -> f CreateBotVersionResponse
createBotVersionResponse_enableModelImprovements = (CreateBotVersionResponse -> Maybe Bool)
-> (CreateBotVersionResponse
-> Maybe Bool -> CreateBotVersionResponse)
-> Lens
CreateBotVersionResponse
CreateBotVersionResponse
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateBotVersionResponse' {Maybe Bool
enableModelImprovements :: Maybe Bool
$sel:enableModelImprovements:CreateBotVersionResponse' :: CreateBotVersionResponse -> Maybe Bool
enableModelImprovements} -> Maybe Bool
enableModelImprovements) (\s :: CreateBotVersionResponse
s@CreateBotVersionResponse' {} Maybe Bool
a -> CreateBotVersionResponse
s {$sel:enableModelImprovements:CreateBotVersionResponse' :: Maybe Bool
enableModelImprovements = Maybe Bool
a} :: CreateBotVersionResponse)
createBotVersionResponse_detectSentiment :: Lens.Lens' CreateBotVersionResponse (Prelude.Maybe Prelude.Bool)
createBotVersionResponse_detectSentiment :: (Maybe Bool -> f (Maybe Bool))
-> CreateBotVersionResponse -> f CreateBotVersionResponse
createBotVersionResponse_detectSentiment = (CreateBotVersionResponse -> Maybe Bool)
-> (CreateBotVersionResponse
-> Maybe Bool -> CreateBotVersionResponse)
-> Lens
CreateBotVersionResponse
CreateBotVersionResponse
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateBotVersionResponse' {Maybe Bool
detectSentiment :: Maybe Bool
$sel:detectSentiment:CreateBotVersionResponse' :: CreateBotVersionResponse -> Maybe Bool
detectSentiment} -> Maybe Bool
detectSentiment) (\s :: CreateBotVersionResponse
s@CreateBotVersionResponse' {} Maybe Bool
a -> CreateBotVersionResponse
s {$sel:detectSentiment:CreateBotVersionResponse' :: Maybe Bool
detectSentiment = Maybe Bool
a} :: CreateBotVersionResponse)
createBotVersionResponse_locale :: Lens.Lens' CreateBotVersionResponse (Prelude.Maybe Locale)
createBotVersionResponse_locale :: (Maybe Locale -> f (Maybe Locale))
-> CreateBotVersionResponse -> f CreateBotVersionResponse
createBotVersionResponse_locale = (CreateBotVersionResponse -> Maybe Locale)
-> (CreateBotVersionResponse
-> Maybe Locale -> CreateBotVersionResponse)
-> Lens
CreateBotVersionResponse
CreateBotVersionResponse
(Maybe Locale)
(Maybe Locale)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateBotVersionResponse' {Maybe Locale
locale :: Maybe Locale
$sel:locale:CreateBotVersionResponse' :: CreateBotVersionResponse -> Maybe Locale
locale} -> Maybe Locale
locale) (\s :: CreateBotVersionResponse
s@CreateBotVersionResponse' {} Maybe Locale
a -> CreateBotVersionResponse
s {$sel:locale:CreateBotVersionResponse' :: Maybe Locale
locale = Maybe Locale
a} :: CreateBotVersionResponse)
createBotVersionResponse_createdDate :: Lens.Lens' CreateBotVersionResponse (Prelude.Maybe Prelude.UTCTime)
createBotVersionResponse_createdDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> CreateBotVersionResponse -> f CreateBotVersionResponse
createBotVersionResponse_createdDate = (CreateBotVersionResponse -> Maybe POSIX)
-> (CreateBotVersionResponse
-> Maybe POSIX -> CreateBotVersionResponse)
-> Lens
CreateBotVersionResponse
CreateBotVersionResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateBotVersionResponse' {Maybe POSIX
createdDate :: Maybe POSIX
$sel:createdDate:CreateBotVersionResponse' :: CreateBotVersionResponse -> Maybe POSIX
createdDate} -> Maybe POSIX
createdDate) (\s :: CreateBotVersionResponse
s@CreateBotVersionResponse' {} Maybe POSIX
a -> CreateBotVersionResponse
s {$sel:createdDate:CreateBotVersionResponse' :: Maybe POSIX
createdDate = Maybe POSIX
a} :: CreateBotVersionResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> CreateBotVersionResponse -> f CreateBotVersionResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> CreateBotVersionResponse
-> f CreateBotVersionResponse
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
createBotVersionResponse_name :: Lens.Lens' CreateBotVersionResponse (Prelude.Maybe Prelude.Text)
createBotVersionResponse_name :: (Maybe Text -> f (Maybe Text))
-> CreateBotVersionResponse -> f CreateBotVersionResponse
createBotVersionResponse_name = (CreateBotVersionResponse -> Maybe Text)
-> (CreateBotVersionResponse
-> Maybe Text -> CreateBotVersionResponse)
-> Lens
CreateBotVersionResponse
CreateBotVersionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateBotVersionResponse' {Maybe Text
name :: Maybe Text
$sel:name:CreateBotVersionResponse' :: CreateBotVersionResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: CreateBotVersionResponse
s@CreateBotVersionResponse' {} Maybe Text
a -> CreateBotVersionResponse
s {$sel:name:CreateBotVersionResponse' :: Maybe Text
name = Maybe Text
a} :: CreateBotVersionResponse)
createBotVersionResponse_version :: Lens.Lens' CreateBotVersionResponse (Prelude.Maybe Prelude.Text)
createBotVersionResponse_version :: (Maybe Text -> f (Maybe Text))
-> CreateBotVersionResponse -> f CreateBotVersionResponse
createBotVersionResponse_version = (CreateBotVersionResponse -> Maybe Text)
-> (CreateBotVersionResponse
-> Maybe Text -> CreateBotVersionResponse)
-> Lens
CreateBotVersionResponse
CreateBotVersionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateBotVersionResponse' {Maybe Text
version :: Maybe Text
$sel:version:CreateBotVersionResponse' :: CreateBotVersionResponse -> Maybe Text
version} -> Maybe Text
version) (\s :: CreateBotVersionResponse
s@CreateBotVersionResponse' {} Maybe Text
a -> CreateBotVersionResponse
s {$sel:version:CreateBotVersionResponse' :: Maybe Text
version = Maybe Text
a} :: CreateBotVersionResponse)
createBotVersionResponse_idleSessionTTLInSeconds :: Lens.Lens' CreateBotVersionResponse (Prelude.Maybe Prelude.Natural)
createBotVersionResponse_idleSessionTTLInSeconds :: (Maybe Natural -> f (Maybe Natural))
-> CreateBotVersionResponse -> f CreateBotVersionResponse
createBotVersionResponse_idleSessionTTLInSeconds = (CreateBotVersionResponse -> Maybe Natural)
-> (CreateBotVersionResponse
-> Maybe Natural -> CreateBotVersionResponse)
-> Lens
CreateBotVersionResponse
CreateBotVersionResponse
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateBotVersionResponse' {Maybe Natural
idleSessionTTLInSeconds :: Maybe Natural
$sel:idleSessionTTLInSeconds:CreateBotVersionResponse' :: CreateBotVersionResponse -> Maybe Natural
idleSessionTTLInSeconds} -> Maybe Natural
idleSessionTTLInSeconds) (\s :: CreateBotVersionResponse
s@CreateBotVersionResponse' {} Maybe Natural
a -> CreateBotVersionResponse
s {$sel:idleSessionTTLInSeconds:CreateBotVersionResponse' :: Maybe Natural
idleSessionTTLInSeconds = Maybe Natural
a} :: CreateBotVersionResponse)
createBotVersionResponse_clarificationPrompt :: Lens.Lens' CreateBotVersionResponse (Prelude.Maybe Prompt)
createBotVersionResponse_clarificationPrompt :: (Maybe Prompt -> f (Maybe Prompt))
-> CreateBotVersionResponse -> f CreateBotVersionResponse
createBotVersionResponse_clarificationPrompt = (CreateBotVersionResponse -> Maybe Prompt)
-> (CreateBotVersionResponse
-> Maybe Prompt -> CreateBotVersionResponse)
-> Lens
CreateBotVersionResponse
CreateBotVersionResponse
(Maybe Prompt)
(Maybe Prompt)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateBotVersionResponse' {Maybe Prompt
clarificationPrompt :: Maybe Prompt
$sel:clarificationPrompt:CreateBotVersionResponse' :: CreateBotVersionResponse -> Maybe Prompt
clarificationPrompt} -> Maybe Prompt
clarificationPrompt) (\s :: CreateBotVersionResponse
s@CreateBotVersionResponse' {} Maybe Prompt
a -> CreateBotVersionResponse
s {$sel:clarificationPrompt:CreateBotVersionResponse' :: Maybe Prompt
clarificationPrompt = Maybe Prompt
a} :: CreateBotVersionResponse)
createBotVersionResponse_voiceId :: Lens.Lens' CreateBotVersionResponse (Prelude.Maybe Prelude.Text)
createBotVersionResponse_voiceId :: (Maybe Text -> f (Maybe Text))
-> CreateBotVersionResponse -> f CreateBotVersionResponse
createBotVersionResponse_voiceId = (CreateBotVersionResponse -> Maybe Text)
-> (CreateBotVersionResponse
-> Maybe Text -> CreateBotVersionResponse)
-> Lens
CreateBotVersionResponse
CreateBotVersionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateBotVersionResponse' {Maybe Text
voiceId :: Maybe Text
$sel:voiceId:CreateBotVersionResponse' :: CreateBotVersionResponse -> Maybe Text
voiceId} -> Maybe Text
voiceId) (\s :: CreateBotVersionResponse
s@CreateBotVersionResponse' {} Maybe Text
a -> CreateBotVersionResponse
s {$sel:voiceId:CreateBotVersionResponse' :: Maybe Text
voiceId = Maybe Text
a} :: CreateBotVersionResponse)
createBotVersionResponse_lastUpdatedDate :: Lens.Lens' CreateBotVersionResponse (Prelude.Maybe Prelude.UTCTime)
createBotVersionResponse_lastUpdatedDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> CreateBotVersionResponse -> f CreateBotVersionResponse
createBotVersionResponse_lastUpdatedDate = (CreateBotVersionResponse -> Maybe POSIX)
-> (CreateBotVersionResponse
-> Maybe POSIX -> CreateBotVersionResponse)
-> Lens
CreateBotVersionResponse
CreateBotVersionResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateBotVersionResponse' {Maybe POSIX
lastUpdatedDate :: Maybe POSIX
$sel:lastUpdatedDate:CreateBotVersionResponse' :: CreateBotVersionResponse -> Maybe POSIX
lastUpdatedDate} -> Maybe POSIX
lastUpdatedDate) (\s :: CreateBotVersionResponse
s@CreateBotVersionResponse' {} Maybe POSIX
a -> CreateBotVersionResponse
s {$sel:lastUpdatedDate:CreateBotVersionResponse' :: Maybe POSIX
lastUpdatedDate = Maybe POSIX
a} :: CreateBotVersionResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> CreateBotVersionResponse -> f CreateBotVersionResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> CreateBotVersionResponse
-> f CreateBotVersionResponse
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
createBotVersionResponse_childDirected :: Lens.Lens' CreateBotVersionResponse (Prelude.Maybe Prelude.Bool)
createBotVersionResponse_childDirected :: (Maybe Bool -> f (Maybe Bool))
-> CreateBotVersionResponse -> f CreateBotVersionResponse
createBotVersionResponse_childDirected = (CreateBotVersionResponse -> Maybe Bool)
-> (CreateBotVersionResponse
-> Maybe Bool -> CreateBotVersionResponse)
-> Lens
CreateBotVersionResponse
CreateBotVersionResponse
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateBotVersionResponse' {Maybe Bool
childDirected :: Maybe Bool
$sel:childDirected:CreateBotVersionResponse' :: CreateBotVersionResponse -> Maybe Bool
childDirected} -> Maybe Bool
childDirected) (\s :: CreateBotVersionResponse
s@CreateBotVersionResponse' {} Maybe Bool
a -> CreateBotVersionResponse
s {$sel:childDirected:CreateBotVersionResponse' :: Maybe Bool
childDirected = Maybe Bool
a} :: CreateBotVersionResponse)
createBotVersionResponse_description :: Lens.Lens' CreateBotVersionResponse (Prelude.Maybe Prelude.Text)
createBotVersionResponse_description :: (Maybe Text -> f (Maybe Text))
-> CreateBotVersionResponse -> f CreateBotVersionResponse
createBotVersionResponse_description = (CreateBotVersionResponse -> Maybe Text)
-> (CreateBotVersionResponse
-> Maybe Text -> CreateBotVersionResponse)
-> Lens
CreateBotVersionResponse
CreateBotVersionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateBotVersionResponse' {Maybe Text
description :: Maybe Text
$sel:description:CreateBotVersionResponse' :: CreateBotVersionResponse -> Maybe Text
description} -> Maybe Text
description) (\s :: CreateBotVersionResponse
s@CreateBotVersionResponse' {} Maybe Text
a -> CreateBotVersionResponse
s {$sel:description:CreateBotVersionResponse' :: Maybe Text
description = Maybe Text
a} :: CreateBotVersionResponse)
createBotVersionResponse_httpStatus :: Lens.Lens' CreateBotVersionResponse Prelude.Int
createBotVersionResponse_httpStatus :: (Int -> f Int)
-> CreateBotVersionResponse -> f CreateBotVersionResponse
createBotVersionResponse_httpStatus = (CreateBotVersionResponse -> Int)
-> (CreateBotVersionResponse -> Int -> CreateBotVersionResponse)
-> Lens CreateBotVersionResponse CreateBotVersionResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateBotVersionResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateBotVersionResponse' :: CreateBotVersionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateBotVersionResponse
s@CreateBotVersionResponse' {} Int
a -> CreateBotVersionResponse
s {$sel:httpStatus:CreateBotVersionResponse' :: Int
httpStatus = Int
a} :: CreateBotVersionResponse)
instance Prelude.NFData CreateBotVersionResponse