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