module Stratosphere.Lex.Bot.PlainTextMessageProperty (
        PlainTextMessageProperty(..), mkPlainTextMessageProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PlainTextMessageProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-plaintextmessage.html>
    PlainTextMessageProperty {PlainTextMessageProperty -> ()
haddock_workaround_ :: (),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-plaintextmessage.html#cfn-lex-bot-plaintextmessage-value>
                              PlainTextMessageProperty -> Value Text
value :: (Value Prelude.Text)}
  deriving stock (PlainTextMessageProperty -> PlainTextMessageProperty -> Bool
(PlainTextMessageProperty -> PlainTextMessageProperty -> Bool)
-> (PlainTextMessageProperty -> PlainTextMessageProperty -> Bool)
-> Eq PlainTextMessageProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PlainTextMessageProperty -> PlainTextMessageProperty -> Bool
== :: PlainTextMessageProperty -> PlainTextMessageProperty -> Bool
$c/= :: PlainTextMessageProperty -> PlainTextMessageProperty -> Bool
/= :: PlainTextMessageProperty -> PlainTextMessageProperty -> Bool
Prelude.Eq, Int -> PlainTextMessageProperty -> ShowS
[PlainTextMessageProperty] -> ShowS
PlainTextMessageProperty -> String
(Int -> PlainTextMessageProperty -> ShowS)
-> (PlainTextMessageProperty -> String)
-> ([PlainTextMessageProperty] -> ShowS)
-> Show PlainTextMessageProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PlainTextMessageProperty -> ShowS
showsPrec :: Int -> PlainTextMessageProperty -> ShowS
$cshow :: PlainTextMessageProperty -> String
show :: PlainTextMessageProperty -> String
$cshowList :: [PlainTextMessageProperty] -> ShowS
showList :: [PlainTextMessageProperty] -> ShowS
Prelude.Show)
mkPlainTextMessageProperty ::
  Value Prelude.Text -> PlainTextMessageProperty
mkPlainTextMessageProperty :: Value Text -> PlainTextMessageProperty
mkPlainTextMessageProperty Value Text
value
  = PlainTextMessageProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), value :: Value Text
value = Value Text
value}
instance ToResourceProperties PlainTextMessageProperty where
  toResourceProperties :: PlainTextMessageProperty -> ResourceProperties
toResourceProperties PlainTextMessageProperty {()
Value Text
haddock_workaround_ :: PlainTextMessageProperty -> ()
value :: PlainTextMessageProperty -> Value Text
haddock_workaround_ :: ()
value :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Lex::Bot.PlainTextMessage",
         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 PlainTextMessageProperty where
  toJSON :: PlainTextMessageProperty -> Value
toJSON PlainTextMessageProperty {()
Value Text
haddock_workaround_ :: PlainTextMessageProperty -> ()
value :: PlainTextMessageProperty -> 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" PlainTextMessageProperty where
  type PropertyType "Value" PlainTextMessageProperty = Value Prelude.Text
  set :: PropertyType "Value" PlainTextMessageProperty
-> PlainTextMessageProperty -> PlainTextMessageProperty
set PropertyType "Value" PlainTextMessageProperty
newValue PlainTextMessageProperty {()
Value Text
haddock_workaround_ :: PlainTextMessageProperty -> ()
value :: PlainTextMessageProperty -> Value Text
haddock_workaround_ :: ()
value :: Value Text
..}
    = PlainTextMessageProperty {value :: Value Text
value = PropertyType "Value" PlainTextMessageProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}