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