module Stratosphere.Lex.Bot.SubSlotSettingProperty (
module Exports, SubSlotSettingProperty(..),
mkSubSlotSettingProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Lex.Bot.SpecificationsProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SubSlotSettingProperty
=
SubSlotSettingProperty {SubSlotSettingProperty -> ()
haddock_workaround_ :: (),
SubSlotSettingProperty -> Maybe (Value Text)
expression :: (Prelude.Maybe (Value Prelude.Text)),
SubSlotSettingProperty -> Maybe (Map Text SpecificationsProperty)
slotSpecifications :: (Prelude.Maybe (Prelude.Map Prelude.Text SpecificationsProperty))}
deriving stock (SubSlotSettingProperty -> SubSlotSettingProperty -> Bool
(SubSlotSettingProperty -> SubSlotSettingProperty -> Bool)
-> (SubSlotSettingProperty -> SubSlotSettingProperty -> Bool)
-> Eq SubSlotSettingProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SubSlotSettingProperty -> SubSlotSettingProperty -> Bool
== :: SubSlotSettingProperty -> SubSlotSettingProperty -> Bool
$c/= :: SubSlotSettingProperty -> SubSlotSettingProperty -> Bool
/= :: SubSlotSettingProperty -> SubSlotSettingProperty -> Bool
Prelude.Eq, Int -> SubSlotSettingProperty -> ShowS
[SubSlotSettingProperty] -> ShowS
SubSlotSettingProperty -> String
(Int -> SubSlotSettingProperty -> ShowS)
-> (SubSlotSettingProperty -> String)
-> ([SubSlotSettingProperty] -> ShowS)
-> Show SubSlotSettingProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SubSlotSettingProperty -> ShowS
showsPrec :: Int -> SubSlotSettingProperty -> ShowS
$cshow :: SubSlotSettingProperty -> String
show :: SubSlotSettingProperty -> String
$cshowList :: [SubSlotSettingProperty] -> ShowS
showList :: [SubSlotSettingProperty] -> ShowS
Prelude.Show)
mkSubSlotSettingProperty :: SubSlotSettingProperty
mkSubSlotSettingProperty :: SubSlotSettingProperty
mkSubSlotSettingProperty
= SubSlotSettingProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), expression :: Maybe (Value Text)
expression = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
slotSpecifications :: Maybe (Map Text SpecificationsProperty)
slotSpecifications = Maybe (Map Text SpecificationsProperty)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SubSlotSettingProperty where
toResourceProperties :: SubSlotSettingProperty -> ResourceProperties
toResourceProperties SubSlotSettingProperty {Maybe (Map Text SpecificationsProperty)
Maybe (Value Text)
()
haddock_workaround_ :: SubSlotSettingProperty -> ()
expression :: SubSlotSettingProperty -> Maybe (Value Text)
slotSpecifications :: SubSlotSettingProperty -> Maybe (Map Text SpecificationsProperty)
haddock_workaround_ :: ()
expression :: Maybe (Value Text)
slotSpecifications :: Maybe (Map Text SpecificationsProperty)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Lex::Bot.SubSlotSetting",
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 -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Expression" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
expression,
Key -> Map Text SpecificationsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SlotSpecifications" (Map Text SpecificationsProperty -> (Key, Value))
-> Maybe (Map Text SpecificationsProperty) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text SpecificationsProperty)
slotSpecifications])}
instance JSON.ToJSON SubSlotSettingProperty where
toJSON :: SubSlotSettingProperty -> Value
toJSON SubSlotSettingProperty {Maybe (Map Text SpecificationsProperty)
Maybe (Value Text)
()
haddock_workaround_ :: SubSlotSettingProperty -> ()
expression :: SubSlotSettingProperty -> Maybe (Value Text)
slotSpecifications :: SubSlotSettingProperty -> Maybe (Map Text SpecificationsProperty)
haddock_workaround_ :: ()
expression :: Maybe (Value Text)
slotSpecifications :: Maybe (Map Text SpecificationsProperty)
..}
= [(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 -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Expression" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
expression,
Key -> Map Text SpecificationsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SlotSpecifications" (Map Text SpecificationsProperty -> (Key, Value))
-> Maybe (Map Text SpecificationsProperty) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text SpecificationsProperty)
slotSpecifications]))
instance Property "Expression" SubSlotSettingProperty where
type PropertyType "Expression" SubSlotSettingProperty = Value Prelude.Text
set :: PropertyType "Expression" SubSlotSettingProperty
-> SubSlotSettingProperty -> SubSlotSettingProperty
set PropertyType "Expression" SubSlotSettingProperty
newValue SubSlotSettingProperty {Maybe (Map Text SpecificationsProperty)
Maybe (Value Text)
()
haddock_workaround_ :: SubSlotSettingProperty -> ()
expression :: SubSlotSettingProperty -> Maybe (Value Text)
slotSpecifications :: SubSlotSettingProperty -> Maybe (Map Text SpecificationsProperty)
haddock_workaround_ :: ()
expression :: Maybe (Value Text)
slotSpecifications :: Maybe (Map Text SpecificationsProperty)
..}
= SubSlotSettingProperty {expression :: Maybe (Value Text)
expression = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Expression" SubSlotSettingProperty
Value Text
newValue, Maybe (Map Text SpecificationsProperty)
()
haddock_workaround_ :: ()
slotSpecifications :: Maybe (Map Text SpecificationsProperty)
haddock_workaround_ :: ()
slotSpecifications :: Maybe (Map Text SpecificationsProperty)
..}
instance Property "SlotSpecifications" SubSlotSettingProperty where
type PropertyType "SlotSpecifications" SubSlotSettingProperty = Prelude.Map Prelude.Text SpecificationsProperty
set :: PropertyType "SlotSpecifications" SubSlotSettingProperty
-> SubSlotSettingProperty -> SubSlotSettingProperty
set PropertyType "SlotSpecifications" SubSlotSettingProperty
newValue SubSlotSettingProperty {Maybe (Map Text SpecificationsProperty)
Maybe (Value Text)
()
haddock_workaround_ :: SubSlotSettingProperty -> ()
expression :: SubSlotSettingProperty -> Maybe (Value Text)
slotSpecifications :: SubSlotSettingProperty -> Maybe (Map Text SpecificationsProperty)
haddock_workaround_ :: ()
expression :: Maybe (Value Text)
slotSpecifications :: Maybe (Map Text SpecificationsProperty)
..}
= SubSlotSettingProperty
{slotSpecifications :: Maybe (Map Text SpecificationsProperty)
slotSpecifications = Map Text SpecificationsProperty
-> Maybe (Map Text SpecificationsProperty)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text SpecificationsProperty
PropertyType "SlotSpecifications" SubSlotSettingProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
expression :: Maybe (Value Text)
haddock_workaround_ :: ()
expression :: Maybe (Value Text)
..}