module Stratosphere.Lex.Bot.SubSlotValueElicitationSettingProperty (
module Exports, SubSlotValueElicitationSettingProperty(..),
mkSubSlotValueElicitationSettingProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Lex.Bot.PromptSpecificationProperty as Exports
import {-# SOURCE #-} Stratosphere.Lex.Bot.SampleUtteranceProperty as Exports
import {-# SOURCE #-} Stratosphere.Lex.Bot.SlotDefaultValueSpecificationProperty as Exports
import {-# SOURCE #-} Stratosphere.Lex.Bot.WaitAndContinueSpecificationProperty as Exports
import Stratosphere.ResourceProperties
data SubSlotValueElicitationSettingProperty
=
SubSlotValueElicitationSettingProperty {SubSlotValueElicitationSettingProperty -> ()
haddock_workaround_ :: (),
SubSlotValueElicitationSettingProperty
-> Maybe SlotDefaultValueSpecificationProperty
defaultValueSpecification :: (Prelude.Maybe SlotDefaultValueSpecificationProperty),
SubSlotValueElicitationSettingProperty
-> Maybe PromptSpecificationProperty
promptSpecification :: (Prelude.Maybe PromptSpecificationProperty),
SubSlotValueElicitationSettingProperty
-> Maybe [SampleUtteranceProperty]
sampleUtterances :: (Prelude.Maybe [SampleUtteranceProperty]),
SubSlotValueElicitationSettingProperty
-> Maybe WaitAndContinueSpecificationProperty
waitAndContinueSpecification :: (Prelude.Maybe WaitAndContinueSpecificationProperty)}
deriving stock (SubSlotValueElicitationSettingProperty
-> SubSlotValueElicitationSettingProperty -> Bool
(SubSlotValueElicitationSettingProperty
-> SubSlotValueElicitationSettingProperty -> Bool)
-> (SubSlotValueElicitationSettingProperty
-> SubSlotValueElicitationSettingProperty -> Bool)
-> Eq SubSlotValueElicitationSettingProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SubSlotValueElicitationSettingProperty
-> SubSlotValueElicitationSettingProperty -> Bool
== :: SubSlotValueElicitationSettingProperty
-> SubSlotValueElicitationSettingProperty -> Bool
$c/= :: SubSlotValueElicitationSettingProperty
-> SubSlotValueElicitationSettingProperty -> Bool
/= :: SubSlotValueElicitationSettingProperty
-> SubSlotValueElicitationSettingProperty -> Bool
Prelude.Eq, Int -> SubSlotValueElicitationSettingProperty -> ShowS
[SubSlotValueElicitationSettingProperty] -> ShowS
SubSlotValueElicitationSettingProperty -> String
(Int -> SubSlotValueElicitationSettingProperty -> ShowS)
-> (SubSlotValueElicitationSettingProperty -> String)
-> ([SubSlotValueElicitationSettingProperty] -> ShowS)
-> Show SubSlotValueElicitationSettingProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SubSlotValueElicitationSettingProperty -> ShowS
showsPrec :: Int -> SubSlotValueElicitationSettingProperty -> ShowS
$cshow :: SubSlotValueElicitationSettingProperty -> String
show :: SubSlotValueElicitationSettingProperty -> String
$cshowList :: [SubSlotValueElicitationSettingProperty] -> ShowS
showList :: [SubSlotValueElicitationSettingProperty] -> ShowS
Prelude.Show)
mkSubSlotValueElicitationSettingProperty ::
SubSlotValueElicitationSettingProperty
mkSubSlotValueElicitationSettingProperty :: SubSlotValueElicitationSettingProperty
mkSubSlotValueElicitationSettingProperty
= SubSlotValueElicitationSettingProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
defaultValueSpecification :: Maybe SlotDefaultValueSpecificationProperty
defaultValueSpecification = Maybe SlotDefaultValueSpecificationProperty
forall a. Maybe a
Prelude.Nothing,
promptSpecification :: Maybe PromptSpecificationProperty
promptSpecification = Maybe PromptSpecificationProperty
forall a. Maybe a
Prelude.Nothing,
sampleUtterances :: Maybe [SampleUtteranceProperty]
sampleUtterances = Maybe [SampleUtteranceProperty]
forall a. Maybe a
Prelude.Nothing,
waitAndContinueSpecification :: Maybe WaitAndContinueSpecificationProperty
waitAndContinueSpecification = Maybe WaitAndContinueSpecificationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SubSlotValueElicitationSettingProperty where
toResourceProperties :: SubSlotValueElicitationSettingProperty -> ResourceProperties
toResourceProperties SubSlotValueElicitationSettingProperty {Maybe [SampleUtteranceProperty]
Maybe SlotDefaultValueSpecificationProperty
Maybe PromptSpecificationProperty
Maybe WaitAndContinueSpecificationProperty
()
haddock_workaround_ :: SubSlotValueElicitationSettingProperty -> ()
defaultValueSpecification :: SubSlotValueElicitationSettingProperty
-> Maybe SlotDefaultValueSpecificationProperty
promptSpecification :: SubSlotValueElicitationSettingProperty
-> Maybe PromptSpecificationProperty
sampleUtterances :: SubSlotValueElicitationSettingProperty
-> Maybe [SampleUtteranceProperty]
waitAndContinueSpecification :: SubSlotValueElicitationSettingProperty
-> Maybe WaitAndContinueSpecificationProperty
haddock_workaround_ :: ()
defaultValueSpecification :: Maybe SlotDefaultValueSpecificationProperty
promptSpecification :: Maybe PromptSpecificationProperty
sampleUtterances :: Maybe [SampleUtteranceProperty]
waitAndContinueSpecification :: Maybe WaitAndContinueSpecificationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Lex::Bot.SubSlotValueElicitationSetting",
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 -> SlotDefaultValueSpecificationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DefaultValueSpecification"
(SlotDefaultValueSpecificationProperty -> (Key, Value))
-> Maybe SlotDefaultValueSpecificationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SlotDefaultValueSpecificationProperty
defaultValueSpecification,
Key -> PromptSpecificationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"PromptSpecification" (PromptSpecificationProperty -> (Key, Value))
-> Maybe PromptSpecificationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PromptSpecificationProperty
promptSpecification,
Key -> [SampleUtteranceProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SampleUtterances" ([SampleUtteranceProperty] -> (Key, Value))
-> Maybe [SampleUtteranceProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [SampleUtteranceProperty]
sampleUtterances,
Key -> WaitAndContinueSpecificationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"WaitAndContinueSpecification"
(WaitAndContinueSpecificationProperty -> (Key, Value))
-> Maybe WaitAndContinueSpecificationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe WaitAndContinueSpecificationProperty
waitAndContinueSpecification])}
instance JSON.ToJSON SubSlotValueElicitationSettingProperty where
toJSON :: SubSlotValueElicitationSettingProperty -> Value
toJSON SubSlotValueElicitationSettingProperty {Maybe [SampleUtteranceProperty]
Maybe SlotDefaultValueSpecificationProperty
Maybe PromptSpecificationProperty
Maybe WaitAndContinueSpecificationProperty
()
haddock_workaround_ :: SubSlotValueElicitationSettingProperty -> ()
defaultValueSpecification :: SubSlotValueElicitationSettingProperty
-> Maybe SlotDefaultValueSpecificationProperty
promptSpecification :: SubSlotValueElicitationSettingProperty
-> Maybe PromptSpecificationProperty
sampleUtterances :: SubSlotValueElicitationSettingProperty
-> Maybe [SampleUtteranceProperty]
waitAndContinueSpecification :: SubSlotValueElicitationSettingProperty
-> Maybe WaitAndContinueSpecificationProperty
haddock_workaround_ :: ()
defaultValueSpecification :: Maybe SlotDefaultValueSpecificationProperty
promptSpecification :: Maybe PromptSpecificationProperty
sampleUtterances :: Maybe [SampleUtteranceProperty]
waitAndContinueSpecification :: Maybe WaitAndContinueSpecificationProperty
..}
= [(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 -> SlotDefaultValueSpecificationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DefaultValueSpecification"
(SlotDefaultValueSpecificationProperty -> (Key, Value))
-> Maybe SlotDefaultValueSpecificationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SlotDefaultValueSpecificationProperty
defaultValueSpecification,
Key -> PromptSpecificationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"PromptSpecification" (PromptSpecificationProperty -> (Key, Value))
-> Maybe PromptSpecificationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PromptSpecificationProperty
promptSpecification,
Key -> [SampleUtteranceProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SampleUtterances" ([SampleUtteranceProperty] -> (Key, Value))
-> Maybe [SampleUtteranceProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [SampleUtteranceProperty]
sampleUtterances,
Key -> WaitAndContinueSpecificationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"WaitAndContinueSpecification"
(WaitAndContinueSpecificationProperty -> (Key, Value))
-> Maybe WaitAndContinueSpecificationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe WaitAndContinueSpecificationProperty
waitAndContinueSpecification]))
instance Property "DefaultValueSpecification" SubSlotValueElicitationSettingProperty where
type PropertyType "DefaultValueSpecification" SubSlotValueElicitationSettingProperty = SlotDefaultValueSpecificationProperty
set :: PropertyType
"DefaultValueSpecification" SubSlotValueElicitationSettingProperty
-> SubSlotValueElicitationSettingProperty
-> SubSlotValueElicitationSettingProperty
set PropertyType
"DefaultValueSpecification" SubSlotValueElicitationSettingProperty
newValue SubSlotValueElicitationSettingProperty {Maybe [SampleUtteranceProperty]
Maybe SlotDefaultValueSpecificationProperty
Maybe PromptSpecificationProperty
Maybe WaitAndContinueSpecificationProperty
()
haddock_workaround_ :: SubSlotValueElicitationSettingProperty -> ()
defaultValueSpecification :: SubSlotValueElicitationSettingProperty
-> Maybe SlotDefaultValueSpecificationProperty
promptSpecification :: SubSlotValueElicitationSettingProperty
-> Maybe PromptSpecificationProperty
sampleUtterances :: SubSlotValueElicitationSettingProperty
-> Maybe [SampleUtteranceProperty]
waitAndContinueSpecification :: SubSlotValueElicitationSettingProperty
-> Maybe WaitAndContinueSpecificationProperty
haddock_workaround_ :: ()
defaultValueSpecification :: Maybe SlotDefaultValueSpecificationProperty
promptSpecification :: Maybe PromptSpecificationProperty
sampleUtterances :: Maybe [SampleUtteranceProperty]
waitAndContinueSpecification :: Maybe WaitAndContinueSpecificationProperty
..}
= SubSlotValueElicitationSettingProperty
{defaultValueSpecification :: Maybe SlotDefaultValueSpecificationProperty
defaultValueSpecification = SlotDefaultValueSpecificationProperty
-> Maybe SlotDefaultValueSpecificationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"DefaultValueSpecification" SubSlotValueElicitationSettingProperty
SlotDefaultValueSpecificationProperty
newValue, Maybe [SampleUtteranceProperty]
Maybe PromptSpecificationProperty
Maybe WaitAndContinueSpecificationProperty
()
haddock_workaround_ :: ()
promptSpecification :: Maybe PromptSpecificationProperty
sampleUtterances :: Maybe [SampleUtteranceProperty]
waitAndContinueSpecification :: Maybe WaitAndContinueSpecificationProperty
haddock_workaround_ :: ()
promptSpecification :: Maybe PromptSpecificationProperty
sampleUtterances :: Maybe [SampleUtteranceProperty]
waitAndContinueSpecification :: Maybe WaitAndContinueSpecificationProperty
..}
instance Property "PromptSpecification" SubSlotValueElicitationSettingProperty where
type PropertyType "PromptSpecification" SubSlotValueElicitationSettingProperty = PromptSpecificationProperty
set :: PropertyType
"PromptSpecification" SubSlotValueElicitationSettingProperty
-> SubSlotValueElicitationSettingProperty
-> SubSlotValueElicitationSettingProperty
set PropertyType
"PromptSpecification" SubSlotValueElicitationSettingProperty
newValue SubSlotValueElicitationSettingProperty {Maybe [SampleUtteranceProperty]
Maybe SlotDefaultValueSpecificationProperty
Maybe PromptSpecificationProperty
Maybe WaitAndContinueSpecificationProperty
()
haddock_workaround_ :: SubSlotValueElicitationSettingProperty -> ()
defaultValueSpecification :: SubSlotValueElicitationSettingProperty
-> Maybe SlotDefaultValueSpecificationProperty
promptSpecification :: SubSlotValueElicitationSettingProperty
-> Maybe PromptSpecificationProperty
sampleUtterances :: SubSlotValueElicitationSettingProperty
-> Maybe [SampleUtteranceProperty]
waitAndContinueSpecification :: SubSlotValueElicitationSettingProperty
-> Maybe WaitAndContinueSpecificationProperty
haddock_workaround_ :: ()
defaultValueSpecification :: Maybe SlotDefaultValueSpecificationProperty
promptSpecification :: Maybe PromptSpecificationProperty
sampleUtterances :: Maybe [SampleUtteranceProperty]
waitAndContinueSpecification :: Maybe WaitAndContinueSpecificationProperty
..}
= SubSlotValueElicitationSettingProperty
{promptSpecification :: Maybe PromptSpecificationProperty
promptSpecification = PromptSpecificationProperty -> Maybe PromptSpecificationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"PromptSpecification" SubSlotValueElicitationSettingProperty
PromptSpecificationProperty
newValue, Maybe [SampleUtteranceProperty]
Maybe SlotDefaultValueSpecificationProperty
Maybe WaitAndContinueSpecificationProperty
()
haddock_workaround_ :: ()
defaultValueSpecification :: Maybe SlotDefaultValueSpecificationProperty
sampleUtterances :: Maybe [SampleUtteranceProperty]
waitAndContinueSpecification :: Maybe WaitAndContinueSpecificationProperty
haddock_workaround_ :: ()
defaultValueSpecification :: Maybe SlotDefaultValueSpecificationProperty
sampleUtterances :: Maybe [SampleUtteranceProperty]
waitAndContinueSpecification :: Maybe WaitAndContinueSpecificationProperty
..}
instance Property "SampleUtterances" SubSlotValueElicitationSettingProperty where
type PropertyType "SampleUtterances" SubSlotValueElicitationSettingProperty = [SampleUtteranceProperty]
set :: PropertyType
"SampleUtterances" SubSlotValueElicitationSettingProperty
-> SubSlotValueElicitationSettingProperty
-> SubSlotValueElicitationSettingProperty
set PropertyType
"SampleUtterances" SubSlotValueElicitationSettingProperty
newValue SubSlotValueElicitationSettingProperty {Maybe [SampleUtteranceProperty]
Maybe SlotDefaultValueSpecificationProperty
Maybe PromptSpecificationProperty
Maybe WaitAndContinueSpecificationProperty
()
haddock_workaround_ :: SubSlotValueElicitationSettingProperty -> ()
defaultValueSpecification :: SubSlotValueElicitationSettingProperty
-> Maybe SlotDefaultValueSpecificationProperty
promptSpecification :: SubSlotValueElicitationSettingProperty
-> Maybe PromptSpecificationProperty
sampleUtterances :: SubSlotValueElicitationSettingProperty
-> Maybe [SampleUtteranceProperty]
waitAndContinueSpecification :: SubSlotValueElicitationSettingProperty
-> Maybe WaitAndContinueSpecificationProperty
haddock_workaround_ :: ()
defaultValueSpecification :: Maybe SlotDefaultValueSpecificationProperty
promptSpecification :: Maybe PromptSpecificationProperty
sampleUtterances :: Maybe [SampleUtteranceProperty]
waitAndContinueSpecification :: Maybe WaitAndContinueSpecificationProperty
..}
= SubSlotValueElicitationSettingProperty
{sampleUtterances :: Maybe [SampleUtteranceProperty]
sampleUtterances = [SampleUtteranceProperty] -> Maybe [SampleUtteranceProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [SampleUtteranceProperty]
PropertyType
"SampleUtterances" SubSlotValueElicitationSettingProperty
newValue, Maybe SlotDefaultValueSpecificationProperty
Maybe PromptSpecificationProperty
Maybe WaitAndContinueSpecificationProperty
()
haddock_workaround_ :: ()
defaultValueSpecification :: Maybe SlotDefaultValueSpecificationProperty
promptSpecification :: Maybe PromptSpecificationProperty
waitAndContinueSpecification :: Maybe WaitAndContinueSpecificationProperty
haddock_workaround_ :: ()
defaultValueSpecification :: Maybe SlotDefaultValueSpecificationProperty
promptSpecification :: Maybe PromptSpecificationProperty
waitAndContinueSpecification :: Maybe WaitAndContinueSpecificationProperty
..}
instance Property "WaitAndContinueSpecification" SubSlotValueElicitationSettingProperty where
type PropertyType "WaitAndContinueSpecification" SubSlotValueElicitationSettingProperty = WaitAndContinueSpecificationProperty
set :: PropertyType
"WaitAndContinueSpecification"
SubSlotValueElicitationSettingProperty
-> SubSlotValueElicitationSettingProperty
-> SubSlotValueElicitationSettingProperty
set PropertyType
"WaitAndContinueSpecification"
SubSlotValueElicitationSettingProperty
newValue SubSlotValueElicitationSettingProperty {Maybe [SampleUtteranceProperty]
Maybe SlotDefaultValueSpecificationProperty
Maybe PromptSpecificationProperty
Maybe WaitAndContinueSpecificationProperty
()
haddock_workaround_ :: SubSlotValueElicitationSettingProperty -> ()
defaultValueSpecification :: SubSlotValueElicitationSettingProperty
-> Maybe SlotDefaultValueSpecificationProperty
promptSpecification :: SubSlotValueElicitationSettingProperty
-> Maybe PromptSpecificationProperty
sampleUtterances :: SubSlotValueElicitationSettingProperty
-> Maybe [SampleUtteranceProperty]
waitAndContinueSpecification :: SubSlotValueElicitationSettingProperty
-> Maybe WaitAndContinueSpecificationProperty
haddock_workaround_ :: ()
defaultValueSpecification :: Maybe SlotDefaultValueSpecificationProperty
promptSpecification :: Maybe PromptSpecificationProperty
sampleUtterances :: Maybe [SampleUtteranceProperty]
waitAndContinueSpecification :: Maybe WaitAndContinueSpecificationProperty
..}
= SubSlotValueElicitationSettingProperty
{waitAndContinueSpecification :: Maybe WaitAndContinueSpecificationProperty
waitAndContinueSpecification = WaitAndContinueSpecificationProperty
-> Maybe WaitAndContinueSpecificationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"WaitAndContinueSpecification"
SubSlotValueElicitationSettingProperty
WaitAndContinueSpecificationProperty
newValue, Maybe [SampleUtteranceProperty]
Maybe SlotDefaultValueSpecificationProperty
Maybe PromptSpecificationProperty
()
haddock_workaround_ :: ()
defaultValueSpecification :: Maybe SlotDefaultValueSpecificationProperty
promptSpecification :: Maybe PromptSpecificationProperty
sampleUtterances :: Maybe [SampleUtteranceProperty]
haddock_workaround_ :: ()
defaultValueSpecification :: Maybe SlotDefaultValueSpecificationProperty
promptSpecification :: Maybe PromptSpecificationProperty
sampleUtterances :: Maybe [SampleUtteranceProperty]
..}