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