module Stratosphere.Lex.Bot.StillWaitingResponseSpecificationProperty (
module Exports, StillWaitingResponseSpecificationProperty(..),
mkStillWaitingResponseSpecificationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Lex.Bot.MessageGroupProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data StillWaitingResponseSpecificationProperty
=
StillWaitingResponseSpecificationProperty {StillWaitingResponseSpecificationProperty -> ()
haddock_workaround_ :: (),
StillWaitingResponseSpecificationProperty -> Maybe (Value Bool)
allowInterrupt :: (Prelude.Maybe (Value Prelude.Bool)),
StillWaitingResponseSpecificationProperty -> Value Integer
frequencyInSeconds :: (Value Prelude.Integer),
StillWaitingResponseSpecificationProperty -> [MessageGroupProperty]
messageGroupsList :: [MessageGroupProperty],
StillWaitingResponseSpecificationProperty -> Value Integer
timeoutInSeconds :: (Value Prelude.Integer)}
deriving stock (StillWaitingResponseSpecificationProperty
-> StillWaitingResponseSpecificationProperty -> Bool
(StillWaitingResponseSpecificationProperty
-> StillWaitingResponseSpecificationProperty -> Bool)
-> (StillWaitingResponseSpecificationProperty
-> StillWaitingResponseSpecificationProperty -> Bool)
-> Eq StillWaitingResponseSpecificationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: StillWaitingResponseSpecificationProperty
-> StillWaitingResponseSpecificationProperty -> Bool
== :: StillWaitingResponseSpecificationProperty
-> StillWaitingResponseSpecificationProperty -> Bool
$c/= :: StillWaitingResponseSpecificationProperty
-> StillWaitingResponseSpecificationProperty -> Bool
/= :: StillWaitingResponseSpecificationProperty
-> StillWaitingResponseSpecificationProperty -> Bool
Prelude.Eq, Int -> StillWaitingResponseSpecificationProperty -> ShowS
[StillWaitingResponseSpecificationProperty] -> ShowS
StillWaitingResponseSpecificationProperty -> String
(Int -> StillWaitingResponseSpecificationProperty -> ShowS)
-> (StillWaitingResponseSpecificationProperty -> String)
-> ([StillWaitingResponseSpecificationProperty] -> ShowS)
-> Show StillWaitingResponseSpecificationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> StillWaitingResponseSpecificationProperty -> ShowS
showsPrec :: Int -> StillWaitingResponseSpecificationProperty -> ShowS
$cshow :: StillWaitingResponseSpecificationProperty -> String
show :: StillWaitingResponseSpecificationProperty -> String
$cshowList :: [StillWaitingResponseSpecificationProperty] -> ShowS
showList :: [StillWaitingResponseSpecificationProperty] -> ShowS
Prelude.Show)
mkStillWaitingResponseSpecificationProperty ::
Value Prelude.Integer
-> [MessageGroupProperty]
-> Value Prelude.Integer
-> StillWaitingResponseSpecificationProperty
mkStillWaitingResponseSpecificationProperty :: Value Integer
-> [MessageGroupProperty]
-> Value Integer
-> StillWaitingResponseSpecificationProperty
mkStillWaitingResponseSpecificationProperty
Value Integer
frequencyInSeconds
[MessageGroupProperty]
messageGroupsList
Value Integer
timeoutInSeconds
= StillWaitingResponseSpecificationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), frequencyInSeconds :: Value Integer
frequencyInSeconds = Value Integer
frequencyInSeconds,
messageGroupsList :: [MessageGroupProperty]
messageGroupsList = [MessageGroupProperty]
messageGroupsList,
timeoutInSeconds :: Value Integer
timeoutInSeconds = Value Integer
timeoutInSeconds,
allowInterrupt :: Maybe (Value Bool)
allowInterrupt = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties StillWaitingResponseSpecificationProperty where
toResourceProperties :: StillWaitingResponseSpecificationProperty -> ResourceProperties
toResourceProperties StillWaitingResponseSpecificationProperty {[MessageGroupProperty]
Maybe (Value Bool)
()
Value Integer
haddock_workaround_ :: StillWaitingResponseSpecificationProperty -> ()
allowInterrupt :: StillWaitingResponseSpecificationProperty -> Maybe (Value Bool)
frequencyInSeconds :: StillWaitingResponseSpecificationProperty -> Value Integer
messageGroupsList :: StillWaitingResponseSpecificationProperty -> [MessageGroupProperty]
timeoutInSeconds :: StillWaitingResponseSpecificationProperty -> Value Integer
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
frequencyInSeconds :: Value Integer
messageGroupsList :: [MessageGroupProperty]
timeoutInSeconds :: Value Integer
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Lex::Bot.StillWaitingResponseSpecification",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"FrequencyInSeconds" 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
frequencyInSeconds,
Key
"MessageGroupsList" Key -> [MessageGroupProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [MessageGroupProperty]
messageGroupsList,
Key
"TimeoutInSeconds" 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
timeoutInSeconds]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"AllowInterrupt" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
allowInterrupt]))}
instance JSON.ToJSON StillWaitingResponseSpecificationProperty where
toJSON :: StillWaitingResponseSpecificationProperty -> Value
toJSON StillWaitingResponseSpecificationProperty {[MessageGroupProperty]
Maybe (Value Bool)
()
Value Integer
haddock_workaround_ :: StillWaitingResponseSpecificationProperty -> ()
allowInterrupt :: StillWaitingResponseSpecificationProperty -> Maybe (Value Bool)
frequencyInSeconds :: StillWaitingResponseSpecificationProperty -> Value Integer
messageGroupsList :: StillWaitingResponseSpecificationProperty -> [MessageGroupProperty]
timeoutInSeconds :: StillWaitingResponseSpecificationProperty -> Value Integer
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
frequencyInSeconds :: Value Integer
messageGroupsList :: [MessageGroupProperty]
timeoutInSeconds :: Value Integer
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"FrequencyInSeconds" 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
frequencyInSeconds,
Key
"MessageGroupsList" Key -> [MessageGroupProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [MessageGroupProperty]
messageGroupsList,
Key
"TimeoutInSeconds" 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
timeoutInSeconds]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"AllowInterrupt" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
allowInterrupt])))
instance Property "AllowInterrupt" StillWaitingResponseSpecificationProperty where
type PropertyType "AllowInterrupt" StillWaitingResponseSpecificationProperty = Value Prelude.Bool
set :: PropertyType
"AllowInterrupt" StillWaitingResponseSpecificationProperty
-> StillWaitingResponseSpecificationProperty
-> StillWaitingResponseSpecificationProperty
set PropertyType
"AllowInterrupt" StillWaitingResponseSpecificationProperty
newValue StillWaitingResponseSpecificationProperty {[MessageGroupProperty]
Maybe (Value Bool)
()
Value Integer
haddock_workaround_ :: StillWaitingResponseSpecificationProperty -> ()
allowInterrupt :: StillWaitingResponseSpecificationProperty -> Maybe (Value Bool)
frequencyInSeconds :: StillWaitingResponseSpecificationProperty -> Value Integer
messageGroupsList :: StillWaitingResponseSpecificationProperty -> [MessageGroupProperty]
timeoutInSeconds :: StillWaitingResponseSpecificationProperty -> Value Integer
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
frequencyInSeconds :: Value Integer
messageGroupsList :: [MessageGroupProperty]
timeoutInSeconds :: Value Integer
..}
= StillWaitingResponseSpecificationProperty
{allowInterrupt :: Maybe (Value Bool)
allowInterrupt = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"AllowInterrupt" StillWaitingResponseSpecificationProperty
Value Bool
newValue, [MessageGroupProperty]
()
Value Integer
haddock_workaround_ :: ()
frequencyInSeconds :: Value Integer
messageGroupsList :: [MessageGroupProperty]
timeoutInSeconds :: Value Integer
haddock_workaround_ :: ()
frequencyInSeconds :: Value Integer
messageGroupsList :: [MessageGroupProperty]
timeoutInSeconds :: Value Integer
..}
instance Property "FrequencyInSeconds" StillWaitingResponseSpecificationProperty where
type PropertyType "FrequencyInSeconds" StillWaitingResponseSpecificationProperty = Value Prelude.Integer
set :: PropertyType
"FrequencyInSeconds" StillWaitingResponseSpecificationProperty
-> StillWaitingResponseSpecificationProperty
-> StillWaitingResponseSpecificationProperty
set PropertyType
"FrequencyInSeconds" StillWaitingResponseSpecificationProperty
newValue StillWaitingResponseSpecificationProperty {[MessageGroupProperty]
Maybe (Value Bool)
()
Value Integer
haddock_workaround_ :: StillWaitingResponseSpecificationProperty -> ()
allowInterrupt :: StillWaitingResponseSpecificationProperty -> Maybe (Value Bool)
frequencyInSeconds :: StillWaitingResponseSpecificationProperty -> Value Integer
messageGroupsList :: StillWaitingResponseSpecificationProperty -> [MessageGroupProperty]
timeoutInSeconds :: StillWaitingResponseSpecificationProperty -> Value Integer
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
frequencyInSeconds :: Value Integer
messageGroupsList :: [MessageGroupProperty]
timeoutInSeconds :: Value Integer
..}
= StillWaitingResponseSpecificationProperty
{frequencyInSeconds :: Value Integer
frequencyInSeconds = PropertyType
"FrequencyInSeconds" StillWaitingResponseSpecificationProperty
Value Integer
newValue, [MessageGroupProperty]
Maybe (Value Bool)
()
Value Integer
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
messageGroupsList :: [MessageGroupProperty]
timeoutInSeconds :: Value Integer
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
messageGroupsList :: [MessageGroupProperty]
timeoutInSeconds :: Value Integer
..}
instance Property "MessageGroupsList" StillWaitingResponseSpecificationProperty where
type PropertyType "MessageGroupsList" StillWaitingResponseSpecificationProperty = [MessageGroupProperty]
set :: PropertyType
"MessageGroupsList" StillWaitingResponseSpecificationProperty
-> StillWaitingResponseSpecificationProperty
-> StillWaitingResponseSpecificationProperty
set PropertyType
"MessageGroupsList" StillWaitingResponseSpecificationProperty
newValue StillWaitingResponseSpecificationProperty {[MessageGroupProperty]
Maybe (Value Bool)
()
Value Integer
haddock_workaround_ :: StillWaitingResponseSpecificationProperty -> ()
allowInterrupt :: StillWaitingResponseSpecificationProperty -> Maybe (Value Bool)
frequencyInSeconds :: StillWaitingResponseSpecificationProperty -> Value Integer
messageGroupsList :: StillWaitingResponseSpecificationProperty -> [MessageGroupProperty]
timeoutInSeconds :: StillWaitingResponseSpecificationProperty -> Value Integer
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
frequencyInSeconds :: Value Integer
messageGroupsList :: [MessageGroupProperty]
timeoutInSeconds :: Value Integer
..}
= StillWaitingResponseSpecificationProperty
{messageGroupsList :: [MessageGroupProperty]
messageGroupsList = [MessageGroupProperty]
PropertyType
"MessageGroupsList" StillWaitingResponseSpecificationProperty
newValue, Maybe (Value Bool)
()
Value Integer
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
frequencyInSeconds :: Value Integer
timeoutInSeconds :: Value Integer
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
frequencyInSeconds :: Value Integer
timeoutInSeconds :: Value Integer
..}
instance Property "TimeoutInSeconds" StillWaitingResponseSpecificationProperty where
type PropertyType "TimeoutInSeconds" StillWaitingResponseSpecificationProperty = Value Prelude.Integer
set :: PropertyType
"TimeoutInSeconds" StillWaitingResponseSpecificationProperty
-> StillWaitingResponseSpecificationProperty
-> StillWaitingResponseSpecificationProperty
set PropertyType
"TimeoutInSeconds" StillWaitingResponseSpecificationProperty
newValue StillWaitingResponseSpecificationProperty {[MessageGroupProperty]
Maybe (Value Bool)
()
Value Integer
haddock_workaround_ :: StillWaitingResponseSpecificationProperty -> ()
allowInterrupt :: StillWaitingResponseSpecificationProperty -> Maybe (Value Bool)
frequencyInSeconds :: StillWaitingResponseSpecificationProperty -> Value Integer
messageGroupsList :: StillWaitingResponseSpecificationProperty -> [MessageGroupProperty]
timeoutInSeconds :: StillWaitingResponseSpecificationProperty -> Value Integer
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
frequencyInSeconds :: Value Integer
messageGroupsList :: [MessageGroupProperty]
timeoutInSeconds :: Value Integer
..}
= StillWaitingResponseSpecificationProperty
{timeoutInSeconds :: Value Integer
timeoutInSeconds = PropertyType
"TimeoutInSeconds" StillWaitingResponseSpecificationProperty
Value Integer
newValue, [MessageGroupProperty]
Maybe (Value Bool)
()
Value Integer
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
frequencyInSeconds :: Value Integer
messageGroupsList :: [MessageGroupProperty]
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
frequencyInSeconds :: Value Integer
messageGroupsList :: [MessageGroupProperty]
..}