module Stratosphere.Lex.Bot.SubSlotTypeCompositionProperty (
SubSlotTypeCompositionProperty(..),
mkSubSlotTypeCompositionProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SubSlotTypeCompositionProperty
=
SubSlotTypeCompositionProperty {SubSlotTypeCompositionProperty -> ()
haddock_workaround_ :: (),
SubSlotTypeCompositionProperty -> Value Text
name :: (Value Prelude.Text),
SubSlotTypeCompositionProperty -> Value Text
slotTypeId :: (Value Prelude.Text)}
deriving stock (SubSlotTypeCompositionProperty
-> SubSlotTypeCompositionProperty -> Bool
(SubSlotTypeCompositionProperty
-> SubSlotTypeCompositionProperty -> Bool)
-> (SubSlotTypeCompositionProperty
-> SubSlotTypeCompositionProperty -> Bool)
-> Eq SubSlotTypeCompositionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SubSlotTypeCompositionProperty
-> SubSlotTypeCompositionProperty -> Bool
== :: SubSlotTypeCompositionProperty
-> SubSlotTypeCompositionProperty -> Bool
$c/= :: SubSlotTypeCompositionProperty
-> SubSlotTypeCompositionProperty -> Bool
/= :: SubSlotTypeCompositionProperty
-> SubSlotTypeCompositionProperty -> Bool
Prelude.Eq, Int -> SubSlotTypeCompositionProperty -> ShowS
[SubSlotTypeCompositionProperty] -> ShowS
SubSlotTypeCompositionProperty -> String
(Int -> SubSlotTypeCompositionProperty -> ShowS)
-> (SubSlotTypeCompositionProperty -> String)
-> ([SubSlotTypeCompositionProperty] -> ShowS)
-> Show SubSlotTypeCompositionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SubSlotTypeCompositionProperty -> ShowS
showsPrec :: Int -> SubSlotTypeCompositionProperty -> ShowS
$cshow :: SubSlotTypeCompositionProperty -> String
show :: SubSlotTypeCompositionProperty -> String
$cshowList :: [SubSlotTypeCompositionProperty] -> ShowS
showList :: [SubSlotTypeCompositionProperty] -> ShowS
Prelude.Show)
mkSubSlotTypeCompositionProperty ::
Value Prelude.Text
-> Value Prelude.Text -> SubSlotTypeCompositionProperty
mkSubSlotTypeCompositionProperty :: Value Text -> Value Text -> SubSlotTypeCompositionProperty
mkSubSlotTypeCompositionProperty Value Text
name Value Text
slotTypeId
= SubSlotTypeCompositionProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name, slotTypeId :: Value Text
slotTypeId = Value Text
slotTypeId}
instance ToResourceProperties SubSlotTypeCompositionProperty where
toResourceProperties :: SubSlotTypeCompositionProperty -> ResourceProperties
toResourceProperties SubSlotTypeCompositionProperty {()
Value Text
haddock_workaround_ :: SubSlotTypeCompositionProperty -> ()
name :: SubSlotTypeCompositionProperty -> Value Text
slotTypeId :: SubSlotTypeCompositionProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
slotTypeId :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Lex::Bot.SubSlotTypeComposition",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Name" 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..= Value Text
name,
Key
"SlotTypeId" 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..= Value Text
slotTypeId]}
instance JSON.ToJSON SubSlotTypeCompositionProperty where
toJSON :: SubSlotTypeCompositionProperty -> Value
toJSON SubSlotTypeCompositionProperty {()
Value Text
haddock_workaround_ :: SubSlotTypeCompositionProperty -> ()
name :: SubSlotTypeCompositionProperty -> Value Text
slotTypeId :: SubSlotTypeCompositionProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
slotTypeId :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"Name" 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..= Value Text
name, Key
"SlotTypeId" 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..= Value Text
slotTypeId]
instance Property "Name" SubSlotTypeCompositionProperty where
type PropertyType "Name" SubSlotTypeCompositionProperty = Value Prelude.Text
set :: PropertyType "Name" SubSlotTypeCompositionProperty
-> SubSlotTypeCompositionProperty -> SubSlotTypeCompositionProperty
set PropertyType "Name" SubSlotTypeCompositionProperty
newValue SubSlotTypeCompositionProperty {()
Value Text
haddock_workaround_ :: SubSlotTypeCompositionProperty -> ()
name :: SubSlotTypeCompositionProperty -> Value Text
slotTypeId :: SubSlotTypeCompositionProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
slotTypeId :: Value Text
..}
= SubSlotTypeCompositionProperty {name :: Value Text
name = PropertyType "Name" SubSlotTypeCompositionProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
slotTypeId :: Value Text
haddock_workaround_ :: ()
slotTypeId :: Value Text
..}
instance Property "SlotTypeId" SubSlotTypeCompositionProperty where
type PropertyType "SlotTypeId" SubSlotTypeCompositionProperty = Value Prelude.Text
set :: PropertyType "SlotTypeId" SubSlotTypeCompositionProperty
-> SubSlotTypeCompositionProperty -> SubSlotTypeCompositionProperty
set PropertyType "SlotTypeId" SubSlotTypeCompositionProperty
newValue SubSlotTypeCompositionProperty {()
Value Text
haddock_workaround_ :: SubSlotTypeCompositionProperty -> ()
name :: SubSlotTypeCompositionProperty -> Value Text
slotTypeId :: SubSlotTypeCompositionProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
slotTypeId :: Value Text
..}
= SubSlotTypeCompositionProperty {slotTypeId :: Value Text
slotTypeId = PropertyType "SlotTypeId" SubSlotTypeCompositionProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
name :: Value Text
haddock_workaround_ :: ()
name :: Value Text
..}