module Stratosphere.Lex.Bot.SlotPriorityProperty (
SlotPriorityProperty(..), mkSlotPriorityProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SlotPriorityProperty
=
SlotPriorityProperty {SlotPriorityProperty -> ()
haddock_workaround_ :: (),
SlotPriorityProperty -> Value Integer
priority :: (Value Prelude.Integer),
SlotPriorityProperty -> Value Text
slotName :: (Value Prelude.Text)}
deriving stock (SlotPriorityProperty -> SlotPriorityProperty -> Bool
(SlotPriorityProperty -> SlotPriorityProperty -> Bool)
-> (SlotPriorityProperty -> SlotPriorityProperty -> Bool)
-> Eq SlotPriorityProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SlotPriorityProperty -> SlotPriorityProperty -> Bool
== :: SlotPriorityProperty -> SlotPriorityProperty -> Bool
$c/= :: SlotPriorityProperty -> SlotPriorityProperty -> Bool
/= :: SlotPriorityProperty -> SlotPriorityProperty -> Bool
Prelude.Eq, Int -> SlotPriorityProperty -> ShowS
[SlotPriorityProperty] -> ShowS
SlotPriorityProperty -> String
(Int -> SlotPriorityProperty -> ShowS)
-> (SlotPriorityProperty -> String)
-> ([SlotPriorityProperty] -> ShowS)
-> Show SlotPriorityProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SlotPriorityProperty -> ShowS
showsPrec :: Int -> SlotPriorityProperty -> ShowS
$cshow :: SlotPriorityProperty -> String
show :: SlotPriorityProperty -> String
$cshowList :: [SlotPriorityProperty] -> ShowS
showList :: [SlotPriorityProperty] -> ShowS
Prelude.Show)
mkSlotPriorityProperty ::
Value Prelude.Integer -> Value Prelude.Text -> SlotPriorityProperty
mkSlotPriorityProperty :: Value Integer -> Value Text -> SlotPriorityProperty
mkSlotPriorityProperty Value Integer
priority Value Text
slotName
= SlotPriorityProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), priority :: Value Integer
priority = Value Integer
priority,
slotName :: Value Text
slotName = Value Text
slotName}
instance ToResourceProperties SlotPriorityProperty where
toResourceProperties :: SlotPriorityProperty -> ResourceProperties
toResourceProperties SlotPriorityProperty {()
Value Integer
Value Text
haddock_workaround_ :: SlotPriorityProperty -> ()
priority :: SlotPriorityProperty -> Value Integer
slotName :: SlotPriorityProperty -> Value Text
haddock_workaround_ :: ()
priority :: Value Integer
slotName :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Lex::Bot.SlotPriority",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Priority" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
priority,
Key
"SlotName" 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
slotName]}
instance JSON.ToJSON SlotPriorityProperty where
toJSON :: SlotPriorityProperty -> Value
toJSON SlotPriorityProperty {()
Value Integer
Value Text
haddock_workaround_ :: SlotPriorityProperty -> ()
priority :: SlotPriorityProperty -> Value Integer
slotName :: SlotPriorityProperty -> Value Text
haddock_workaround_ :: ()
priority :: Value Integer
slotName :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"Priority" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
priority, Key
"SlotName" 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
slotName]
instance Property "Priority" SlotPriorityProperty where
type PropertyType "Priority" SlotPriorityProperty = Value Prelude.Integer
set :: PropertyType "Priority" SlotPriorityProperty
-> SlotPriorityProperty -> SlotPriorityProperty
set PropertyType "Priority" SlotPriorityProperty
newValue SlotPriorityProperty {()
Value Integer
Value Text
haddock_workaround_ :: SlotPriorityProperty -> ()
priority :: SlotPriorityProperty -> Value Integer
slotName :: SlotPriorityProperty -> Value Text
haddock_workaround_ :: ()
priority :: Value Integer
slotName :: Value Text
..}
= SlotPriorityProperty {priority :: Value Integer
priority = PropertyType "Priority" SlotPriorityProperty
Value Integer
newValue, ()
Value Text
haddock_workaround_ :: ()
slotName :: Value Text
haddock_workaround_ :: ()
slotName :: Value Text
..}
instance Property "SlotName" SlotPriorityProperty where
type PropertyType "SlotName" SlotPriorityProperty = Value Prelude.Text
set :: PropertyType "SlotName" SlotPriorityProperty
-> SlotPriorityProperty -> SlotPriorityProperty
set PropertyType "SlotName" SlotPriorityProperty
newValue SlotPriorityProperty {()
Value Integer
Value Text
haddock_workaround_ :: SlotPriorityProperty -> ()
priority :: SlotPriorityProperty -> Value Integer
slotName :: SlotPriorityProperty -> Value Text
haddock_workaround_ :: ()
priority :: Value Integer
slotName :: Value Text
..}
= SlotPriorityProperty {slotName :: Value Text
slotName = PropertyType "SlotName" SlotPriorityProperty
Value Text
newValue, ()
Value Integer
haddock_workaround_ :: ()
priority :: Value Integer
haddock_workaround_ :: ()
priority :: Value Integer
..}