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