module Stratosphere.Lex.Bot.FulfillmentUpdatesSpecificationProperty (
        module Exports, FulfillmentUpdatesSpecificationProperty(..),
        mkFulfillmentUpdatesSpecificationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Lex.Bot.FulfillmentStartResponseSpecificationProperty as Exports
import {-# SOURCE #-} Stratosphere.Lex.Bot.FulfillmentUpdateResponseSpecificationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FulfillmentUpdatesSpecificationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-fulfillmentupdatesspecification.html>
    FulfillmentUpdatesSpecificationProperty {FulfillmentUpdatesSpecificationProperty -> ()
haddock_workaround_ :: (),
                                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-fulfillmentupdatesspecification.html#cfn-lex-bot-fulfillmentupdatesspecification-active>
                                             FulfillmentUpdatesSpecificationProperty -> Value Bool
active :: (Value Prelude.Bool),
                                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-fulfillmentupdatesspecification.html#cfn-lex-bot-fulfillmentupdatesspecification-startresponse>
                                             FulfillmentUpdatesSpecificationProperty
-> Maybe FulfillmentStartResponseSpecificationProperty
startResponse :: (Prelude.Maybe FulfillmentStartResponseSpecificationProperty),
                                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-fulfillmentupdatesspecification.html#cfn-lex-bot-fulfillmentupdatesspecification-timeoutinseconds>
                                             FulfillmentUpdatesSpecificationProperty -> Maybe (Value Integer)
timeoutInSeconds :: (Prelude.Maybe (Value Prelude.Integer)),
                                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-fulfillmentupdatesspecification.html#cfn-lex-bot-fulfillmentupdatesspecification-updateresponse>
                                             FulfillmentUpdatesSpecificationProperty
-> Maybe FulfillmentUpdateResponseSpecificationProperty
updateResponse :: (Prelude.Maybe FulfillmentUpdateResponseSpecificationProperty)}
  deriving stock (FulfillmentUpdatesSpecificationProperty
-> FulfillmentUpdatesSpecificationProperty -> Bool
(FulfillmentUpdatesSpecificationProperty
 -> FulfillmentUpdatesSpecificationProperty -> Bool)
-> (FulfillmentUpdatesSpecificationProperty
    -> FulfillmentUpdatesSpecificationProperty -> Bool)
-> Eq FulfillmentUpdatesSpecificationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FulfillmentUpdatesSpecificationProperty
-> FulfillmentUpdatesSpecificationProperty -> Bool
== :: FulfillmentUpdatesSpecificationProperty
-> FulfillmentUpdatesSpecificationProperty -> Bool
$c/= :: FulfillmentUpdatesSpecificationProperty
-> FulfillmentUpdatesSpecificationProperty -> Bool
/= :: FulfillmentUpdatesSpecificationProperty
-> FulfillmentUpdatesSpecificationProperty -> Bool
Prelude.Eq, Int -> FulfillmentUpdatesSpecificationProperty -> ShowS
[FulfillmentUpdatesSpecificationProperty] -> ShowS
FulfillmentUpdatesSpecificationProperty -> String
(Int -> FulfillmentUpdatesSpecificationProperty -> ShowS)
-> (FulfillmentUpdatesSpecificationProperty -> String)
-> ([FulfillmentUpdatesSpecificationProperty] -> ShowS)
-> Show FulfillmentUpdatesSpecificationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FulfillmentUpdatesSpecificationProperty -> ShowS
showsPrec :: Int -> FulfillmentUpdatesSpecificationProperty -> ShowS
$cshow :: FulfillmentUpdatesSpecificationProperty -> String
show :: FulfillmentUpdatesSpecificationProperty -> String
$cshowList :: [FulfillmentUpdatesSpecificationProperty] -> ShowS
showList :: [FulfillmentUpdatesSpecificationProperty] -> ShowS
Prelude.Show)
mkFulfillmentUpdatesSpecificationProperty ::
  Value Prelude.Bool -> FulfillmentUpdatesSpecificationProperty
mkFulfillmentUpdatesSpecificationProperty :: Value Bool -> FulfillmentUpdatesSpecificationProperty
mkFulfillmentUpdatesSpecificationProperty Value Bool
active
  = FulfillmentUpdatesSpecificationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), active :: Value Bool
active = Value Bool
active,
       startResponse :: Maybe FulfillmentStartResponseSpecificationProperty
startResponse = Maybe FulfillmentStartResponseSpecificationProperty
forall a. Maybe a
Prelude.Nothing,
       timeoutInSeconds :: Maybe (Value Integer)
timeoutInSeconds = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
       updateResponse :: Maybe FulfillmentUpdateResponseSpecificationProperty
updateResponse = Maybe FulfillmentUpdateResponseSpecificationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FulfillmentUpdatesSpecificationProperty where
  toResourceProperties :: FulfillmentUpdatesSpecificationProperty -> ResourceProperties
toResourceProperties FulfillmentUpdatesSpecificationProperty {Maybe (Value Integer)
Maybe FulfillmentUpdateResponseSpecificationProperty
Maybe FulfillmentStartResponseSpecificationProperty
()
Value Bool
haddock_workaround_ :: FulfillmentUpdatesSpecificationProperty -> ()
active :: FulfillmentUpdatesSpecificationProperty -> Value Bool
startResponse :: FulfillmentUpdatesSpecificationProperty
-> Maybe FulfillmentStartResponseSpecificationProperty
timeoutInSeconds :: FulfillmentUpdatesSpecificationProperty -> Maybe (Value Integer)
updateResponse :: FulfillmentUpdatesSpecificationProperty
-> Maybe FulfillmentUpdateResponseSpecificationProperty
haddock_workaround_ :: ()
active :: Value Bool
startResponse :: Maybe FulfillmentStartResponseSpecificationProperty
timeoutInSeconds :: Maybe (Value Integer)
updateResponse :: Maybe FulfillmentUpdateResponseSpecificationProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Lex::Bot.FulfillmentUpdatesSpecification",
         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
"Active" 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
active]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key
-> FulfillmentStartResponseSpecificationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StartResponse" (FulfillmentStartResponseSpecificationProperty -> (Key, Value))
-> Maybe FulfillmentStartResponseSpecificationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FulfillmentStartResponseSpecificationProperty
startResponse,
                               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..=) Key
"TimeoutInSeconds" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
timeoutInSeconds,
                               Key
-> FulfillmentUpdateResponseSpecificationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"UpdateResponse" (FulfillmentUpdateResponseSpecificationProperty -> (Key, Value))
-> Maybe FulfillmentUpdateResponseSpecificationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FulfillmentUpdateResponseSpecificationProperty
updateResponse]))}
instance JSON.ToJSON FulfillmentUpdatesSpecificationProperty where
  toJSON :: FulfillmentUpdatesSpecificationProperty -> Value
toJSON FulfillmentUpdatesSpecificationProperty {Maybe (Value Integer)
Maybe FulfillmentUpdateResponseSpecificationProperty
Maybe FulfillmentStartResponseSpecificationProperty
()
Value Bool
haddock_workaround_ :: FulfillmentUpdatesSpecificationProperty -> ()
active :: FulfillmentUpdatesSpecificationProperty -> Value Bool
startResponse :: FulfillmentUpdatesSpecificationProperty
-> Maybe FulfillmentStartResponseSpecificationProperty
timeoutInSeconds :: FulfillmentUpdatesSpecificationProperty -> Maybe (Value Integer)
updateResponse :: FulfillmentUpdatesSpecificationProperty
-> Maybe FulfillmentUpdateResponseSpecificationProperty
haddock_workaround_ :: ()
active :: Value Bool
startResponse :: Maybe FulfillmentStartResponseSpecificationProperty
timeoutInSeconds :: Maybe (Value Integer)
updateResponse :: Maybe FulfillmentUpdateResponseSpecificationProperty
..}
    = [(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
"Active" 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
active]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key
-> FulfillmentStartResponseSpecificationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StartResponse" (FulfillmentStartResponseSpecificationProperty -> (Key, Value))
-> Maybe FulfillmentStartResponseSpecificationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FulfillmentStartResponseSpecificationProperty
startResponse,
                  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..=) Key
"TimeoutInSeconds" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
timeoutInSeconds,
                  Key
-> FulfillmentUpdateResponseSpecificationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"UpdateResponse" (FulfillmentUpdateResponseSpecificationProperty -> (Key, Value))
-> Maybe FulfillmentUpdateResponseSpecificationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FulfillmentUpdateResponseSpecificationProperty
updateResponse])))
instance Property "Active" FulfillmentUpdatesSpecificationProperty where
  type PropertyType "Active" FulfillmentUpdatesSpecificationProperty = Value Prelude.Bool
  set :: PropertyType "Active" FulfillmentUpdatesSpecificationProperty
-> FulfillmentUpdatesSpecificationProperty
-> FulfillmentUpdatesSpecificationProperty
set PropertyType "Active" FulfillmentUpdatesSpecificationProperty
newValue FulfillmentUpdatesSpecificationProperty {Maybe (Value Integer)
Maybe FulfillmentUpdateResponseSpecificationProperty
Maybe FulfillmentStartResponseSpecificationProperty
()
Value Bool
haddock_workaround_ :: FulfillmentUpdatesSpecificationProperty -> ()
active :: FulfillmentUpdatesSpecificationProperty -> Value Bool
startResponse :: FulfillmentUpdatesSpecificationProperty
-> Maybe FulfillmentStartResponseSpecificationProperty
timeoutInSeconds :: FulfillmentUpdatesSpecificationProperty -> Maybe (Value Integer)
updateResponse :: FulfillmentUpdatesSpecificationProperty
-> Maybe FulfillmentUpdateResponseSpecificationProperty
haddock_workaround_ :: ()
active :: Value Bool
startResponse :: Maybe FulfillmentStartResponseSpecificationProperty
timeoutInSeconds :: Maybe (Value Integer)
updateResponse :: Maybe FulfillmentUpdateResponseSpecificationProperty
..}
    = FulfillmentUpdatesSpecificationProperty {active :: Value Bool
active = PropertyType "Active" FulfillmentUpdatesSpecificationProperty
Value Bool
newValue, Maybe (Value Integer)
Maybe FulfillmentUpdateResponseSpecificationProperty
Maybe FulfillmentStartResponseSpecificationProperty
()
haddock_workaround_ :: ()
startResponse :: Maybe FulfillmentStartResponseSpecificationProperty
timeoutInSeconds :: Maybe (Value Integer)
updateResponse :: Maybe FulfillmentUpdateResponseSpecificationProperty
haddock_workaround_ :: ()
startResponse :: Maybe FulfillmentStartResponseSpecificationProperty
timeoutInSeconds :: Maybe (Value Integer)
updateResponse :: Maybe FulfillmentUpdateResponseSpecificationProperty
..}
instance Property "StartResponse" FulfillmentUpdatesSpecificationProperty where
  type PropertyType "StartResponse" FulfillmentUpdatesSpecificationProperty = FulfillmentStartResponseSpecificationProperty
  set :: PropertyType
  "StartResponse" FulfillmentUpdatesSpecificationProperty
-> FulfillmentUpdatesSpecificationProperty
-> FulfillmentUpdatesSpecificationProperty
set PropertyType
  "StartResponse" FulfillmentUpdatesSpecificationProperty
newValue FulfillmentUpdatesSpecificationProperty {Maybe (Value Integer)
Maybe FulfillmentUpdateResponseSpecificationProperty
Maybe FulfillmentStartResponseSpecificationProperty
()
Value Bool
haddock_workaround_ :: FulfillmentUpdatesSpecificationProperty -> ()
active :: FulfillmentUpdatesSpecificationProperty -> Value Bool
startResponse :: FulfillmentUpdatesSpecificationProperty
-> Maybe FulfillmentStartResponseSpecificationProperty
timeoutInSeconds :: FulfillmentUpdatesSpecificationProperty -> Maybe (Value Integer)
updateResponse :: FulfillmentUpdatesSpecificationProperty
-> Maybe FulfillmentUpdateResponseSpecificationProperty
haddock_workaround_ :: ()
active :: Value Bool
startResponse :: Maybe FulfillmentStartResponseSpecificationProperty
timeoutInSeconds :: Maybe (Value Integer)
updateResponse :: Maybe FulfillmentUpdateResponseSpecificationProperty
..}
    = FulfillmentUpdatesSpecificationProperty
        {startResponse :: Maybe FulfillmentStartResponseSpecificationProperty
startResponse = FulfillmentStartResponseSpecificationProperty
-> Maybe FulfillmentStartResponseSpecificationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "StartResponse" FulfillmentUpdatesSpecificationProperty
FulfillmentStartResponseSpecificationProperty
newValue, Maybe (Value Integer)
Maybe FulfillmentUpdateResponseSpecificationProperty
()
Value Bool
haddock_workaround_ :: ()
active :: Value Bool
timeoutInSeconds :: Maybe (Value Integer)
updateResponse :: Maybe FulfillmentUpdateResponseSpecificationProperty
haddock_workaround_ :: ()
active :: Value Bool
timeoutInSeconds :: Maybe (Value Integer)
updateResponse :: Maybe FulfillmentUpdateResponseSpecificationProperty
..}
instance Property "TimeoutInSeconds" FulfillmentUpdatesSpecificationProperty where
  type PropertyType "TimeoutInSeconds" FulfillmentUpdatesSpecificationProperty = Value Prelude.Integer
  set :: PropertyType
  "TimeoutInSeconds" FulfillmentUpdatesSpecificationProperty
-> FulfillmentUpdatesSpecificationProperty
-> FulfillmentUpdatesSpecificationProperty
set PropertyType
  "TimeoutInSeconds" FulfillmentUpdatesSpecificationProperty
newValue FulfillmentUpdatesSpecificationProperty {Maybe (Value Integer)
Maybe FulfillmentUpdateResponseSpecificationProperty
Maybe FulfillmentStartResponseSpecificationProperty
()
Value Bool
haddock_workaround_ :: FulfillmentUpdatesSpecificationProperty -> ()
active :: FulfillmentUpdatesSpecificationProperty -> Value Bool
startResponse :: FulfillmentUpdatesSpecificationProperty
-> Maybe FulfillmentStartResponseSpecificationProperty
timeoutInSeconds :: FulfillmentUpdatesSpecificationProperty -> Maybe (Value Integer)
updateResponse :: FulfillmentUpdatesSpecificationProperty
-> Maybe FulfillmentUpdateResponseSpecificationProperty
haddock_workaround_ :: ()
active :: Value Bool
startResponse :: Maybe FulfillmentStartResponseSpecificationProperty
timeoutInSeconds :: Maybe (Value Integer)
updateResponse :: Maybe FulfillmentUpdateResponseSpecificationProperty
..}
    = FulfillmentUpdatesSpecificationProperty
        {timeoutInSeconds :: Maybe (Value Integer)
timeoutInSeconds = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "TimeoutInSeconds" FulfillmentUpdatesSpecificationProperty
Value Integer
newValue, Maybe FulfillmentUpdateResponseSpecificationProperty
Maybe FulfillmentStartResponseSpecificationProperty
()
Value Bool
haddock_workaround_ :: ()
active :: Value Bool
startResponse :: Maybe FulfillmentStartResponseSpecificationProperty
updateResponse :: Maybe FulfillmentUpdateResponseSpecificationProperty
haddock_workaround_ :: ()
active :: Value Bool
startResponse :: Maybe FulfillmentStartResponseSpecificationProperty
updateResponse :: Maybe FulfillmentUpdateResponseSpecificationProperty
..}
instance Property "UpdateResponse" FulfillmentUpdatesSpecificationProperty where
  type PropertyType "UpdateResponse" FulfillmentUpdatesSpecificationProperty = FulfillmentUpdateResponseSpecificationProperty
  set :: PropertyType
  "UpdateResponse" FulfillmentUpdatesSpecificationProperty
-> FulfillmentUpdatesSpecificationProperty
-> FulfillmentUpdatesSpecificationProperty
set PropertyType
  "UpdateResponse" FulfillmentUpdatesSpecificationProperty
newValue FulfillmentUpdatesSpecificationProperty {Maybe (Value Integer)
Maybe FulfillmentUpdateResponseSpecificationProperty
Maybe FulfillmentStartResponseSpecificationProperty
()
Value Bool
haddock_workaround_ :: FulfillmentUpdatesSpecificationProperty -> ()
active :: FulfillmentUpdatesSpecificationProperty -> Value Bool
startResponse :: FulfillmentUpdatesSpecificationProperty
-> Maybe FulfillmentStartResponseSpecificationProperty
timeoutInSeconds :: FulfillmentUpdatesSpecificationProperty -> Maybe (Value Integer)
updateResponse :: FulfillmentUpdatesSpecificationProperty
-> Maybe FulfillmentUpdateResponseSpecificationProperty
haddock_workaround_ :: ()
active :: Value Bool
startResponse :: Maybe FulfillmentStartResponseSpecificationProperty
timeoutInSeconds :: Maybe (Value Integer)
updateResponse :: Maybe FulfillmentUpdateResponseSpecificationProperty
..}
    = FulfillmentUpdatesSpecificationProperty
        {updateResponse :: Maybe FulfillmentUpdateResponseSpecificationProperty
updateResponse = FulfillmentUpdateResponseSpecificationProperty
-> Maybe FulfillmentUpdateResponseSpecificationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "UpdateResponse" FulfillmentUpdatesSpecificationProperty
FulfillmentUpdateResponseSpecificationProperty
newValue, Maybe (Value Integer)
Maybe FulfillmentStartResponseSpecificationProperty
()
Value Bool
haddock_workaround_ :: ()
active :: Value Bool
startResponse :: Maybe FulfillmentStartResponseSpecificationProperty
timeoutInSeconds :: Maybe (Value Integer)
haddock_workaround_ :: ()
active :: Value Bool
startResponse :: Maybe FulfillmentStartResponseSpecificationProperty
timeoutInSeconds :: Maybe (Value Integer)
..}