{-# 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.PutBot
(
PutBot (..),
newPutBot,
putBot_abortStatement,
putBot_intents,
putBot_checksum,
putBot_enableModelImprovements,
putBot_nluIntentConfidenceThreshold,
putBot_detectSentiment,
putBot_processBehavior,
putBot_idleSessionTTLInSeconds,
putBot_clarificationPrompt,
putBot_voiceId,
putBot_createVersion,
putBot_description,
putBot_tags,
putBot_name,
putBot_locale,
putBot_childDirected,
PutBotResponse (..),
newPutBotResponse,
putBotResponse_failureReason,
putBotResponse_status,
putBotResponse_abortStatement,
putBotResponse_intents,
putBotResponse_checksum,
putBotResponse_enableModelImprovements,
putBotResponse_nluIntentConfidenceThreshold,
putBotResponse_detectSentiment,
putBotResponse_locale,
putBotResponse_createdDate,
putBotResponse_name,
putBotResponse_version,
putBotResponse_idleSessionTTLInSeconds,
putBotResponse_clarificationPrompt,
putBotResponse_voiceId,
putBotResponse_lastUpdatedDate,
putBotResponse_createVersion,
putBotResponse_childDirected,
putBotResponse_description,
putBotResponse_tags,
putBotResponse_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 PutBot = PutBot'
{
PutBot -> Maybe Statement
abortStatement :: Prelude.Maybe Statement,
PutBot -> Maybe [Intent]
intents :: Prelude.Maybe [Intent],
PutBot -> Maybe Text
checksum :: Prelude.Maybe Prelude.Text,
PutBot -> Maybe Bool
enableModelImprovements :: Prelude.Maybe Prelude.Bool,
PutBot -> Maybe Double
nluIntentConfidenceThreshold :: Prelude.Maybe Prelude.Double,
PutBot -> Maybe Bool
detectSentiment :: Prelude.Maybe Prelude.Bool,
PutBot -> Maybe ProcessBehavior
processBehavior :: Prelude.Maybe ProcessBehavior,
PutBot -> Maybe Natural
idleSessionTTLInSeconds :: Prelude.Maybe Prelude.Natural,
PutBot -> Maybe Prompt
clarificationPrompt :: Prelude.Maybe Prompt,
PutBot -> Maybe Text
voiceId :: Prelude.Maybe Prelude.Text,
PutBot -> Maybe Bool
createVersion :: Prelude.Maybe Prelude.Bool,
PutBot -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
PutBot -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
PutBot -> Text
name :: Prelude.Text,
PutBot -> Locale
locale :: Locale,
PutBot -> Bool
childDirected :: Prelude.Bool
}
deriving (PutBot -> PutBot -> Bool
(PutBot -> PutBot -> Bool)
-> (PutBot -> PutBot -> Bool) -> Eq PutBot
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutBot -> PutBot -> Bool
$c/= :: PutBot -> PutBot -> Bool
== :: PutBot -> PutBot -> Bool
$c== :: PutBot -> PutBot -> Bool
Prelude.Eq, ReadPrec [PutBot]
ReadPrec PutBot
Int -> ReadS PutBot
ReadS [PutBot]
(Int -> ReadS PutBot)
-> ReadS [PutBot]
-> ReadPrec PutBot
-> ReadPrec [PutBot]
-> Read PutBot
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PutBot]
$creadListPrec :: ReadPrec [PutBot]
readPrec :: ReadPrec PutBot
$creadPrec :: ReadPrec PutBot
readList :: ReadS [PutBot]
$creadList :: ReadS [PutBot]
readsPrec :: Int -> ReadS PutBot
$creadsPrec :: Int -> ReadS PutBot
Prelude.Read, Int -> PutBot -> ShowS
[PutBot] -> ShowS
PutBot -> String
(Int -> PutBot -> ShowS)
-> (PutBot -> String) -> ([PutBot] -> ShowS) -> Show PutBot
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutBot] -> ShowS
$cshowList :: [PutBot] -> ShowS
show :: PutBot -> String
$cshow :: PutBot -> String
showsPrec :: Int -> PutBot -> ShowS
$cshowsPrec :: Int -> PutBot -> ShowS
Prelude.Show, (forall x. PutBot -> Rep PutBot x)
-> (forall x. Rep PutBot x -> PutBot) -> Generic PutBot
forall x. Rep PutBot x -> PutBot
forall x. PutBot -> Rep PutBot x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PutBot x -> PutBot
$cfrom :: forall x. PutBot -> Rep PutBot x
Prelude.Generic)
newPutBot ::
Prelude.Text ->
Locale ->
Prelude.Bool ->
PutBot
newPutBot :: Text -> Locale -> Bool -> PutBot
newPutBot Text
pName_ Locale
pLocale_ Bool
pChildDirected_ =
PutBot' :: Maybe Statement
-> Maybe [Intent]
-> Maybe Text
-> Maybe Bool
-> Maybe Double
-> Maybe Bool
-> Maybe ProcessBehavior
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe [Tag]
-> Text
-> Locale
-> Bool
-> PutBot
PutBot'
{ $sel:abortStatement:PutBot' :: Maybe Statement
abortStatement = Maybe Statement
forall a. Maybe a
Prelude.Nothing,
$sel:intents:PutBot' :: Maybe [Intent]
intents = Maybe [Intent]
forall a. Maybe a
Prelude.Nothing,
$sel:checksum:PutBot' :: Maybe Text
checksum = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:enableModelImprovements:PutBot' :: Maybe Bool
enableModelImprovements = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:nluIntentConfidenceThreshold:PutBot' :: Maybe Double
nluIntentConfidenceThreshold = Maybe Double
forall a. Maybe a
Prelude.Nothing,
$sel:detectSentiment:PutBot' :: Maybe Bool
detectSentiment = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:processBehavior:PutBot' :: Maybe ProcessBehavior
processBehavior = Maybe ProcessBehavior
forall a. Maybe a
Prelude.Nothing,
$sel:idleSessionTTLInSeconds:PutBot' :: Maybe Natural
idleSessionTTLInSeconds = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:clarificationPrompt:PutBot' :: Maybe Prompt
clarificationPrompt = Maybe Prompt
forall a. Maybe a
Prelude.Nothing,
$sel:voiceId:PutBot' :: Maybe Text
voiceId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:createVersion:PutBot' :: Maybe Bool
createVersion = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:description:PutBot' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:PutBot' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:name:PutBot' :: Text
name = Text
pName_,
$sel:locale:PutBot' :: Locale
locale = Locale
pLocale_,
$sel:childDirected:PutBot' :: Bool
childDirected = Bool
pChildDirected_
}
putBot_abortStatement :: Lens.Lens' PutBot (Prelude.Maybe Statement)
putBot_abortStatement :: (Maybe Statement -> f (Maybe Statement)) -> PutBot -> f PutBot
putBot_abortStatement = (PutBot -> Maybe Statement)
-> (PutBot -> Maybe Statement -> PutBot)
-> Lens PutBot PutBot (Maybe Statement) (Maybe Statement)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBot' {Maybe Statement
abortStatement :: Maybe Statement
$sel:abortStatement:PutBot' :: PutBot -> Maybe Statement
abortStatement} -> Maybe Statement
abortStatement) (\s :: PutBot
s@PutBot' {} Maybe Statement
a -> PutBot
s {$sel:abortStatement:PutBot' :: Maybe Statement
abortStatement = Maybe Statement
a} :: PutBot)
putBot_intents :: Lens.Lens' PutBot (Prelude.Maybe [Intent])
putBot_intents :: (Maybe [Intent] -> f (Maybe [Intent])) -> PutBot -> f PutBot
putBot_intents = (PutBot -> Maybe [Intent])
-> (PutBot -> Maybe [Intent] -> PutBot)
-> Lens PutBot PutBot (Maybe [Intent]) (Maybe [Intent])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBot' {Maybe [Intent]
intents :: Maybe [Intent]
$sel:intents:PutBot' :: PutBot -> Maybe [Intent]
intents} -> Maybe [Intent]
intents) (\s :: PutBot
s@PutBot' {} Maybe [Intent]
a -> PutBot
s {$sel:intents:PutBot' :: Maybe [Intent]
intents = Maybe [Intent]
a} :: PutBot) ((Maybe [Intent] -> f (Maybe [Intent])) -> PutBot -> f PutBot)
-> ((Maybe [Intent] -> f (Maybe [Intent]))
-> Maybe [Intent] -> f (Maybe [Intent]))
-> (Maybe [Intent] -> f (Maybe [Intent]))
-> PutBot
-> f PutBot
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
putBot_checksum :: Lens.Lens' PutBot (Prelude.Maybe Prelude.Text)
putBot_checksum :: (Maybe Text -> f (Maybe Text)) -> PutBot -> f PutBot
putBot_checksum = (PutBot -> Maybe Text)
-> (PutBot -> Maybe Text -> PutBot)
-> Lens PutBot PutBot (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBot' {Maybe Text
checksum :: Maybe Text
$sel:checksum:PutBot' :: PutBot -> Maybe Text
checksum} -> Maybe Text
checksum) (\s :: PutBot
s@PutBot' {} Maybe Text
a -> PutBot
s {$sel:checksum:PutBot' :: Maybe Text
checksum = Maybe Text
a} :: PutBot)
putBot_enableModelImprovements :: Lens.Lens' PutBot (Prelude.Maybe Prelude.Bool)
putBot_enableModelImprovements :: (Maybe Bool -> f (Maybe Bool)) -> PutBot -> f PutBot
putBot_enableModelImprovements = (PutBot -> Maybe Bool)
-> (PutBot -> Maybe Bool -> PutBot)
-> Lens PutBot PutBot (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBot' {Maybe Bool
enableModelImprovements :: Maybe Bool
$sel:enableModelImprovements:PutBot' :: PutBot -> Maybe Bool
enableModelImprovements} -> Maybe Bool
enableModelImprovements) (\s :: PutBot
s@PutBot' {} Maybe Bool
a -> PutBot
s {$sel:enableModelImprovements:PutBot' :: Maybe Bool
enableModelImprovements = Maybe Bool
a} :: PutBot)
putBot_nluIntentConfidenceThreshold :: Lens.Lens' PutBot (Prelude.Maybe Prelude.Double)
putBot_nluIntentConfidenceThreshold :: (Maybe Double -> f (Maybe Double)) -> PutBot -> f PutBot
putBot_nluIntentConfidenceThreshold = (PutBot -> Maybe Double)
-> (PutBot -> Maybe Double -> PutBot)
-> Lens PutBot PutBot (Maybe Double) (Maybe Double)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBot' {Maybe Double
nluIntentConfidenceThreshold :: Maybe Double
$sel:nluIntentConfidenceThreshold:PutBot' :: PutBot -> Maybe Double
nluIntentConfidenceThreshold} -> Maybe Double
nluIntentConfidenceThreshold) (\s :: PutBot
s@PutBot' {} Maybe Double
a -> PutBot
s {$sel:nluIntentConfidenceThreshold:PutBot' :: Maybe Double
nluIntentConfidenceThreshold = Maybe Double
a} :: PutBot)
putBot_detectSentiment :: Lens.Lens' PutBot (Prelude.Maybe Prelude.Bool)
putBot_detectSentiment :: (Maybe Bool -> f (Maybe Bool)) -> PutBot -> f PutBot
putBot_detectSentiment = (PutBot -> Maybe Bool)
-> (PutBot -> Maybe Bool -> PutBot)
-> Lens PutBot PutBot (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBot' {Maybe Bool
detectSentiment :: Maybe Bool
$sel:detectSentiment:PutBot' :: PutBot -> Maybe Bool
detectSentiment} -> Maybe Bool
detectSentiment) (\s :: PutBot
s@PutBot' {} Maybe Bool
a -> PutBot
s {$sel:detectSentiment:PutBot' :: Maybe Bool
detectSentiment = Maybe Bool
a} :: PutBot)
putBot_processBehavior :: Lens.Lens' PutBot (Prelude.Maybe ProcessBehavior)
putBot_processBehavior :: (Maybe ProcessBehavior -> f (Maybe ProcessBehavior))
-> PutBot -> f PutBot
putBot_processBehavior = (PutBot -> Maybe ProcessBehavior)
-> (PutBot -> Maybe ProcessBehavior -> PutBot)
-> Lens
PutBot PutBot (Maybe ProcessBehavior) (Maybe ProcessBehavior)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBot' {Maybe ProcessBehavior
processBehavior :: Maybe ProcessBehavior
$sel:processBehavior:PutBot' :: PutBot -> Maybe ProcessBehavior
processBehavior} -> Maybe ProcessBehavior
processBehavior) (\s :: PutBot
s@PutBot' {} Maybe ProcessBehavior
a -> PutBot
s {$sel:processBehavior:PutBot' :: Maybe ProcessBehavior
processBehavior = Maybe ProcessBehavior
a} :: PutBot)
putBot_idleSessionTTLInSeconds :: Lens.Lens' PutBot (Prelude.Maybe Prelude.Natural)
putBot_idleSessionTTLInSeconds :: (Maybe Natural -> f (Maybe Natural)) -> PutBot -> f PutBot
putBot_idleSessionTTLInSeconds = (PutBot -> Maybe Natural)
-> (PutBot -> Maybe Natural -> PutBot)
-> Lens PutBot PutBot (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBot' {Maybe Natural
idleSessionTTLInSeconds :: Maybe Natural
$sel:idleSessionTTLInSeconds:PutBot' :: PutBot -> Maybe Natural
idleSessionTTLInSeconds} -> Maybe Natural
idleSessionTTLInSeconds) (\s :: PutBot
s@PutBot' {} Maybe Natural
a -> PutBot
s {$sel:idleSessionTTLInSeconds:PutBot' :: Maybe Natural
idleSessionTTLInSeconds = Maybe Natural
a} :: PutBot)
putBot_clarificationPrompt :: Lens.Lens' PutBot (Prelude.Maybe Prompt)
putBot_clarificationPrompt :: (Maybe Prompt -> f (Maybe Prompt)) -> PutBot -> f PutBot
putBot_clarificationPrompt = (PutBot -> Maybe Prompt)
-> (PutBot -> Maybe Prompt -> PutBot)
-> Lens PutBot PutBot (Maybe Prompt) (Maybe Prompt)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBot' {Maybe Prompt
clarificationPrompt :: Maybe Prompt
$sel:clarificationPrompt:PutBot' :: PutBot -> Maybe Prompt
clarificationPrompt} -> Maybe Prompt
clarificationPrompt) (\s :: PutBot
s@PutBot' {} Maybe Prompt
a -> PutBot
s {$sel:clarificationPrompt:PutBot' :: Maybe Prompt
clarificationPrompt = Maybe Prompt
a} :: PutBot)
putBot_voiceId :: Lens.Lens' PutBot (Prelude.Maybe Prelude.Text)
putBot_voiceId :: (Maybe Text -> f (Maybe Text)) -> PutBot -> f PutBot
putBot_voiceId = (PutBot -> Maybe Text)
-> (PutBot -> Maybe Text -> PutBot)
-> Lens PutBot PutBot (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBot' {Maybe Text
voiceId :: Maybe Text
$sel:voiceId:PutBot' :: PutBot -> Maybe Text
voiceId} -> Maybe Text
voiceId) (\s :: PutBot
s@PutBot' {} Maybe Text
a -> PutBot
s {$sel:voiceId:PutBot' :: Maybe Text
voiceId = Maybe Text
a} :: PutBot)
putBot_createVersion :: Lens.Lens' PutBot (Prelude.Maybe Prelude.Bool)
putBot_createVersion :: (Maybe Bool -> f (Maybe Bool)) -> PutBot -> f PutBot
putBot_createVersion = (PutBot -> Maybe Bool)
-> (PutBot -> Maybe Bool -> PutBot)
-> Lens PutBot PutBot (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBot' {Maybe Bool
createVersion :: Maybe Bool
$sel:createVersion:PutBot' :: PutBot -> Maybe Bool
createVersion} -> Maybe Bool
createVersion) (\s :: PutBot
s@PutBot' {} Maybe Bool
a -> PutBot
s {$sel:createVersion:PutBot' :: Maybe Bool
createVersion = Maybe Bool
a} :: PutBot)
putBot_description :: Lens.Lens' PutBot (Prelude.Maybe Prelude.Text)
putBot_description :: (Maybe Text -> f (Maybe Text)) -> PutBot -> f PutBot
putBot_description = (PutBot -> Maybe Text)
-> (PutBot -> Maybe Text -> PutBot)
-> Lens PutBot PutBot (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBot' {Maybe Text
description :: Maybe Text
$sel:description:PutBot' :: PutBot -> Maybe Text
description} -> Maybe Text
description) (\s :: PutBot
s@PutBot' {} Maybe Text
a -> PutBot
s {$sel:description:PutBot' :: Maybe Text
description = Maybe Text
a} :: PutBot)
putBot_tags :: Lens.Lens' PutBot (Prelude.Maybe [Tag])
putBot_tags :: (Maybe [Tag] -> f (Maybe [Tag])) -> PutBot -> f PutBot
putBot_tags = (PutBot -> Maybe [Tag])
-> (PutBot -> Maybe [Tag] -> PutBot)
-> Lens PutBot PutBot (Maybe [Tag]) (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBot' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:PutBot' :: PutBot -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: PutBot
s@PutBot' {} Maybe [Tag]
a -> PutBot
s {$sel:tags:PutBot' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: PutBot) ((Maybe [Tag] -> f (Maybe [Tag])) -> PutBot -> f PutBot)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> PutBot
-> f PutBot
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
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 [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
putBot_name :: Lens.Lens' PutBot Prelude.Text
putBot_name :: (Text -> f Text) -> PutBot -> f PutBot
putBot_name = (PutBot -> Text)
-> (PutBot -> Text -> PutBot) -> Lens PutBot PutBot Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBot' {Text
name :: Text
$sel:name:PutBot' :: PutBot -> Text
name} -> Text
name) (\s :: PutBot
s@PutBot' {} Text
a -> PutBot
s {$sel:name:PutBot' :: Text
name = Text
a} :: PutBot)
putBot_locale :: Lens.Lens' PutBot Locale
putBot_locale :: (Locale -> f Locale) -> PutBot -> f PutBot
putBot_locale = (PutBot -> Locale)
-> (PutBot -> Locale -> PutBot) -> Lens PutBot PutBot Locale Locale
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBot' {Locale
locale :: Locale
$sel:locale:PutBot' :: PutBot -> Locale
locale} -> Locale
locale) (\s :: PutBot
s@PutBot' {} Locale
a -> PutBot
s {$sel:locale:PutBot' :: Locale
locale = Locale
a} :: PutBot)
putBot_childDirected :: Lens.Lens' PutBot Prelude.Bool
putBot_childDirected :: (Bool -> f Bool) -> PutBot -> f PutBot
putBot_childDirected = (PutBot -> Bool)
-> (PutBot -> Bool -> PutBot) -> Lens PutBot PutBot Bool Bool
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBot' {Bool
childDirected :: Bool
$sel:childDirected:PutBot' :: PutBot -> Bool
childDirected} -> Bool
childDirected) (\s :: PutBot
s@PutBot' {} Bool
a -> PutBot
s {$sel:childDirected:PutBot' :: Bool
childDirected = Bool
a} :: PutBot)
instance Core.AWSRequest PutBot where
type AWSResponse PutBot = PutBotResponse
request :: PutBot -> Request PutBot
request = Service -> PutBot -> Request PutBot
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON Service
defaultService
response :: Logger
-> Service
-> Proxy PutBot
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse PutBot)))
response =
(Int
-> ResponseHeaders -> Object -> Either String (AWSResponse PutBot))
-> Logger
-> Service
-> Proxy PutBot
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse PutBot)))
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 Double
-> Maybe Bool
-> Maybe Locale
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe [Tag]
-> Int
-> PutBotResponse
PutBotResponse'
(Maybe Text
-> Maybe LexStatus
-> Maybe Statement
-> Maybe [Intent]
-> Maybe Text
-> Maybe Bool
-> Maybe Double
-> Maybe Bool
-> Maybe Locale
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe [Tag]
-> Int
-> PutBotResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe LexStatus
-> Maybe Statement
-> Maybe [Intent]
-> Maybe Text
-> Maybe Bool
-> Maybe Double
-> Maybe Bool
-> Maybe Locale
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe [Tag]
-> Int
-> PutBotResponse)
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 Double
-> Maybe Bool
-> Maybe Locale
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe [Tag]
-> Int
-> PutBotResponse)
-> Either String (Maybe LexStatus)
-> Either
String
(Maybe Statement
-> Maybe [Intent]
-> Maybe Text
-> Maybe Bool
-> Maybe Double
-> Maybe Bool
-> Maybe Locale
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe [Tag]
-> Int
-> PutBotResponse)
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 Double
-> Maybe Bool
-> Maybe Locale
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe [Tag]
-> Int
-> PutBotResponse)
-> Either String (Maybe Statement)
-> Either
String
(Maybe [Intent]
-> Maybe Text
-> Maybe Bool
-> Maybe Double
-> Maybe Bool
-> Maybe Locale
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe [Tag]
-> Int
-> PutBotResponse)
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 Double
-> Maybe Bool
-> Maybe Locale
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe [Tag]
-> Int
-> PutBotResponse)
-> Either String (Maybe [Intent])
-> Either
String
(Maybe Text
-> Maybe Bool
-> Maybe Double
-> Maybe Bool
-> Maybe Locale
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe [Tag]
-> Int
-> PutBotResponse)
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 Double
-> Maybe Bool
-> Maybe Locale
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe [Tag]
-> Int
-> PutBotResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Bool
-> Maybe Double
-> Maybe Bool
-> Maybe Locale
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe [Tag]
-> Int
-> PutBotResponse)
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 Double
-> Maybe Bool
-> Maybe Locale
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe [Tag]
-> Int
-> PutBotResponse)
-> Either String (Maybe Bool)
-> Either
String
(Maybe Double
-> Maybe Bool
-> Maybe Locale
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe [Tag]
-> Int
-> PutBotResponse)
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 Double
-> Maybe Bool
-> Maybe Locale
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe [Tag]
-> Int
-> PutBotResponse)
-> Either String (Maybe Double)
-> Either
String
(Maybe Bool
-> Maybe Locale
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe [Tag]
-> Int
-> PutBotResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Double)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"nluIntentConfidenceThreshold")
Either
String
(Maybe Bool
-> Maybe Locale
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe [Tag]
-> Int
-> PutBotResponse)
-> 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 Bool
-> Maybe Text
-> Maybe [Tag]
-> Int
-> PutBotResponse)
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 Bool
-> Maybe Text
-> Maybe [Tag]
-> Int
-> PutBotResponse)
-> Either String (Maybe Locale)
-> Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe [Tag]
-> Int
-> PutBotResponse)
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 Bool
-> Maybe Text
-> Maybe [Tag]
-> Int
-> PutBotResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe [Tag]
-> Int
-> PutBotResponse)
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 Bool
-> Maybe Text
-> Maybe [Tag]
-> Int
-> PutBotResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe [Tag]
-> Int
-> PutBotResponse)
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 Bool
-> Maybe Text
-> Maybe [Tag]
-> Int
-> PutBotResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe [Tag]
-> Int
-> PutBotResponse)
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 Bool
-> Maybe Text
-> Maybe [Tag]
-> Int
-> PutBotResponse)
-> Either String (Maybe Natural)
-> Either
String
(Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe [Tag]
-> Int
-> PutBotResponse)
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 Bool
-> Maybe Text
-> Maybe [Tag]
-> Int
-> PutBotResponse)
-> Either String (Maybe Prompt)
-> Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe [Tag]
-> Int
-> PutBotResponse)
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 Bool
-> Maybe Text
-> Maybe [Tag]
-> Int
-> PutBotResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe [Tag]
-> Int
-> PutBotResponse)
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 Bool
-> Maybe Text
-> Maybe [Tag]
-> Int
-> PutBotResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe [Tag]
-> Int
-> PutBotResponse)
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 Bool
-> Maybe Text
-> Maybe [Tag]
-> Int
-> PutBotResponse)
-> Either String (Maybe Bool)
-> Either
String
(Maybe Bool -> Maybe Text -> Maybe [Tag] -> Int -> PutBotResponse)
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
"createVersion")
Either
String
(Maybe Bool -> Maybe Text -> Maybe [Tag] -> Int -> PutBotResponse)
-> Either String (Maybe Bool)
-> Either
String (Maybe Text -> Maybe [Tag] -> Int -> PutBotResponse)
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 -> Maybe [Tag] -> Int -> PutBotResponse)
-> Either String (Maybe Text)
-> Either String (Maybe [Tag] -> Int -> PutBotResponse)
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 (Maybe [Tag] -> Int -> PutBotResponse)
-> Either String (Maybe [Tag])
-> Either String (Int -> PutBotResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [Tag]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"tags" Either String (Maybe (Maybe [Tag]))
-> Maybe [Tag] -> Either String (Maybe [Tag])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Tag]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> PutBotResponse)
-> Either String Int -> Either String PutBotResponse
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 PutBot
instance Prelude.NFData PutBot
instance Core.ToHeaders PutBot where
toHeaders :: PutBot -> ResponseHeaders
toHeaders =
ResponseHeaders -> PutBot -> 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 PutBot where
toJSON :: PutBot -> Value
toJSON PutBot' {Bool
Maybe Bool
Maybe Double
Maybe Natural
Maybe [Intent]
Maybe [Tag]
Maybe Text
Maybe ProcessBehavior
Maybe Prompt
Maybe Statement
Text
Locale
childDirected :: Bool
locale :: Locale
name :: Text
tags :: Maybe [Tag]
description :: Maybe Text
createVersion :: Maybe Bool
voiceId :: Maybe Text
clarificationPrompt :: Maybe Prompt
idleSessionTTLInSeconds :: Maybe Natural
processBehavior :: Maybe ProcessBehavior
detectSentiment :: Maybe Bool
nluIntentConfidenceThreshold :: Maybe Double
enableModelImprovements :: Maybe Bool
checksum :: Maybe Text
intents :: Maybe [Intent]
abortStatement :: Maybe Statement
$sel:childDirected:PutBot' :: PutBot -> Bool
$sel:locale:PutBot' :: PutBot -> Locale
$sel:name:PutBot' :: PutBot -> Text
$sel:tags:PutBot' :: PutBot -> Maybe [Tag]
$sel:description:PutBot' :: PutBot -> Maybe Text
$sel:createVersion:PutBot' :: PutBot -> Maybe Bool
$sel:voiceId:PutBot' :: PutBot -> Maybe Text
$sel:clarificationPrompt:PutBot' :: PutBot -> Maybe Prompt
$sel:idleSessionTTLInSeconds:PutBot' :: PutBot -> Maybe Natural
$sel:processBehavior:PutBot' :: PutBot -> Maybe ProcessBehavior
$sel:detectSentiment:PutBot' :: PutBot -> Maybe Bool
$sel:nluIntentConfidenceThreshold:PutBot' :: PutBot -> Maybe Double
$sel:enableModelImprovements:PutBot' :: PutBot -> Maybe Bool
$sel:checksum:PutBot' :: PutBot -> Maybe Text
$sel:intents:PutBot' :: PutBot -> Maybe [Intent]
$sel:abortStatement:PutBot' :: PutBot -> Maybe Statement
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"abortStatement" Text -> Statement -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Statement -> Pair) -> Maybe Statement -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Statement
abortStatement,
(Text
"intents" Text -> [Intent] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Intent] -> Pair) -> Maybe [Intent] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Intent]
intents,
(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,
(Text
"enableModelImprovements" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
enableModelImprovements,
(Text
"nluIntentConfidenceThreshold" Text -> Double -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Double -> Pair) -> Maybe Double -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Double
nluIntentConfidenceThreshold,
(Text
"detectSentiment" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
detectSentiment,
(Text
"processBehavior" Text -> ProcessBehavior -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(ProcessBehavior -> Pair) -> Maybe ProcessBehavior -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ProcessBehavior
processBehavior,
(Text
"idleSessionTTLInSeconds" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
idleSessionTTLInSeconds,
(Text
"clarificationPrompt" Text -> Prompt -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Prompt -> Pair) -> Maybe Prompt -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Prompt
clarificationPrompt,
(Text
"voiceId" 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
voiceId,
(Text
"createVersion" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
createVersion,
(Text
"description" 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
description,
(Text
"tags" Text -> [Tag] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Tag] -> Pair) -> Maybe [Tag] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"locale" Text -> Locale -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Locale
locale),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"childDirected" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Bool
childDirected)
]
)
instance Core.ToPath PutBot where
toPath :: PutBot -> ByteString
toPath PutBot' {Bool
Maybe Bool
Maybe Double
Maybe Natural
Maybe [Intent]
Maybe [Tag]
Maybe Text
Maybe ProcessBehavior
Maybe Prompt
Maybe Statement
Text
Locale
childDirected :: Bool
locale :: Locale
name :: Text
tags :: Maybe [Tag]
description :: Maybe Text
createVersion :: Maybe Bool
voiceId :: Maybe Text
clarificationPrompt :: Maybe Prompt
idleSessionTTLInSeconds :: Maybe Natural
processBehavior :: Maybe ProcessBehavior
detectSentiment :: Maybe Bool
nluIntentConfidenceThreshold :: Maybe Double
enableModelImprovements :: Maybe Bool
checksum :: Maybe Text
intents :: Maybe [Intent]
abortStatement :: Maybe Statement
$sel:childDirected:PutBot' :: PutBot -> Bool
$sel:locale:PutBot' :: PutBot -> Locale
$sel:name:PutBot' :: PutBot -> Text
$sel:tags:PutBot' :: PutBot -> Maybe [Tag]
$sel:description:PutBot' :: PutBot -> Maybe Text
$sel:createVersion:PutBot' :: PutBot -> Maybe Bool
$sel:voiceId:PutBot' :: PutBot -> Maybe Text
$sel:clarificationPrompt:PutBot' :: PutBot -> Maybe Prompt
$sel:idleSessionTTLInSeconds:PutBot' :: PutBot -> Maybe Natural
$sel:processBehavior:PutBot' :: PutBot -> Maybe ProcessBehavior
$sel:detectSentiment:PutBot' :: PutBot -> Maybe Bool
$sel:nluIntentConfidenceThreshold:PutBot' :: PutBot -> Maybe Double
$sel:enableModelImprovements:PutBot' :: PutBot -> Maybe Bool
$sel:checksum:PutBot' :: PutBot -> Maybe Text
$sel:intents:PutBot' :: PutBot -> Maybe [Intent]
$sel:abortStatement:PutBot' :: PutBot -> Maybe Statement
..} =
[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/$LATEST"]
instance Core.ToQuery PutBot where
toQuery :: PutBot -> QueryString
toQuery = QueryString -> PutBot -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data PutBotResponse = PutBotResponse'
{
PutBotResponse -> Maybe Text
failureReason :: Prelude.Maybe Prelude.Text,
PutBotResponse -> Maybe LexStatus
status :: Prelude.Maybe LexStatus,
PutBotResponse -> Maybe Statement
abortStatement :: Prelude.Maybe Statement,
PutBotResponse -> Maybe [Intent]
intents :: Prelude.Maybe [Intent],
PutBotResponse -> Maybe Text
checksum :: Prelude.Maybe Prelude.Text,
PutBotResponse -> Maybe Bool
enableModelImprovements :: Prelude.Maybe Prelude.Bool,
PutBotResponse -> Maybe Double
nluIntentConfidenceThreshold :: Prelude.Maybe Prelude.Double,
PutBotResponse -> Maybe Bool
detectSentiment :: Prelude.Maybe Prelude.Bool,
PutBotResponse -> Maybe Locale
locale :: Prelude.Maybe Locale,
PutBotResponse -> Maybe POSIX
createdDate :: Prelude.Maybe Core.POSIX,
PutBotResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
PutBotResponse -> Maybe Text
version :: Prelude.Maybe Prelude.Text,
PutBotResponse -> Maybe Natural
idleSessionTTLInSeconds :: Prelude.Maybe Prelude.Natural,
PutBotResponse -> Maybe Prompt
clarificationPrompt :: Prelude.Maybe Prompt,
PutBotResponse -> Maybe Text
voiceId :: Prelude.Maybe Prelude.Text,
PutBotResponse -> Maybe POSIX
lastUpdatedDate :: Prelude.Maybe Core.POSIX,
PutBotResponse -> Maybe Bool
createVersion :: Prelude.Maybe Prelude.Bool,
PutBotResponse -> Maybe Bool
childDirected :: Prelude.Maybe Prelude.Bool,
PutBotResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
PutBotResponse -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
PutBotResponse -> Int
httpStatus :: Prelude.Int
}
deriving (PutBotResponse -> PutBotResponse -> Bool
(PutBotResponse -> PutBotResponse -> Bool)
-> (PutBotResponse -> PutBotResponse -> Bool) -> Eq PutBotResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutBotResponse -> PutBotResponse -> Bool
$c/= :: PutBotResponse -> PutBotResponse -> Bool
== :: PutBotResponse -> PutBotResponse -> Bool
$c== :: PutBotResponse -> PutBotResponse -> Bool
Prelude.Eq, ReadPrec [PutBotResponse]
ReadPrec PutBotResponse
Int -> ReadS PutBotResponse
ReadS [PutBotResponse]
(Int -> ReadS PutBotResponse)
-> ReadS [PutBotResponse]
-> ReadPrec PutBotResponse
-> ReadPrec [PutBotResponse]
-> Read PutBotResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PutBotResponse]
$creadListPrec :: ReadPrec [PutBotResponse]
readPrec :: ReadPrec PutBotResponse
$creadPrec :: ReadPrec PutBotResponse
readList :: ReadS [PutBotResponse]
$creadList :: ReadS [PutBotResponse]
readsPrec :: Int -> ReadS PutBotResponse
$creadsPrec :: Int -> ReadS PutBotResponse
Prelude.Read, Int -> PutBotResponse -> ShowS
[PutBotResponse] -> ShowS
PutBotResponse -> String
(Int -> PutBotResponse -> ShowS)
-> (PutBotResponse -> String)
-> ([PutBotResponse] -> ShowS)
-> Show PutBotResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutBotResponse] -> ShowS
$cshowList :: [PutBotResponse] -> ShowS
show :: PutBotResponse -> String
$cshow :: PutBotResponse -> String
showsPrec :: Int -> PutBotResponse -> ShowS
$cshowsPrec :: Int -> PutBotResponse -> ShowS
Prelude.Show, (forall x. PutBotResponse -> Rep PutBotResponse x)
-> (forall x. Rep PutBotResponse x -> PutBotResponse)
-> Generic PutBotResponse
forall x. Rep PutBotResponse x -> PutBotResponse
forall x. PutBotResponse -> Rep PutBotResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PutBotResponse x -> PutBotResponse
$cfrom :: forall x. PutBotResponse -> Rep PutBotResponse x
Prelude.Generic)
newPutBotResponse ::
Prelude.Int ->
PutBotResponse
newPutBotResponse :: Int -> PutBotResponse
newPutBotResponse Int
pHttpStatus_ =
PutBotResponse' :: Maybe Text
-> Maybe LexStatus
-> Maybe Statement
-> Maybe [Intent]
-> Maybe Text
-> Maybe Bool
-> Maybe Double
-> Maybe Bool
-> Maybe Locale
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Prompt
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe [Tag]
-> Int
-> PutBotResponse
PutBotResponse'
{ $sel:failureReason:PutBotResponse' :: Maybe Text
failureReason = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:status:PutBotResponse' :: Maybe LexStatus
status = Maybe LexStatus
forall a. Maybe a
Prelude.Nothing,
$sel:abortStatement:PutBotResponse' :: Maybe Statement
abortStatement = Maybe Statement
forall a. Maybe a
Prelude.Nothing,
$sel:intents:PutBotResponse' :: Maybe [Intent]
intents = Maybe [Intent]
forall a. Maybe a
Prelude.Nothing,
$sel:checksum:PutBotResponse' :: Maybe Text
checksum = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:enableModelImprovements:PutBotResponse' :: Maybe Bool
enableModelImprovements = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:nluIntentConfidenceThreshold:PutBotResponse' :: Maybe Double
nluIntentConfidenceThreshold = Maybe Double
forall a. Maybe a
Prelude.Nothing,
$sel:detectSentiment:PutBotResponse' :: Maybe Bool
detectSentiment = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:locale:PutBotResponse' :: Maybe Locale
locale = Maybe Locale
forall a. Maybe a
Prelude.Nothing,
$sel:createdDate:PutBotResponse' :: Maybe POSIX
createdDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:name:PutBotResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:version:PutBotResponse' :: Maybe Text
version = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:idleSessionTTLInSeconds:PutBotResponse' :: Maybe Natural
idleSessionTTLInSeconds = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:clarificationPrompt:PutBotResponse' :: Maybe Prompt
clarificationPrompt = Maybe Prompt
forall a. Maybe a
Prelude.Nothing,
$sel:voiceId:PutBotResponse' :: Maybe Text
voiceId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:lastUpdatedDate:PutBotResponse' :: Maybe POSIX
lastUpdatedDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:createVersion:PutBotResponse' :: Maybe Bool
createVersion = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:childDirected:PutBotResponse' :: Maybe Bool
childDirected = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:description:PutBotResponse' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:PutBotResponse' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:PutBotResponse' :: Int
httpStatus = Int
pHttpStatus_
}
putBotResponse_failureReason :: Lens.Lens' PutBotResponse (Prelude.Maybe Prelude.Text)
putBotResponse_failureReason :: (Maybe Text -> f (Maybe Text))
-> PutBotResponse -> f PutBotResponse
putBotResponse_failureReason = (PutBotResponse -> Maybe Text)
-> (PutBotResponse -> Maybe Text -> PutBotResponse)
-> Lens PutBotResponse PutBotResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBotResponse' {Maybe Text
failureReason :: Maybe Text
$sel:failureReason:PutBotResponse' :: PutBotResponse -> Maybe Text
failureReason} -> Maybe Text
failureReason) (\s :: PutBotResponse
s@PutBotResponse' {} Maybe Text
a -> PutBotResponse
s {$sel:failureReason:PutBotResponse' :: Maybe Text
failureReason = Maybe Text
a} :: PutBotResponse)
putBotResponse_status :: Lens.Lens' PutBotResponse (Prelude.Maybe LexStatus)
putBotResponse_status :: (Maybe LexStatus -> f (Maybe LexStatus))
-> PutBotResponse -> f PutBotResponse
putBotResponse_status = (PutBotResponse -> Maybe LexStatus)
-> (PutBotResponse -> Maybe LexStatus -> PutBotResponse)
-> Lens
PutBotResponse PutBotResponse (Maybe LexStatus) (Maybe LexStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBotResponse' {Maybe LexStatus
status :: Maybe LexStatus
$sel:status:PutBotResponse' :: PutBotResponse -> Maybe LexStatus
status} -> Maybe LexStatus
status) (\s :: PutBotResponse
s@PutBotResponse' {} Maybe LexStatus
a -> PutBotResponse
s {$sel:status:PutBotResponse' :: Maybe LexStatus
status = Maybe LexStatus
a} :: PutBotResponse)
putBotResponse_abortStatement :: Lens.Lens' PutBotResponse (Prelude.Maybe Statement)
putBotResponse_abortStatement :: (Maybe Statement -> f (Maybe Statement))
-> PutBotResponse -> f PutBotResponse
putBotResponse_abortStatement = (PutBotResponse -> Maybe Statement)
-> (PutBotResponse -> Maybe Statement -> PutBotResponse)
-> Lens
PutBotResponse PutBotResponse (Maybe Statement) (Maybe Statement)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBotResponse' {Maybe Statement
abortStatement :: Maybe Statement
$sel:abortStatement:PutBotResponse' :: PutBotResponse -> Maybe Statement
abortStatement} -> Maybe Statement
abortStatement) (\s :: PutBotResponse
s@PutBotResponse' {} Maybe Statement
a -> PutBotResponse
s {$sel:abortStatement:PutBotResponse' :: Maybe Statement
abortStatement = Maybe Statement
a} :: PutBotResponse)
putBotResponse_intents :: Lens.Lens' PutBotResponse (Prelude.Maybe [Intent])
putBotResponse_intents :: (Maybe [Intent] -> f (Maybe [Intent]))
-> PutBotResponse -> f PutBotResponse
putBotResponse_intents = (PutBotResponse -> Maybe [Intent])
-> (PutBotResponse -> Maybe [Intent] -> PutBotResponse)
-> Lens
PutBotResponse PutBotResponse (Maybe [Intent]) (Maybe [Intent])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBotResponse' {Maybe [Intent]
intents :: Maybe [Intent]
$sel:intents:PutBotResponse' :: PutBotResponse -> Maybe [Intent]
intents} -> Maybe [Intent]
intents) (\s :: PutBotResponse
s@PutBotResponse' {} Maybe [Intent]
a -> PutBotResponse
s {$sel:intents:PutBotResponse' :: Maybe [Intent]
intents = Maybe [Intent]
a} :: PutBotResponse) ((Maybe [Intent] -> f (Maybe [Intent]))
-> PutBotResponse -> f PutBotResponse)
-> ((Maybe [Intent] -> f (Maybe [Intent]))
-> Maybe [Intent] -> f (Maybe [Intent]))
-> (Maybe [Intent] -> f (Maybe [Intent]))
-> PutBotResponse
-> f PutBotResponse
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
putBotResponse_checksum :: Lens.Lens' PutBotResponse (Prelude.Maybe Prelude.Text)
putBotResponse_checksum :: (Maybe Text -> f (Maybe Text))
-> PutBotResponse -> f PutBotResponse
putBotResponse_checksum = (PutBotResponse -> Maybe Text)
-> (PutBotResponse -> Maybe Text -> PutBotResponse)
-> Lens PutBotResponse PutBotResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBotResponse' {Maybe Text
checksum :: Maybe Text
$sel:checksum:PutBotResponse' :: PutBotResponse -> Maybe Text
checksum} -> Maybe Text
checksum) (\s :: PutBotResponse
s@PutBotResponse' {} Maybe Text
a -> PutBotResponse
s {$sel:checksum:PutBotResponse' :: Maybe Text
checksum = Maybe Text
a} :: PutBotResponse)
putBotResponse_enableModelImprovements :: Lens.Lens' PutBotResponse (Prelude.Maybe Prelude.Bool)
putBotResponse_enableModelImprovements :: (Maybe Bool -> f (Maybe Bool))
-> PutBotResponse -> f PutBotResponse
putBotResponse_enableModelImprovements = (PutBotResponse -> Maybe Bool)
-> (PutBotResponse -> Maybe Bool -> PutBotResponse)
-> Lens PutBotResponse PutBotResponse (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBotResponse' {Maybe Bool
enableModelImprovements :: Maybe Bool
$sel:enableModelImprovements:PutBotResponse' :: PutBotResponse -> Maybe Bool
enableModelImprovements} -> Maybe Bool
enableModelImprovements) (\s :: PutBotResponse
s@PutBotResponse' {} Maybe Bool
a -> PutBotResponse
s {$sel:enableModelImprovements:PutBotResponse' :: Maybe Bool
enableModelImprovements = Maybe Bool
a} :: PutBotResponse)
putBotResponse_nluIntentConfidenceThreshold :: Lens.Lens' PutBotResponse (Prelude.Maybe Prelude.Double)
putBotResponse_nluIntentConfidenceThreshold :: (Maybe Double -> f (Maybe Double))
-> PutBotResponse -> f PutBotResponse
putBotResponse_nluIntentConfidenceThreshold = (PutBotResponse -> Maybe Double)
-> (PutBotResponse -> Maybe Double -> PutBotResponse)
-> Lens PutBotResponse PutBotResponse (Maybe Double) (Maybe Double)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBotResponse' {Maybe Double
nluIntentConfidenceThreshold :: Maybe Double
$sel:nluIntentConfidenceThreshold:PutBotResponse' :: PutBotResponse -> Maybe Double
nluIntentConfidenceThreshold} -> Maybe Double
nluIntentConfidenceThreshold) (\s :: PutBotResponse
s@PutBotResponse' {} Maybe Double
a -> PutBotResponse
s {$sel:nluIntentConfidenceThreshold:PutBotResponse' :: Maybe Double
nluIntentConfidenceThreshold = Maybe Double
a} :: PutBotResponse)
putBotResponse_detectSentiment :: Lens.Lens' PutBotResponse (Prelude.Maybe Prelude.Bool)
putBotResponse_detectSentiment :: (Maybe Bool -> f (Maybe Bool))
-> PutBotResponse -> f PutBotResponse
putBotResponse_detectSentiment = (PutBotResponse -> Maybe Bool)
-> (PutBotResponse -> Maybe Bool -> PutBotResponse)
-> Lens PutBotResponse PutBotResponse (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBotResponse' {Maybe Bool
detectSentiment :: Maybe Bool
$sel:detectSentiment:PutBotResponse' :: PutBotResponse -> Maybe Bool
detectSentiment} -> Maybe Bool
detectSentiment) (\s :: PutBotResponse
s@PutBotResponse' {} Maybe Bool
a -> PutBotResponse
s {$sel:detectSentiment:PutBotResponse' :: Maybe Bool
detectSentiment = Maybe Bool
a} :: PutBotResponse)
putBotResponse_locale :: Lens.Lens' PutBotResponse (Prelude.Maybe Locale)
putBotResponse_locale :: (Maybe Locale -> f (Maybe Locale))
-> PutBotResponse -> f PutBotResponse
putBotResponse_locale = (PutBotResponse -> Maybe Locale)
-> (PutBotResponse -> Maybe Locale -> PutBotResponse)
-> Lens PutBotResponse PutBotResponse (Maybe Locale) (Maybe Locale)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBotResponse' {Maybe Locale
locale :: Maybe Locale
$sel:locale:PutBotResponse' :: PutBotResponse -> Maybe Locale
locale} -> Maybe Locale
locale) (\s :: PutBotResponse
s@PutBotResponse' {} Maybe Locale
a -> PutBotResponse
s {$sel:locale:PutBotResponse' :: Maybe Locale
locale = Maybe Locale
a} :: PutBotResponse)
putBotResponse_createdDate :: Lens.Lens' PutBotResponse (Prelude.Maybe Prelude.UTCTime)
putBotResponse_createdDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> PutBotResponse -> f PutBotResponse
putBotResponse_createdDate = (PutBotResponse -> Maybe POSIX)
-> (PutBotResponse -> Maybe POSIX -> PutBotResponse)
-> Lens PutBotResponse PutBotResponse (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBotResponse' {Maybe POSIX
createdDate :: Maybe POSIX
$sel:createdDate:PutBotResponse' :: PutBotResponse -> Maybe POSIX
createdDate} -> Maybe POSIX
createdDate) (\s :: PutBotResponse
s@PutBotResponse' {} Maybe POSIX
a -> PutBotResponse
s {$sel:createdDate:PutBotResponse' :: Maybe POSIX
createdDate = Maybe POSIX
a} :: PutBotResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> PutBotResponse -> f PutBotResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> PutBotResponse
-> f PutBotResponse
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
putBotResponse_name :: Lens.Lens' PutBotResponse (Prelude.Maybe Prelude.Text)
putBotResponse_name :: (Maybe Text -> f (Maybe Text))
-> PutBotResponse -> f PutBotResponse
putBotResponse_name = (PutBotResponse -> Maybe Text)
-> (PutBotResponse -> Maybe Text -> PutBotResponse)
-> Lens PutBotResponse PutBotResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBotResponse' {Maybe Text
name :: Maybe Text
$sel:name:PutBotResponse' :: PutBotResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: PutBotResponse
s@PutBotResponse' {} Maybe Text
a -> PutBotResponse
s {$sel:name:PutBotResponse' :: Maybe Text
name = Maybe Text
a} :: PutBotResponse)
putBotResponse_version :: Lens.Lens' PutBotResponse (Prelude.Maybe Prelude.Text)
putBotResponse_version :: (Maybe Text -> f (Maybe Text))
-> PutBotResponse -> f PutBotResponse
putBotResponse_version = (PutBotResponse -> Maybe Text)
-> (PutBotResponse -> Maybe Text -> PutBotResponse)
-> Lens PutBotResponse PutBotResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBotResponse' {Maybe Text
version :: Maybe Text
$sel:version:PutBotResponse' :: PutBotResponse -> Maybe Text
version} -> Maybe Text
version) (\s :: PutBotResponse
s@PutBotResponse' {} Maybe Text
a -> PutBotResponse
s {$sel:version:PutBotResponse' :: Maybe Text
version = Maybe Text
a} :: PutBotResponse)
putBotResponse_idleSessionTTLInSeconds :: Lens.Lens' PutBotResponse (Prelude.Maybe Prelude.Natural)
putBotResponse_idleSessionTTLInSeconds :: (Maybe Natural -> f (Maybe Natural))
-> PutBotResponse -> f PutBotResponse
putBotResponse_idleSessionTTLInSeconds = (PutBotResponse -> Maybe Natural)
-> (PutBotResponse -> Maybe Natural -> PutBotResponse)
-> Lens
PutBotResponse PutBotResponse (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBotResponse' {Maybe Natural
idleSessionTTLInSeconds :: Maybe Natural
$sel:idleSessionTTLInSeconds:PutBotResponse' :: PutBotResponse -> Maybe Natural
idleSessionTTLInSeconds} -> Maybe Natural
idleSessionTTLInSeconds) (\s :: PutBotResponse
s@PutBotResponse' {} Maybe Natural
a -> PutBotResponse
s {$sel:idleSessionTTLInSeconds:PutBotResponse' :: Maybe Natural
idleSessionTTLInSeconds = Maybe Natural
a} :: PutBotResponse)
putBotResponse_clarificationPrompt :: Lens.Lens' PutBotResponse (Prelude.Maybe Prompt)
putBotResponse_clarificationPrompt :: (Maybe Prompt -> f (Maybe Prompt))
-> PutBotResponse -> f PutBotResponse
putBotResponse_clarificationPrompt = (PutBotResponse -> Maybe Prompt)
-> (PutBotResponse -> Maybe Prompt -> PutBotResponse)
-> Lens PutBotResponse PutBotResponse (Maybe Prompt) (Maybe Prompt)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBotResponse' {Maybe Prompt
clarificationPrompt :: Maybe Prompt
$sel:clarificationPrompt:PutBotResponse' :: PutBotResponse -> Maybe Prompt
clarificationPrompt} -> Maybe Prompt
clarificationPrompt) (\s :: PutBotResponse
s@PutBotResponse' {} Maybe Prompt
a -> PutBotResponse
s {$sel:clarificationPrompt:PutBotResponse' :: Maybe Prompt
clarificationPrompt = Maybe Prompt
a} :: PutBotResponse)
putBotResponse_voiceId :: Lens.Lens' PutBotResponse (Prelude.Maybe Prelude.Text)
putBotResponse_voiceId :: (Maybe Text -> f (Maybe Text))
-> PutBotResponse -> f PutBotResponse
putBotResponse_voiceId = (PutBotResponse -> Maybe Text)
-> (PutBotResponse -> Maybe Text -> PutBotResponse)
-> Lens PutBotResponse PutBotResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBotResponse' {Maybe Text
voiceId :: Maybe Text
$sel:voiceId:PutBotResponse' :: PutBotResponse -> Maybe Text
voiceId} -> Maybe Text
voiceId) (\s :: PutBotResponse
s@PutBotResponse' {} Maybe Text
a -> PutBotResponse
s {$sel:voiceId:PutBotResponse' :: Maybe Text
voiceId = Maybe Text
a} :: PutBotResponse)
putBotResponse_lastUpdatedDate :: Lens.Lens' PutBotResponse (Prelude.Maybe Prelude.UTCTime)
putBotResponse_lastUpdatedDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> PutBotResponse -> f PutBotResponse
putBotResponse_lastUpdatedDate = (PutBotResponse -> Maybe POSIX)
-> (PutBotResponse -> Maybe POSIX -> PutBotResponse)
-> Lens PutBotResponse PutBotResponse (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBotResponse' {Maybe POSIX
lastUpdatedDate :: Maybe POSIX
$sel:lastUpdatedDate:PutBotResponse' :: PutBotResponse -> Maybe POSIX
lastUpdatedDate} -> Maybe POSIX
lastUpdatedDate) (\s :: PutBotResponse
s@PutBotResponse' {} Maybe POSIX
a -> PutBotResponse
s {$sel:lastUpdatedDate:PutBotResponse' :: Maybe POSIX
lastUpdatedDate = Maybe POSIX
a} :: PutBotResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> PutBotResponse -> f PutBotResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> PutBotResponse
-> f PutBotResponse
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
putBotResponse_createVersion :: Lens.Lens' PutBotResponse (Prelude.Maybe Prelude.Bool)
putBotResponse_createVersion :: (Maybe Bool -> f (Maybe Bool))
-> PutBotResponse -> f PutBotResponse
putBotResponse_createVersion = (PutBotResponse -> Maybe Bool)
-> (PutBotResponse -> Maybe Bool -> PutBotResponse)
-> Lens PutBotResponse PutBotResponse (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBotResponse' {Maybe Bool
createVersion :: Maybe Bool
$sel:createVersion:PutBotResponse' :: PutBotResponse -> Maybe Bool
createVersion} -> Maybe Bool
createVersion) (\s :: PutBotResponse
s@PutBotResponse' {} Maybe Bool
a -> PutBotResponse
s {$sel:createVersion:PutBotResponse' :: Maybe Bool
createVersion = Maybe Bool
a} :: PutBotResponse)
putBotResponse_childDirected :: Lens.Lens' PutBotResponse (Prelude.Maybe Prelude.Bool)
putBotResponse_childDirected :: (Maybe Bool -> f (Maybe Bool))
-> PutBotResponse -> f PutBotResponse
putBotResponse_childDirected = (PutBotResponse -> Maybe Bool)
-> (PutBotResponse -> Maybe Bool -> PutBotResponse)
-> Lens PutBotResponse PutBotResponse (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBotResponse' {Maybe Bool
childDirected :: Maybe Bool
$sel:childDirected:PutBotResponse' :: PutBotResponse -> Maybe Bool
childDirected} -> Maybe Bool
childDirected) (\s :: PutBotResponse
s@PutBotResponse' {} Maybe Bool
a -> PutBotResponse
s {$sel:childDirected:PutBotResponse' :: Maybe Bool
childDirected = Maybe Bool
a} :: PutBotResponse)
putBotResponse_description :: Lens.Lens' PutBotResponse (Prelude.Maybe Prelude.Text)
putBotResponse_description :: (Maybe Text -> f (Maybe Text))
-> PutBotResponse -> f PutBotResponse
putBotResponse_description = (PutBotResponse -> Maybe Text)
-> (PutBotResponse -> Maybe Text -> PutBotResponse)
-> Lens PutBotResponse PutBotResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBotResponse' {Maybe Text
description :: Maybe Text
$sel:description:PutBotResponse' :: PutBotResponse -> Maybe Text
description} -> Maybe Text
description) (\s :: PutBotResponse
s@PutBotResponse' {} Maybe Text
a -> PutBotResponse
s {$sel:description:PutBotResponse' :: Maybe Text
description = Maybe Text
a} :: PutBotResponse)
putBotResponse_tags :: Lens.Lens' PutBotResponse (Prelude.Maybe [Tag])
putBotResponse_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> PutBotResponse -> f PutBotResponse
putBotResponse_tags = (PutBotResponse -> Maybe [Tag])
-> (PutBotResponse -> Maybe [Tag] -> PutBotResponse)
-> Lens PutBotResponse PutBotResponse (Maybe [Tag]) (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBotResponse' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:PutBotResponse' :: PutBotResponse -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: PutBotResponse
s@PutBotResponse' {} Maybe [Tag]
a -> PutBotResponse
s {$sel:tags:PutBotResponse' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: PutBotResponse) ((Maybe [Tag] -> f (Maybe [Tag]))
-> PutBotResponse -> f PutBotResponse)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> PutBotResponse
-> f PutBotResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
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 [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
putBotResponse_httpStatus :: Lens.Lens' PutBotResponse Prelude.Int
putBotResponse_httpStatus :: (Int -> f Int) -> PutBotResponse -> f PutBotResponse
putBotResponse_httpStatus = (PutBotResponse -> Int)
-> (PutBotResponse -> Int -> PutBotResponse)
-> Lens PutBotResponse PutBotResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBotResponse' {Int
httpStatus :: Int
$sel:httpStatus:PutBotResponse' :: PutBotResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: PutBotResponse
s@PutBotResponse' {} Int
a -> PutBotResponse
s {$sel:httpStatus:PutBotResponse' :: Int
httpStatus = Int
a} :: PutBotResponse)
instance Prelude.NFData PutBotResponse