module Stratosphere.Lex.Bot.DTMFSpecificationProperty (
        DTMFSpecificationProperty(..), mkDTMFSpecificationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DTMFSpecificationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-dtmfspecification.html>
    DTMFSpecificationProperty {DTMFSpecificationProperty -> ()
haddock_workaround_ :: (),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-dtmfspecification.html#cfn-lex-bot-dtmfspecification-deletioncharacter>
                               DTMFSpecificationProperty -> Value Text
deletionCharacter :: (Value Prelude.Text),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-dtmfspecification.html#cfn-lex-bot-dtmfspecification-endcharacter>
                               DTMFSpecificationProperty -> Value Text
endCharacter :: (Value Prelude.Text),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-dtmfspecification.html#cfn-lex-bot-dtmfspecification-endtimeoutms>
                               DTMFSpecificationProperty -> Value Integer
endTimeoutMs :: (Value Prelude.Integer),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-dtmfspecification.html#cfn-lex-bot-dtmfspecification-maxlength>
                               DTMFSpecificationProperty -> Value Integer
maxLength :: (Value Prelude.Integer)}
  deriving stock (DTMFSpecificationProperty -> DTMFSpecificationProperty -> Bool
(DTMFSpecificationProperty -> DTMFSpecificationProperty -> Bool)
-> (DTMFSpecificationProperty -> DTMFSpecificationProperty -> Bool)
-> Eq DTMFSpecificationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DTMFSpecificationProperty -> DTMFSpecificationProperty -> Bool
== :: DTMFSpecificationProperty -> DTMFSpecificationProperty -> Bool
$c/= :: DTMFSpecificationProperty -> DTMFSpecificationProperty -> Bool
/= :: DTMFSpecificationProperty -> DTMFSpecificationProperty -> Bool
Prelude.Eq, Int -> DTMFSpecificationProperty -> ShowS
[DTMFSpecificationProperty] -> ShowS
DTMFSpecificationProperty -> String
(Int -> DTMFSpecificationProperty -> ShowS)
-> (DTMFSpecificationProperty -> String)
-> ([DTMFSpecificationProperty] -> ShowS)
-> Show DTMFSpecificationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DTMFSpecificationProperty -> ShowS
showsPrec :: Int -> DTMFSpecificationProperty -> ShowS
$cshow :: DTMFSpecificationProperty -> String
show :: DTMFSpecificationProperty -> String
$cshowList :: [DTMFSpecificationProperty] -> ShowS
showList :: [DTMFSpecificationProperty] -> ShowS
Prelude.Show)
mkDTMFSpecificationProperty ::
  Value Prelude.Text
  -> Value Prelude.Text
     -> Value Prelude.Integer
        -> Value Prelude.Integer -> DTMFSpecificationProperty
mkDTMFSpecificationProperty :: Value Text
-> Value Text
-> Value Integer
-> Value Integer
-> DTMFSpecificationProperty
mkDTMFSpecificationProperty
  Value Text
deletionCharacter
  Value Text
endCharacter
  Value Integer
endTimeoutMs
  Value Integer
maxLength
  = DTMFSpecificationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), deletionCharacter :: Value Text
deletionCharacter = Value Text
deletionCharacter,
       endCharacter :: Value Text
endCharacter = Value Text
endCharacter, endTimeoutMs :: Value Integer
endTimeoutMs = Value Integer
endTimeoutMs,
       maxLength :: Value Integer
maxLength = Value Integer
maxLength}
instance ToResourceProperties DTMFSpecificationProperty where
  toResourceProperties :: DTMFSpecificationProperty -> ResourceProperties
toResourceProperties DTMFSpecificationProperty {()
Value Integer
Value Text
haddock_workaround_ :: DTMFSpecificationProperty -> ()
deletionCharacter :: DTMFSpecificationProperty -> Value Text
endCharacter :: DTMFSpecificationProperty -> Value Text
endTimeoutMs :: DTMFSpecificationProperty -> Value Integer
maxLength :: DTMFSpecificationProperty -> Value Integer
haddock_workaround_ :: ()
deletionCharacter :: Value Text
endCharacter :: Value Text
endTimeoutMs :: Value Integer
maxLength :: Value Integer
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Lex::Bot.DTMFSpecification",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"DeletionCharacter" 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
deletionCharacter,
                       Key
"EndCharacter" 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
endCharacter,
                       Key
"EndTimeoutMs" 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
endTimeoutMs,
                       Key
"MaxLength" 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
maxLength]}
instance JSON.ToJSON DTMFSpecificationProperty where
  toJSON :: DTMFSpecificationProperty -> Value
toJSON DTMFSpecificationProperty {()
Value Integer
Value Text
haddock_workaround_ :: DTMFSpecificationProperty -> ()
deletionCharacter :: DTMFSpecificationProperty -> Value Text
endCharacter :: DTMFSpecificationProperty -> Value Text
endTimeoutMs :: DTMFSpecificationProperty -> Value Integer
maxLength :: DTMFSpecificationProperty -> Value Integer
haddock_workaround_ :: ()
deletionCharacter :: Value Text
endCharacter :: Value Text
endTimeoutMs :: Value Integer
maxLength :: Value Integer
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"DeletionCharacter" 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
deletionCharacter,
         Key
"EndCharacter" 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
endCharacter,
         Key
"EndTimeoutMs" 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
endTimeoutMs, Key
"MaxLength" 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
maxLength]
instance Property "DeletionCharacter" DTMFSpecificationProperty where
  type PropertyType "DeletionCharacter" DTMFSpecificationProperty = Value Prelude.Text
  set :: PropertyType "DeletionCharacter" DTMFSpecificationProperty
-> DTMFSpecificationProperty -> DTMFSpecificationProperty
set PropertyType "DeletionCharacter" DTMFSpecificationProperty
newValue DTMFSpecificationProperty {()
Value Integer
Value Text
haddock_workaround_ :: DTMFSpecificationProperty -> ()
deletionCharacter :: DTMFSpecificationProperty -> Value Text
endCharacter :: DTMFSpecificationProperty -> Value Text
endTimeoutMs :: DTMFSpecificationProperty -> Value Integer
maxLength :: DTMFSpecificationProperty -> Value Integer
haddock_workaround_ :: ()
deletionCharacter :: Value Text
endCharacter :: Value Text
endTimeoutMs :: Value Integer
maxLength :: Value Integer
..}
    = DTMFSpecificationProperty {deletionCharacter :: Value Text
deletionCharacter = PropertyType "DeletionCharacter" DTMFSpecificationProperty
Value Text
newValue, ()
Value Integer
Value Text
haddock_workaround_ :: ()
endCharacter :: Value Text
endTimeoutMs :: Value Integer
maxLength :: Value Integer
haddock_workaround_ :: ()
endCharacter :: Value Text
endTimeoutMs :: Value Integer
maxLength :: Value Integer
..}
instance Property "EndCharacter" DTMFSpecificationProperty where
  type PropertyType "EndCharacter" DTMFSpecificationProperty = Value Prelude.Text
  set :: PropertyType "EndCharacter" DTMFSpecificationProperty
-> DTMFSpecificationProperty -> DTMFSpecificationProperty
set PropertyType "EndCharacter" DTMFSpecificationProperty
newValue DTMFSpecificationProperty {()
Value Integer
Value Text
haddock_workaround_ :: DTMFSpecificationProperty -> ()
deletionCharacter :: DTMFSpecificationProperty -> Value Text
endCharacter :: DTMFSpecificationProperty -> Value Text
endTimeoutMs :: DTMFSpecificationProperty -> Value Integer
maxLength :: DTMFSpecificationProperty -> Value Integer
haddock_workaround_ :: ()
deletionCharacter :: Value Text
endCharacter :: Value Text
endTimeoutMs :: Value Integer
maxLength :: Value Integer
..}
    = DTMFSpecificationProperty {endCharacter :: Value Text
endCharacter = PropertyType "EndCharacter" DTMFSpecificationProperty
Value Text
newValue, ()
Value Integer
Value Text
haddock_workaround_ :: ()
deletionCharacter :: Value Text
endTimeoutMs :: Value Integer
maxLength :: Value Integer
haddock_workaround_ :: ()
deletionCharacter :: Value Text
endTimeoutMs :: Value Integer
maxLength :: Value Integer
..}
instance Property "EndTimeoutMs" DTMFSpecificationProperty where
  type PropertyType "EndTimeoutMs" DTMFSpecificationProperty = Value Prelude.Integer
  set :: PropertyType "EndTimeoutMs" DTMFSpecificationProperty
-> DTMFSpecificationProperty -> DTMFSpecificationProperty
set PropertyType "EndTimeoutMs" DTMFSpecificationProperty
newValue DTMFSpecificationProperty {()
Value Integer
Value Text
haddock_workaround_ :: DTMFSpecificationProperty -> ()
deletionCharacter :: DTMFSpecificationProperty -> Value Text
endCharacter :: DTMFSpecificationProperty -> Value Text
endTimeoutMs :: DTMFSpecificationProperty -> Value Integer
maxLength :: DTMFSpecificationProperty -> Value Integer
haddock_workaround_ :: ()
deletionCharacter :: Value Text
endCharacter :: Value Text
endTimeoutMs :: Value Integer
maxLength :: Value Integer
..}
    = DTMFSpecificationProperty {endTimeoutMs :: Value Integer
endTimeoutMs = PropertyType "EndTimeoutMs" DTMFSpecificationProperty
Value Integer
newValue, ()
Value Integer
Value Text
haddock_workaround_ :: ()
deletionCharacter :: Value Text
endCharacter :: Value Text
maxLength :: Value Integer
haddock_workaround_ :: ()
deletionCharacter :: Value Text
endCharacter :: Value Text
maxLength :: Value Integer
..}
instance Property "MaxLength" DTMFSpecificationProperty where
  type PropertyType "MaxLength" DTMFSpecificationProperty = Value Prelude.Integer
  set :: PropertyType "MaxLength" DTMFSpecificationProperty
-> DTMFSpecificationProperty -> DTMFSpecificationProperty
set PropertyType "MaxLength" DTMFSpecificationProperty
newValue DTMFSpecificationProperty {()
Value Integer
Value Text
haddock_workaround_ :: DTMFSpecificationProperty -> ()
deletionCharacter :: DTMFSpecificationProperty -> Value Text
endCharacter :: DTMFSpecificationProperty -> Value Text
endTimeoutMs :: DTMFSpecificationProperty -> Value Integer
maxLength :: DTMFSpecificationProperty -> Value Integer
haddock_workaround_ :: ()
deletionCharacter :: Value Text
endCharacter :: Value Text
endTimeoutMs :: Value Integer
maxLength :: Value Integer
..}
    = DTMFSpecificationProperty {maxLength :: Value Integer
maxLength = PropertyType "MaxLength" DTMFSpecificationProperty
Value Integer
newValue, ()
Value Integer
Value Text
haddock_workaround_ :: ()
deletionCharacter :: Value Text
endCharacter :: Value Text
endTimeoutMs :: Value Integer
haddock_workaround_ :: ()
deletionCharacter :: Value Text
endCharacter :: Value Text
endTimeoutMs :: Value Integer
..}