module Stratosphere.Lex.Bot.FulfillmentUpdateResponseSpecificationProperty (
module Exports, FulfillmentUpdateResponseSpecificationProperty(..),
mkFulfillmentUpdateResponseSpecificationProperty
) 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 FulfillmentUpdateResponseSpecificationProperty
=
FulfillmentUpdateResponseSpecificationProperty {FulfillmentUpdateResponseSpecificationProperty -> ()
haddock_workaround_ :: (),
FulfillmentUpdateResponseSpecificationProperty
-> Maybe (Value Bool)
allowInterrupt :: (Prelude.Maybe (Value Prelude.Bool)),
FulfillmentUpdateResponseSpecificationProperty -> Value Integer
frequencyInSeconds :: (Value Prelude.Integer),
FulfillmentUpdateResponseSpecificationProperty
-> [MessageGroupProperty]
messageGroups :: [MessageGroupProperty]}
deriving stock (FulfillmentUpdateResponseSpecificationProperty
-> FulfillmentUpdateResponseSpecificationProperty -> Bool
(FulfillmentUpdateResponseSpecificationProperty
-> FulfillmentUpdateResponseSpecificationProperty -> Bool)
-> (FulfillmentUpdateResponseSpecificationProperty
-> FulfillmentUpdateResponseSpecificationProperty -> Bool)
-> Eq FulfillmentUpdateResponseSpecificationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FulfillmentUpdateResponseSpecificationProperty
-> FulfillmentUpdateResponseSpecificationProperty -> Bool
== :: FulfillmentUpdateResponseSpecificationProperty
-> FulfillmentUpdateResponseSpecificationProperty -> Bool
$c/= :: FulfillmentUpdateResponseSpecificationProperty
-> FulfillmentUpdateResponseSpecificationProperty -> Bool
/= :: FulfillmentUpdateResponseSpecificationProperty
-> FulfillmentUpdateResponseSpecificationProperty -> Bool
Prelude.Eq, Int -> FulfillmentUpdateResponseSpecificationProperty -> ShowS
[FulfillmentUpdateResponseSpecificationProperty] -> ShowS
FulfillmentUpdateResponseSpecificationProperty -> String
(Int -> FulfillmentUpdateResponseSpecificationProperty -> ShowS)
-> (FulfillmentUpdateResponseSpecificationProperty -> String)
-> ([FulfillmentUpdateResponseSpecificationProperty] -> ShowS)
-> Show FulfillmentUpdateResponseSpecificationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FulfillmentUpdateResponseSpecificationProperty -> ShowS
showsPrec :: Int -> FulfillmentUpdateResponseSpecificationProperty -> ShowS
$cshow :: FulfillmentUpdateResponseSpecificationProperty -> String
show :: FulfillmentUpdateResponseSpecificationProperty -> String
$cshowList :: [FulfillmentUpdateResponseSpecificationProperty] -> ShowS
showList :: [FulfillmentUpdateResponseSpecificationProperty] -> ShowS
Prelude.Show)
mkFulfillmentUpdateResponseSpecificationProperty ::
Value Prelude.Integer
-> [MessageGroupProperty]
-> FulfillmentUpdateResponseSpecificationProperty
mkFulfillmentUpdateResponseSpecificationProperty :: Value Integer
-> [MessageGroupProperty]
-> FulfillmentUpdateResponseSpecificationProperty
mkFulfillmentUpdateResponseSpecificationProperty
Value Integer
frequencyInSeconds
[MessageGroupProperty]
messageGroups
= FulfillmentUpdateResponseSpecificationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), frequencyInSeconds :: Value Integer
frequencyInSeconds = Value Integer
frequencyInSeconds,
messageGroups :: [MessageGroupProperty]
messageGroups = [MessageGroupProperty]
messageGroups, allowInterrupt :: Maybe (Value Bool)
allowInterrupt = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FulfillmentUpdateResponseSpecificationProperty where
toResourceProperties :: FulfillmentUpdateResponseSpecificationProperty
-> ResourceProperties
toResourceProperties
FulfillmentUpdateResponseSpecificationProperty {[MessageGroupProperty]
Maybe (Value Bool)
()
Value Integer
haddock_workaround_ :: FulfillmentUpdateResponseSpecificationProperty -> ()
allowInterrupt :: FulfillmentUpdateResponseSpecificationProperty
-> Maybe (Value Bool)
frequencyInSeconds :: FulfillmentUpdateResponseSpecificationProperty -> Value Integer
messageGroups :: FulfillmentUpdateResponseSpecificationProperty
-> [MessageGroupProperty]
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
frequencyInSeconds :: Value Integer
messageGroups :: [MessageGroupProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Lex::Bot.FulfillmentUpdateResponseSpecification",
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
"MessageGroups" 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]
messageGroups]
([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 FulfillmentUpdateResponseSpecificationProperty where
toJSON :: FulfillmentUpdateResponseSpecificationProperty -> Value
toJSON FulfillmentUpdateResponseSpecificationProperty {[MessageGroupProperty]
Maybe (Value Bool)
()
Value Integer
haddock_workaround_ :: FulfillmentUpdateResponseSpecificationProperty -> ()
allowInterrupt :: FulfillmentUpdateResponseSpecificationProperty
-> Maybe (Value Bool)
frequencyInSeconds :: FulfillmentUpdateResponseSpecificationProperty -> Value Integer
messageGroups :: FulfillmentUpdateResponseSpecificationProperty
-> [MessageGroupProperty]
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
frequencyInSeconds :: Value Integer
messageGroups :: [MessageGroupProperty]
..}
= [(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
"MessageGroups" 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]
messageGroups]
([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" FulfillmentUpdateResponseSpecificationProperty where
type PropertyType "AllowInterrupt" FulfillmentUpdateResponseSpecificationProperty = Value Prelude.Bool
set :: PropertyType
"AllowInterrupt" FulfillmentUpdateResponseSpecificationProperty
-> FulfillmentUpdateResponseSpecificationProperty
-> FulfillmentUpdateResponseSpecificationProperty
set PropertyType
"AllowInterrupt" FulfillmentUpdateResponseSpecificationProperty
newValue FulfillmentUpdateResponseSpecificationProperty {[MessageGroupProperty]
Maybe (Value Bool)
()
Value Integer
haddock_workaround_ :: FulfillmentUpdateResponseSpecificationProperty -> ()
allowInterrupt :: FulfillmentUpdateResponseSpecificationProperty
-> Maybe (Value Bool)
frequencyInSeconds :: FulfillmentUpdateResponseSpecificationProperty -> Value Integer
messageGroups :: FulfillmentUpdateResponseSpecificationProperty
-> [MessageGroupProperty]
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
frequencyInSeconds :: Value Integer
messageGroups :: [MessageGroupProperty]
..}
= FulfillmentUpdateResponseSpecificationProperty
{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" FulfillmentUpdateResponseSpecificationProperty
Value Bool
newValue, [MessageGroupProperty]
()
Value Integer
haddock_workaround_ :: ()
frequencyInSeconds :: Value Integer
messageGroups :: [MessageGroupProperty]
haddock_workaround_ :: ()
frequencyInSeconds :: Value Integer
messageGroups :: [MessageGroupProperty]
..}
instance Property "FrequencyInSeconds" FulfillmentUpdateResponseSpecificationProperty where
type PropertyType "FrequencyInSeconds" FulfillmentUpdateResponseSpecificationProperty = Value Prelude.Integer
set :: PropertyType
"FrequencyInSeconds" FulfillmentUpdateResponseSpecificationProperty
-> FulfillmentUpdateResponseSpecificationProperty
-> FulfillmentUpdateResponseSpecificationProperty
set PropertyType
"FrequencyInSeconds" FulfillmentUpdateResponseSpecificationProperty
newValue FulfillmentUpdateResponseSpecificationProperty {[MessageGroupProperty]
Maybe (Value Bool)
()
Value Integer
haddock_workaround_ :: FulfillmentUpdateResponseSpecificationProperty -> ()
allowInterrupt :: FulfillmentUpdateResponseSpecificationProperty
-> Maybe (Value Bool)
frequencyInSeconds :: FulfillmentUpdateResponseSpecificationProperty -> Value Integer
messageGroups :: FulfillmentUpdateResponseSpecificationProperty
-> [MessageGroupProperty]
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
frequencyInSeconds :: Value Integer
messageGroups :: [MessageGroupProperty]
..}
= FulfillmentUpdateResponseSpecificationProperty
{frequencyInSeconds :: Value Integer
frequencyInSeconds = PropertyType
"FrequencyInSeconds" FulfillmentUpdateResponseSpecificationProperty
Value Integer
newValue, [MessageGroupProperty]
Maybe (Value Bool)
()
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
messageGroups :: [MessageGroupProperty]
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
messageGroups :: [MessageGroupProperty]
..}
instance Property "MessageGroups" FulfillmentUpdateResponseSpecificationProperty where
type PropertyType "MessageGroups" FulfillmentUpdateResponseSpecificationProperty = [MessageGroupProperty]
set :: PropertyType
"MessageGroups" FulfillmentUpdateResponseSpecificationProperty
-> FulfillmentUpdateResponseSpecificationProperty
-> FulfillmentUpdateResponseSpecificationProperty
set PropertyType
"MessageGroups" FulfillmentUpdateResponseSpecificationProperty
newValue FulfillmentUpdateResponseSpecificationProperty {[MessageGroupProperty]
Maybe (Value Bool)
()
Value Integer
haddock_workaround_ :: FulfillmentUpdateResponseSpecificationProperty -> ()
allowInterrupt :: FulfillmentUpdateResponseSpecificationProperty
-> Maybe (Value Bool)
frequencyInSeconds :: FulfillmentUpdateResponseSpecificationProperty -> Value Integer
messageGroups :: FulfillmentUpdateResponseSpecificationProperty
-> [MessageGroupProperty]
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
frequencyInSeconds :: Value Integer
messageGroups :: [MessageGroupProperty]
..}
= FulfillmentUpdateResponseSpecificationProperty
{messageGroups :: [MessageGroupProperty]
messageGroups = [MessageGroupProperty]
PropertyType
"MessageGroups" FulfillmentUpdateResponseSpecificationProperty
newValue, Maybe (Value Bool)
()
Value Integer
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
frequencyInSeconds :: Value Integer
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
frequencyInSeconds :: Value Integer
..}