module Stratosphere.Lex.Bot.InitialResponseSettingProperty (
module Exports, InitialResponseSettingProperty(..),
mkInitialResponseSettingProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Lex.Bot.ConditionalSpecificationProperty as Exports
import {-# SOURCE #-} Stratosphere.Lex.Bot.DialogCodeHookInvocationSettingProperty as Exports
import {-# SOURCE #-} Stratosphere.Lex.Bot.DialogStateProperty as Exports
import {-# SOURCE #-} Stratosphere.Lex.Bot.ResponseSpecificationProperty as Exports
import Stratosphere.ResourceProperties
data InitialResponseSettingProperty
=
InitialResponseSettingProperty {InitialResponseSettingProperty -> ()
haddock_workaround_ :: (),
InitialResponseSettingProperty
-> Maybe DialogCodeHookInvocationSettingProperty
codeHook :: (Prelude.Maybe DialogCodeHookInvocationSettingProperty),
InitialResponseSettingProperty
-> Maybe ConditionalSpecificationProperty
conditional :: (Prelude.Maybe ConditionalSpecificationProperty),
InitialResponseSettingProperty
-> Maybe ResponseSpecificationProperty
initialResponse :: (Prelude.Maybe ResponseSpecificationProperty),
InitialResponseSettingProperty -> Maybe DialogStateProperty
nextStep :: (Prelude.Maybe DialogStateProperty)}
deriving stock (InitialResponseSettingProperty
-> InitialResponseSettingProperty -> Bool
(InitialResponseSettingProperty
-> InitialResponseSettingProperty -> Bool)
-> (InitialResponseSettingProperty
-> InitialResponseSettingProperty -> Bool)
-> Eq InitialResponseSettingProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: InitialResponseSettingProperty
-> InitialResponseSettingProperty -> Bool
== :: InitialResponseSettingProperty
-> InitialResponseSettingProperty -> Bool
$c/= :: InitialResponseSettingProperty
-> InitialResponseSettingProperty -> Bool
/= :: InitialResponseSettingProperty
-> InitialResponseSettingProperty -> Bool
Prelude.Eq, Int -> InitialResponseSettingProperty -> ShowS
[InitialResponseSettingProperty] -> ShowS
InitialResponseSettingProperty -> String
(Int -> InitialResponseSettingProperty -> ShowS)
-> (InitialResponseSettingProperty -> String)
-> ([InitialResponseSettingProperty] -> ShowS)
-> Show InitialResponseSettingProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> InitialResponseSettingProperty -> ShowS
showsPrec :: Int -> InitialResponseSettingProperty -> ShowS
$cshow :: InitialResponseSettingProperty -> String
show :: InitialResponseSettingProperty -> String
$cshowList :: [InitialResponseSettingProperty] -> ShowS
showList :: [InitialResponseSettingProperty] -> ShowS
Prelude.Show)
mkInitialResponseSettingProperty :: InitialResponseSettingProperty
mkInitialResponseSettingProperty :: InitialResponseSettingProperty
mkInitialResponseSettingProperty
= InitialResponseSettingProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), codeHook :: Maybe DialogCodeHookInvocationSettingProperty
codeHook = Maybe DialogCodeHookInvocationSettingProperty
forall a. Maybe a
Prelude.Nothing,
conditional :: Maybe ConditionalSpecificationProperty
conditional = Maybe ConditionalSpecificationProperty
forall a. Maybe a
Prelude.Nothing, initialResponse :: Maybe ResponseSpecificationProperty
initialResponse = Maybe ResponseSpecificationProperty
forall a. Maybe a
Prelude.Nothing,
nextStep :: Maybe DialogStateProperty
nextStep = Maybe DialogStateProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties InitialResponseSettingProperty where
toResourceProperties :: InitialResponseSettingProperty -> ResourceProperties
toResourceProperties InitialResponseSettingProperty {Maybe ResponseSpecificationProperty
Maybe DialogStateProperty
Maybe ConditionalSpecificationProperty
Maybe DialogCodeHookInvocationSettingProperty
()
haddock_workaround_ :: InitialResponseSettingProperty -> ()
codeHook :: InitialResponseSettingProperty
-> Maybe DialogCodeHookInvocationSettingProperty
conditional :: InitialResponseSettingProperty
-> Maybe ConditionalSpecificationProperty
initialResponse :: InitialResponseSettingProperty
-> Maybe ResponseSpecificationProperty
nextStep :: InitialResponseSettingProperty -> Maybe DialogStateProperty
haddock_workaround_ :: ()
codeHook :: Maybe DialogCodeHookInvocationSettingProperty
conditional :: Maybe ConditionalSpecificationProperty
initialResponse :: Maybe ResponseSpecificationProperty
nextStep :: Maybe DialogStateProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Lex::Bot.InitialResponseSetting",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> DialogCodeHookInvocationSettingProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CodeHook" (DialogCodeHookInvocationSettingProperty -> (Key, Value))
-> Maybe DialogCodeHookInvocationSettingProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DialogCodeHookInvocationSettingProperty
codeHook,
Key -> ConditionalSpecificationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Conditional" (ConditionalSpecificationProperty -> (Key, Value))
-> Maybe ConditionalSpecificationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ConditionalSpecificationProperty
conditional,
Key -> ResponseSpecificationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"InitialResponse" (ResponseSpecificationProperty -> (Key, Value))
-> Maybe ResponseSpecificationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ResponseSpecificationProperty
initialResponse,
Key -> DialogStateProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"NextStep" (DialogStateProperty -> (Key, Value))
-> Maybe DialogStateProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DialogStateProperty
nextStep])}
instance JSON.ToJSON InitialResponseSettingProperty where
toJSON :: InitialResponseSettingProperty -> Value
toJSON InitialResponseSettingProperty {Maybe ResponseSpecificationProperty
Maybe DialogStateProperty
Maybe ConditionalSpecificationProperty
Maybe DialogCodeHookInvocationSettingProperty
()
haddock_workaround_ :: InitialResponseSettingProperty -> ()
codeHook :: InitialResponseSettingProperty
-> Maybe DialogCodeHookInvocationSettingProperty
conditional :: InitialResponseSettingProperty
-> Maybe ConditionalSpecificationProperty
initialResponse :: InitialResponseSettingProperty
-> Maybe ResponseSpecificationProperty
nextStep :: InitialResponseSettingProperty -> Maybe DialogStateProperty
haddock_workaround_ :: ()
codeHook :: Maybe DialogCodeHookInvocationSettingProperty
conditional :: Maybe ConditionalSpecificationProperty
initialResponse :: Maybe ResponseSpecificationProperty
nextStep :: Maybe DialogStateProperty
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> DialogCodeHookInvocationSettingProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CodeHook" (DialogCodeHookInvocationSettingProperty -> (Key, Value))
-> Maybe DialogCodeHookInvocationSettingProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DialogCodeHookInvocationSettingProperty
codeHook,
Key -> ConditionalSpecificationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Conditional" (ConditionalSpecificationProperty -> (Key, Value))
-> Maybe ConditionalSpecificationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ConditionalSpecificationProperty
conditional,
Key -> ResponseSpecificationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"InitialResponse" (ResponseSpecificationProperty -> (Key, Value))
-> Maybe ResponseSpecificationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ResponseSpecificationProperty
initialResponse,
Key -> DialogStateProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"NextStep" (DialogStateProperty -> (Key, Value))
-> Maybe DialogStateProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DialogStateProperty
nextStep]))
instance Property "CodeHook" InitialResponseSettingProperty where
type PropertyType "CodeHook" InitialResponseSettingProperty = DialogCodeHookInvocationSettingProperty
set :: PropertyType "CodeHook" InitialResponseSettingProperty
-> InitialResponseSettingProperty -> InitialResponseSettingProperty
set PropertyType "CodeHook" InitialResponseSettingProperty
newValue InitialResponseSettingProperty {Maybe ResponseSpecificationProperty
Maybe DialogStateProperty
Maybe ConditionalSpecificationProperty
Maybe DialogCodeHookInvocationSettingProperty
()
haddock_workaround_ :: InitialResponseSettingProperty -> ()
codeHook :: InitialResponseSettingProperty
-> Maybe DialogCodeHookInvocationSettingProperty
conditional :: InitialResponseSettingProperty
-> Maybe ConditionalSpecificationProperty
initialResponse :: InitialResponseSettingProperty
-> Maybe ResponseSpecificationProperty
nextStep :: InitialResponseSettingProperty -> Maybe DialogStateProperty
haddock_workaround_ :: ()
codeHook :: Maybe DialogCodeHookInvocationSettingProperty
conditional :: Maybe ConditionalSpecificationProperty
initialResponse :: Maybe ResponseSpecificationProperty
nextStep :: Maybe DialogStateProperty
..}
= InitialResponseSettingProperty
{codeHook :: Maybe DialogCodeHookInvocationSettingProperty
codeHook = DialogCodeHookInvocationSettingProperty
-> Maybe DialogCodeHookInvocationSettingProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CodeHook" InitialResponseSettingProperty
DialogCodeHookInvocationSettingProperty
newValue, Maybe ResponseSpecificationProperty
Maybe DialogStateProperty
Maybe ConditionalSpecificationProperty
()
haddock_workaround_ :: ()
conditional :: Maybe ConditionalSpecificationProperty
initialResponse :: Maybe ResponseSpecificationProperty
nextStep :: Maybe DialogStateProperty
haddock_workaround_ :: ()
conditional :: Maybe ConditionalSpecificationProperty
initialResponse :: Maybe ResponseSpecificationProperty
nextStep :: Maybe DialogStateProperty
..}
instance Property "Conditional" InitialResponseSettingProperty where
type PropertyType "Conditional" InitialResponseSettingProperty = ConditionalSpecificationProperty
set :: PropertyType "Conditional" InitialResponseSettingProperty
-> InitialResponseSettingProperty -> InitialResponseSettingProperty
set PropertyType "Conditional" InitialResponseSettingProperty
newValue InitialResponseSettingProperty {Maybe ResponseSpecificationProperty
Maybe DialogStateProperty
Maybe ConditionalSpecificationProperty
Maybe DialogCodeHookInvocationSettingProperty
()
haddock_workaround_ :: InitialResponseSettingProperty -> ()
codeHook :: InitialResponseSettingProperty
-> Maybe DialogCodeHookInvocationSettingProperty
conditional :: InitialResponseSettingProperty
-> Maybe ConditionalSpecificationProperty
initialResponse :: InitialResponseSettingProperty
-> Maybe ResponseSpecificationProperty
nextStep :: InitialResponseSettingProperty -> Maybe DialogStateProperty
haddock_workaround_ :: ()
codeHook :: Maybe DialogCodeHookInvocationSettingProperty
conditional :: Maybe ConditionalSpecificationProperty
initialResponse :: Maybe ResponseSpecificationProperty
nextStep :: Maybe DialogStateProperty
..}
= InitialResponseSettingProperty
{conditional :: Maybe ConditionalSpecificationProperty
conditional = ConditionalSpecificationProperty
-> Maybe ConditionalSpecificationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Conditional" InitialResponseSettingProperty
ConditionalSpecificationProperty
newValue, Maybe ResponseSpecificationProperty
Maybe DialogStateProperty
Maybe DialogCodeHookInvocationSettingProperty
()
haddock_workaround_ :: ()
codeHook :: Maybe DialogCodeHookInvocationSettingProperty
initialResponse :: Maybe ResponseSpecificationProperty
nextStep :: Maybe DialogStateProperty
haddock_workaround_ :: ()
codeHook :: Maybe DialogCodeHookInvocationSettingProperty
initialResponse :: Maybe ResponseSpecificationProperty
nextStep :: Maybe DialogStateProperty
..}
instance Property "InitialResponse" InitialResponseSettingProperty where
type PropertyType "InitialResponse" InitialResponseSettingProperty = ResponseSpecificationProperty
set :: PropertyType "InitialResponse" InitialResponseSettingProperty
-> InitialResponseSettingProperty -> InitialResponseSettingProperty
set PropertyType "InitialResponse" InitialResponseSettingProperty
newValue InitialResponseSettingProperty {Maybe ResponseSpecificationProperty
Maybe DialogStateProperty
Maybe ConditionalSpecificationProperty
Maybe DialogCodeHookInvocationSettingProperty
()
haddock_workaround_ :: InitialResponseSettingProperty -> ()
codeHook :: InitialResponseSettingProperty
-> Maybe DialogCodeHookInvocationSettingProperty
conditional :: InitialResponseSettingProperty
-> Maybe ConditionalSpecificationProperty
initialResponse :: InitialResponseSettingProperty
-> Maybe ResponseSpecificationProperty
nextStep :: InitialResponseSettingProperty -> Maybe DialogStateProperty
haddock_workaround_ :: ()
codeHook :: Maybe DialogCodeHookInvocationSettingProperty
conditional :: Maybe ConditionalSpecificationProperty
initialResponse :: Maybe ResponseSpecificationProperty
nextStep :: Maybe DialogStateProperty
..}
= InitialResponseSettingProperty
{initialResponse :: Maybe ResponseSpecificationProperty
initialResponse = ResponseSpecificationProperty
-> Maybe ResponseSpecificationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "InitialResponse" InitialResponseSettingProperty
ResponseSpecificationProperty
newValue, Maybe DialogStateProperty
Maybe ConditionalSpecificationProperty
Maybe DialogCodeHookInvocationSettingProperty
()
haddock_workaround_ :: ()
codeHook :: Maybe DialogCodeHookInvocationSettingProperty
conditional :: Maybe ConditionalSpecificationProperty
nextStep :: Maybe DialogStateProperty
haddock_workaround_ :: ()
codeHook :: Maybe DialogCodeHookInvocationSettingProperty
conditional :: Maybe ConditionalSpecificationProperty
nextStep :: Maybe DialogStateProperty
..}
instance Property "NextStep" InitialResponseSettingProperty where
type PropertyType "NextStep" InitialResponseSettingProperty = DialogStateProperty
set :: PropertyType "NextStep" InitialResponseSettingProperty
-> InitialResponseSettingProperty -> InitialResponseSettingProperty
set PropertyType "NextStep" InitialResponseSettingProperty
newValue InitialResponseSettingProperty {Maybe ResponseSpecificationProperty
Maybe DialogStateProperty
Maybe ConditionalSpecificationProperty
Maybe DialogCodeHookInvocationSettingProperty
()
haddock_workaround_ :: InitialResponseSettingProperty -> ()
codeHook :: InitialResponseSettingProperty
-> Maybe DialogCodeHookInvocationSettingProperty
conditional :: InitialResponseSettingProperty
-> Maybe ConditionalSpecificationProperty
initialResponse :: InitialResponseSettingProperty
-> Maybe ResponseSpecificationProperty
nextStep :: InitialResponseSettingProperty -> Maybe DialogStateProperty
haddock_workaround_ :: ()
codeHook :: Maybe DialogCodeHookInvocationSettingProperty
conditional :: Maybe ConditionalSpecificationProperty
initialResponse :: Maybe ResponseSpecificationProperty
nextStep :: Maybe DialogStateProperty
..}
= InitialResponseSettingProperty
{nextStep :: Maybe DialogStateProperty
nextStep = DialogStateProperty -> Maybe DialogStateProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "NextStep" InitialResponseSettingProperty
DialogStateProperty
newValue, Maybe ResponseSpecificationProperty
Maybe ConditionalSpecificationProperty
Maybe DialogCodeHookInvocationSettingProperty
()
haddock_workaround_ :: ()
codeHook :: Maybe DialogCodeHookInvocationSettingProperty
conditional :: Maybe ConditionalSpecificationProperty
initialResponse :: Maybe ResponseSpecificationProperty
haddock_workaround_ :: ()
codeHook :: Maybe DialogCodeHookInvocationSettingProperty
conditional :: Maybe ConditionalSpecificationProperty
initialResponse :: Maybe ResponseSpecificationProperty
..}