module Stratosphere.Lex.Bot.AllowedInputTypesProperty (
AllowedInputTypesProperty(..), mkAllowedInputTypesProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AllowedInputTypesProperty
=
AllowedInputTypesProperty {AllowedInputTypesProperty -> ()
haddock_workaround_ :: (),
AllowedInputTypesProperty -> Value Bool
allowAudioInput :: (Value Prelude.Bool),
AllowedInputTypesProperty -> Value Bool
allowDTMFInput :: (Value Prelude.Bool)}
deriving stock (AllowedInputTypesProperty -> AllowedInputTypesProperty -> Bool
(AllowedInputTypesProperty -> AllowedInputTypesProperty -> Bool)
-> (AllowedInputTypesProperty -> AllowedInputTypesProperty -> Bool)
-> Eq AllowedInputTypesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AllowedInputTypesProperty -> AllowedInputTypesProperty -> Bool
== :: AllowedInputTypesProperty -> AllowedInputTypesProperty -> Bool
$c/= :: AllowedInputTypesProperty -> AllowedInputTypesProperty -> Bool
/= :: AllowedInputTypesProperty -> AllowedInputTypesProperty -> Bool
Prelude.Eq, Int -> AllowedInputTypesProperty -> ShowS
[AllowedInputTypesProperty] -> ShowS
AllowedInputTypesProperty -> String
(Int -> AllowedInputTypesProperty -> ShowS)
-> (AllowedInputTypesProperty -> String)
-> ([AllowedInputTypesProperty] -> ShowS)
-> Show AllowedInputTypesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AllowedInputTypesProperty -> ShowS
showsPrec :: Int -> AllowedInputTypesProperty -> ShowS
$cshow :: AllowedInputTypesProperty -> String
show :: AllowedInputTypesProperty -> String
$cshowList :: [AllowedInputTypesProperty] -> ShowS
showList :: [AllowedInputTypesProperty] -> ShowS
Prelude.Show)
mkAllowedInputTypesProperty ::
Value Prelude.Bool
-> Value Prelude.Bool -> AllowedInputTypesProperty
mkAllowedInputTypesProperty :: Value Bool -> Value Bool -> AllowedInputTypesProperty
mkAllowedInputTypesProperty Value Bool
allowAudioInput Value Bool
allowDTMFInput
= AllowedInputTypesProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), allowAudioInput :: Value Bool
allowAudioInput = Value Bool
allowAudioInput,
allowDTMFInput :: Value Bool
allowDTMFInput = Value Bool
allowDTMFInput}
instance ToResourceProperties AllowedInputTypesProperty where
toResourceProperties :: AllowedInputTypesProperty -> ResourceProperties
toResourceProperties AllowedInputTypesProperty {()
Value Bool
haddock_workaround_ :: AllowedInputTypesProperty -> ()
allowAudioInput :: AllowedInputTypesProperty -> Value Bool
allowDTMFInput :: AllowedInputTypesProperty -> Value Bool
haddock_workaround_ :: ()
allowAudioInput :: Value Bool
allowDTMFInput :: Value Bool
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Lex::Bot.AllowedInputTypes",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"AllowAudioInput" Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Bool
allowAudioInput,
Key
"AllowDTMFInput" Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Bool
allowDTMFInput]}
instance JSON.ToJSON AllowedInputTypesProperty where
toJSON :: AllowedInputTypesProperty -> Value
toJSON AllowedInputTypesProperty {()
Value Bool
haddock_workaround_ :: AllowedInputTypesProperty -> ()
allowAudioInput :: AllowedInputTypesProperty -> Value Bool
allowDTMFInput :: AllowedInputTypesProperty -> Value Bool
haddock_workaround_ :: ()
allowAudioInput :: Value Bool
allowDTMFInput :: Value Bool
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"AllowAudioInput" Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Bool
allowAudioInput,
Key
"AllowDTMFInput" Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Bool
allowDTMFInput]
instance Property "AllowAudioInput" AllowedInputTypesProperty where
type PropertyType "AllowAudioInput" AllowedInputTypesProperty = Value Prelude.Bool
set :: PropertyType "AllowAudioInput" AllowedInputTypesProperty
-> AllowedInputTypesProperty -> AllowedInputTypesProperty
set PropertyType "AllowAudioInput" AllowedInputTypesProperty
newValue AllowedInputTypesProperty {()
Value Bool
haddock_workaround_ :: AllowedInputTypesProperty -> ()
allowAudioInput :: AllowedInputTypesProperty -> Value Bool
allowDTMFInput :: AllowedInputTypesProperty -> Value Bool
haddock_workaround_ :: ()
allowAudioInput :: Value Bool
allowDTMFInput :: Value Bool
..}
= AllowedInputTypesProperty {allowAudioInput :: Value Bool
allowAudioInput = PropertyType "AllowAudioInput" AllowedInputTypesProperty
Value Bool
newValue, ()
Value Bool
haddock_workaround_ :: ()
allowDTMFInput :: Value Bool
haddock_workaround_ :: ()
allowDTMFInput :: Value Bool
..}
instance Property "AllowDTMFInput" AllowedInputTypesProperty where
type PropertyType "AllowDTMFInput" AllowedInputTypesProperty = Value Prelude.Bool
set :: PropertyType "AllowDTMFInput" AllowedInputTypesProperty
-> AllowedInputTypesProperty -> AllowedInputTypesProperty
set PropertyType "AllowDTMFInput" AllowedInputTypesProperty
newValue AllowedInputTypesProperty {()
Value Bool
haddock_workaround_ :: AllowedInputTypesProperty -> ()
allowAudioInput :: AllowedInputTypesProperty -> Value Bool
allowDTMFInput :: AllowedInputTypesProperty -> Value Bool
haddock_workaround_ :: ()
allowAudioInput :: Value Bool
allowDTMFInput :: Value Bool
..}
= AllowedInputTypesProperty {allowDTMFInput :: Value Bool
allowDTMFInput = PropertyType "AllowDTMFInput" AllowedInputTypesProperty
Value Bool
newValue, ()
Value Bool
haddock_workaround_ :: ()
allowAudioInput :: Value Bool
haddock_workaround_ :: ()
allowAudioInput :: Value Bool
..}