module Stratosphere.Lex.Bot.FulfillmentStartResponseSpecificationProperty (
        module Exports, FulfillmentStartResponseSpecificationProperty(..),
        mkFulfillmentStartResponseSpecificationProperty
    ) 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 FulfillmentStartResponseSpecificationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-fulfillmentstartresponsespecification.html>
    FulfillmentStartResponseSpecificationProperty {FulfillmentStartResponseSpecificationProperty -> ()
haddock_workaround_ :: (),
                                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-fulfillmentstartresponsespecification.html#cfn-lex-bot-fulfillmentstartresponsespecification-allowinterrupt>
                                                   FulfillmentStartResponseSpecificationProperty -> Maybe (Value Bool)
allowInterrupt :: (Prelude.Maybe (Value Prelude.Bool)),
                                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-fulfillmentstartresponsespecification.html#cfn-lex-bot-fulfillmentstartresponsespecification-delayinseconds>
                                                   FulfillmentStartResponseSpecificationProperty -> Value Integer
delayInSeconds :: (Value Prelude.Integer),
                                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-fulfillmentstartresponsespecification.html#cfn-lex-bot-fulfillmentstartresponsespecification-messagegroups>
                                                   FulfillmentStartResponseSpecificationProperty
-> [MessageGroupProperty]
messageGroups :: [MessageGroupProperty]}
  deriving stock (FulfillmentStartResponseSpecificationProperty
-> FulfillmentStartResponseSpecificationProperty -> Bool
(FulfillmentStartResponseSpecificationProperty
 -> FulfillmentStartResponseSpecificationProperty -> Bool)
-> (FulfillmentStartResponseSpecificationProperty
    -> FulfillmentStartResponseSpecificationProperty -> Bool)
-> Eq FulfillmentStartResponseSpecificationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FulfillmentStartResponseSpecificationProperty
-> FulfillmentStartResponseSpecificationProperty -> Bool
== :: FulfillmentStartResponseSpecificationProperty
-> FulfillmentStartResponseSpecificationProperty -> Bool
$c/= :: FulfillmentStartResponseSpecificationProperty
-> FulfillmentStartResponseSpecificationProperty -> Bool
/= :: FulfillmentStartResponseSpecificationProperty
-> FulfillmentStartResponseSpecificationProperty -> Bool
Prelude.Eq, Int -> FulfillmentStartResponseSpecificationProperty -> ShowS
[FulfillmentStartResponseSpecificationProperty] -> ShowS
FulfillmentStartResponseSpecificationProperty -> String
(Int -> FulfillmentStartResponseSpecificationProperty -> ShowS)
-> (FulfillmentStartResponseSpecificationProperty -> String)
-> ([FulfillmentStartResponseSpecificationProperty] -> ShowS)
-> Show FulfillmentStartResponseSpecificationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FulfillmentStartResponseSpecificationProperty -> ShowS
showsPrec :: Int -> FulfillmentStartResponseSpecificationProperty -> ShowS
$cshow :: FulfillmentStartResponseSpecificationProperty -> String
show :: FulfillmentStartResponseSpecificationProperty -> String
$cshowList :: [FulfillmentStartResponseSpecificationProperty] -> ShowS
showList :: [FulfillmentStartResponseSpecificationProperty] -> ShowS
Prelude.Show)
mkFulfillmentStartResponseSpecificationProperty ::
  Value Prelude.Integer
  -> [MessageGroupProperty]
     -> FulfillmentStartResponseSpecificationProperty
mkFulfillmentStartResponseSpecificationProperty :: Value Integer
-> [MessageGroupProperty]
-> FulfillmentStartResponseSpecificationProperty
mkFulfillmentStartResponseSpecificationProperty
  Value Integer
delayInSeconds
  [MessageGroupProperty]
messageGroups
  = FulfillmentStartResponseSpecificationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), delayInSeconds :: Value Integer
delayInSeconds = Value Integer
delayInSeconds,
       messageGroups :: [MessageGroupProperty]
messageGroups = [MessageGroupProperty]
messageGroups, allowInterrupt :: Maybe (Value Bool)
allowInterrupt = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FulfillmentStartResponseSpecificationProperty where
  toResourceProperties :: FulfillmentStartResponseSpecificationProperty -> ResourceProperties
toResourceProperties
    FulfillmentStartResponseSpecificationProperty {[MessageGroupProperty]
Maybe (Value Bool)
()
Value Integer
haddock_workaround_ :: FulfillmentStartResponseSpecificationProperty -> ()
allowInterrupt :: FulfillmentStartResponseSpecificationProperty -> Maybe (Value Bool)
delayInSeconds :: FulfillmentStartResponseSpecificationProperty -> Value Integer
messageGroups :: FulfillmentStartResponseSpecificationProperty
-> [MessageGroupProperty]
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
delayInSeconds :: Value Integer
messageGroups :: [MessageGroupProperty]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Lex::Bot.FulfillmentStartResponseSpecification",
         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
"DelayInSeconds" 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
delayInSeconds,
                            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 FulfillmentStartResponseSpecificationProperty where
  toJSON :: FulfillmentStartResponseSpecificationProperty -> Value
toJSON FulfillmentStartResponseSpecificationProperty {[MessageGroupProperty]
Maybe (Value Bool)
()
Value Integer
haddock_workaround_ :: FulfillmentStartResponseSpecificationProperty -> ()
allowInterrupt :: FulfillmentStartResponseSpecificationProperty -> Maybe (Value Bool)
delayInSeconds :: FulfillmentStartResponseSpecificationProperty -> Value Integer
messageGroups :: FulfillmentStartResponseSpecificationProperty
-> [MessageGroupProperty]
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
delayInSeconds :: 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
"DelayInSeconds" 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
delayInSeconds,
               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" FulfillmentStartResponseSpecificationProperty where
  type PropertyType "AllowInterrupt" FulfillmentStartResponseSpecificationProperty = Value Prelude.Bool
  set :: PropertyType
  "AllowInterrupt" FulfillmentStartResponseSpecificationProperty
-> FulfillmentStartResponseSpecificationProperty
-> FulfillmentStartResponseSpecificationProperty
set PropertyType
  "AllowInterrupt" FulfillmentStartResponseSpecificationProperty
newValue FulfillmentStartResponseSpecificationProperty {[MessageGroupProperty]
Maybe (Value Bool)
()
Value Integer
haddock_workaround_ :: FulfillmentStartResponseSpecificationProperty -> ()
allowInterrupt :: FulfillmentStartResponseSpecificationProperty -> Maybe (Value Bool)
delayInSeconds :: FulfillmentStartResponseSpecificationProperty -> Value Integer
messageGroups :: FulfillmentStartResponseSpecificationProperty
-> [MessageGroupProperty]
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
delayInSeconds :: Value Integer
messageGroups :: [MessageGroupProperty]
..}
    = FulfillmentStartResponseSpecificationProperty
        {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" FulfillmentStartResponseSpecificationProperty
Value Bool
newValue, [MessageGroupProperty]
()
Value Integer
haddock_workaround_ :: ()
delayInSeconds :: Value Integer
messageGroups :: [MessageGroupProperty]
haddock_workaround_ :: ()
delayInSeconds :: Value Integer
messageGroups :: [MessageGroupProperty]
..}
instance Property "DelayInSeconds" FulfillmentStartResponseSpecificationProperty where
  type PropertyType "DelayInSeconds" FulfillmentStartResponseSpecificationProperty = Value Prelude.Integer
  set :: PropertyType
  "DelayInSeconds" FulfillmentStartResponseSpecificationProperty
-> FulfillmentStartResponseSpecificationProperty
-> FulfillmentStartResponseSpecificationProperty
set PropertyType
  "DelayInSeconds" FulfillmentStartResponseSpecificationProperty
newValue FulfillmentStartResponseSpecificationProperty {[MessageGroupProperty]
Maybe (Value Bool)
()
Value Integer
haddock_workaround_ :: FulfillmentStartResponseSpecificationProperty -> ()
allowInterrupt :: FulfillmentStartResponseSpecificationProperty -> Maybe (Value Bool)
delayInSeconds :: FulfillmentStartResponseSpecificationProperty -> Value Integer
messageGroups :: FulfillmentStartResponseSpecificationProperty
-> [MessageGroupProperty]
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
delayInSeconds :: Value Integer
messageGroups :: [MessageGroupProperty]
..}
    = FulfillmentStartResponseSpecificationProperty
        {delayInSeconds :: Value Integer
delayInSeconds = PropertyType
  "DelayInSeconds" FulfillmentStartResponseSpecificationProperty
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" FulfillmentStartResponseSpecificationProperty where
  type PropertyType "MessageGroups" FulfillmentStartResponseSpecificationProperty = [MessageGroupProperty]
  set :: PropertyType
  "MessageGroups" FulfillmentStartResponseSpecificationProperty
-> FulfillmentStartResponseSpecificationProperty
-> FulfillmentStartResponseSpecificationProperty
set PropertyType
  "MessageGroups" FulfillmentStartResponseSpecificationProperty
newValue FulfillmentStartResponseSpecificationProperty {[MessageGroupProperty]
Maybe (Value Bool)
()
Value Integer
haddock_workaround_ :: FulfillmentStartResponseSpecificationProperty -> ()
allowInterrupt :: FulfillmentStartResponseSpecificationProperty -> Maybe (Value Bool)
delayInSeconds :: FulfillmentStartResponseSpecificationProperty -> Value Integer
messageGroups :: FulfillmentStartResponseSpecificationProperty
-> [MessageGroupProperty]
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
delayInSeconds :: Value Integer
messageGroups :: [MessageGroupProperty]
..}
    = FulfillmentStartResponseSpecificationProperty
        {messageGroups :: [MessageGroupProperty]
messageGroups = [MessageGroupProperty]
PropertyType
  "MessageGroups" FulfillmentStartResponseSpecificationProperty
newValue, Maybe (Value Bool)
()
Value Integer
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
delayInSeconds :: Value Integer
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
delayInSeconds :: Value Integer
..}