module Stratosphere.Lex.Bot.SlotTypeValueProperty (
module Exports, SlotTypeValueProperty(..), mkSlotTypeValueProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Lex.Bot.SampleValueProperty as Exports
import Stratosphere.ResourceProperties
data SlotTypeValueProperty
=
SlotTypeValueProperty {SlotTypeValueProperty -> ()
haddock_workaround_ :: (),
SlotTypeValueProperty -> SampleValueProperty
sampleValue :: SampleValueProperty,
SlotTypeValueProperty -> Maybe [SampleValueProperty]
synonyms :: (Prelude.Maybe [SampleValueProperty])}
deriving stock (SlotTypeValueProperty -> SlotTypeValueProperty -> Bool
(SlotTypeValueProperty -> SlotTypeValueProperty -> Bool)
-> (SlotTypeValueProperty -> SlotTypeValueProperty -> Bool)
-> Eq SlotTypeValueProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SlotTypeValueProperty -> SlotTypeValueProperty -> Bool
== :: SlotTypeValueProperty -> SlotTypeValueProperty -> Bool
$c/= :: SlotTypeValueProperty -> SlotTypeValueProperty -> Bool
/= :: SlotTypeValueProperty -> SlotTypeValueProperty -> Bool
Prelude.Eq, Int -> SlotTypeValueProperty -> ShowS
[SlotTypeValueProperty] -> ShowS
SlotTypeValueProperty -> String
(Int -> SlotTypeValueProperty -> ShowS)
-> (SlotTypeValueProperty -> String)
-> ([SlotTypeValueProperty] -> ShowS)
-> Show SlotTypeValueProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SlotTypeValueProperty -> ShowS
showsPrec :: Int -> SlotTypeValueProperty -> ShowS
$cshow :: SlotTypeValueProperty -> String
show :: SlotTypeValueProperty -> String
$cshowList :: [SlotTypeValueProperty] -> ShowS
showList :: [SlotTypeValueProperty] -> ShowS
Prelude.Show)
mkSlotTypeValueProperty ::
SampleValueProperty -> SlotTypeValueProperty
mkSlotTypeValueProperty :: SampleValueProperty -> SlotTypeValueProperty
mkSlotTypeValueProperty SampleValueProperty
sampleValue
= SlotTypeValueProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), sampleValue :: SampleValueProperty
sampleValue = SampleValueProperty
sampleValue,
synonyms :: Maybe [SampleValueProperty]
synonyms = Maybe [SampleValueProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SlotTypeValueProperty where
toResourceProperties :: SlotTypeValueProperty -> ResourceProperties
toResourceProperties SlotTypeValueProperty {Maybe [SampleValueProperty]
()
SampleValueProperty
haddock_workaround_ :: SlotTypeValueProperty -> ()
sampleValue :: SlotTypeValueProperty -> SampleValueProperty
synonyms :: SlotTypeValueProperty -> Maybe [SampleValueProperty]
haddock_workaround_ :: ()
sampleValue :: SampleValueProperty
synonyms :: Maybe [SampleValueProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Lex::Bot.SlotTypeValue",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"SampleValue" Key -> SampleValueProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= SampleValueProperty
sampleValue]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> [SampleValueProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Synonyms" ([SampleValueProperty] -> (Key, Value))
-> Maybe [SampleValueProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [SampleValueProperty]
synonyms]))}
instance JSON.ToJSON SlotTypeValueProperty where
toJSON :: SlotTypeValueProperty -> Value
toJSON SlotTypeValueProperty {Maybe [SampleValueProperty]
()
SampleValueProperty
haddock_workaround_ :: SlotTypeValueProperty -> ()
sampleValue :: SlotTypeValueProperty -> SampleValueProperty
synonyms :: SlotTypeValueProperty -> Maybe [SampleValueProperty]
haddock_workaround_ :: ()
sampleValue :: SampleValueProperty
synonyms :: Maybe [SampleValueProperty]
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"SampleValue" Key -> SampleValueProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= SampleValueProperty
sampleValue]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> [SampleValueProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Synonyms" ([SampleValueProperty] -> (Key, Value))
-> Maybe [SampleValueProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [SampleValueProperty]
synonyms])))
instance Property "SampleValue" SlotTypeValueProperty where
type PropertyType "SampleValue" SlotTypeValueProperty = SampleValueProperty
set :: PropertyType "SampleValue" SlotTypeValueProperty
-> SlotTypeValueProperty -> SlotTypeValueProperty
set PropertyType "SampleValue" SlotTypeValueProperty
newValue SlotTypeValueProperty {Maybe [SampleValueProperty]
()
SampleValueProperty
haddock_workaround_ :: SlotTypeValueProperty -> ()
sampleValue :: SlotTypeValueProperty -> SampleValueProperty
synonyms :: SlotTypeValueProperty -> Maybe [SampleValueProperty]
haddock_workaround_ :: ()
sampleValue :: SampleValueProperty
synonyms :: Maybe [SampleValueProperty]
..}
= SlotTypeValueProperty {sampleValue :: SampleValueProperty
sampleValue = PropertyType "SampleValue" SlotTypeValueProperty
SampleValueProperty
newValue, Maybe [SampleValueProperty]
()
haddock_workaround_ :: ()
synonyms :: Maybe [SampleValueProperty]
haddock_workaround_ :: ()
synonyms :: Maybe [SampleValueProperty]
..}
instance Property "Synonyms" SlotTypeValueProperty where
type PropertyType "Synonyms" SlotTypeValueProperty = [SampleValueProperty]
set :: PropertyType "Synonyms" SlotTypeValueProperty
-> SlotTypeValueProperty -> SlotTypeValueProperty
set PropertyType "Synonyms" SlotTypeValueProperty
newValue SlotTypeValueProperty {Maybe [SampleValueProperty]
()
SampleValueProperty
haddock_workaround_ :: SlotTypeValueProperty -> ()
sampleValue :: SlotTypeValueProperty -> SampleValueProperty
synonyms :: SlotTypeValueProperty -> Maybe [SampleValueProperty]
haddock_workaround_ :: ()
sampleValue :: SampleValueProperty
synonyms :: Maybe [SampleValueProperty]
..}
= SlotTypeValueProperty {synonyms :: Maybe [SampleValueProperty]
synonyms = [SampleValueProperty] -> Maybe [SampleValueProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [SampleValueProperty]
PropertyType "Synonyms" SlotTypeValueProperty
newValue, ()
SampleValueProperty
haddock_workaround_ :: ()
sampleValue :: SampleValueProperty
haddock_workaround_ :: ()
sampleValue :: SampleValueProperty
..}