module Stratosphere.Lex.Bot.WaitAndContinueSpecificationProperty (
        module Exports, WaitAndContinueSpecificationProperty(..),
        mkWaitAndContinueSpecificationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Lex.Bot.ResponseSpecificationProperty as Exports
import {-# SOURCE #-} Stratosphere.Lex.Bot.StillWaitingResponseSpecificationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data WaitAndContinueSpecificationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-waitandcontinuespecification.html>
    WaitAndContinueSpecificationProperty {WaitAndContinueSpecificationProperty -> ()
haddock_workaround_ :: (),
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-waitandcontinuespecification.html#cfn-lex-bot-waitandcontinuespecification-continueresponse>
                                          WaitAndContinueSpecificationProperty
-> ResponseSpecificationProperty
continueResponse :: ResponseSpecificationProperty,
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-waitandcontinuespecification.html#cfn-lex-bot-waitandcontinuespecification-isactive>
                                          WaitAndContinueSpecificationProperty -> Maybe (Value Bool)
isActive :: (Prelude.Maybe (Value Prelude.Bool)),
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-waitandcontinuespecification.html#cfn-lex-bot-waitandcontinuespecification-stillwaitingresponse>
                                          WaitAndContinueSpecificationProperty
-> Maybe StillWaitingResponseSpecificationProperty
stillWaitingResponse :: (Prelude.Maybe StillWaitingResponseSpecificationProperty),
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-waitandcontinuespecification.html#cfn-lex-bot-waitandcontinuespecification-waitingresponse>
                                          WaitAndContinueSpecificationProperty
-> ResponseSpecificationProperty
waitingResponse :: ResponseSpecificationProperty}
  deriving stock (WaitAndContinueSpecificationProperty
-> WaitAndContinueSpecificationProperty -> Bool
(WaitAndContinueSpecificationProperty
 -> WaitAndContinueSpecificationProperty -> Bool)
-> (WaitAndContinueSpecificationProperty
    -> WaitAndContinueSpecificationProperty -> Bool)
-> Eq WaitAndContinueSpecificationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WaitAndContinueSpecificationProperty
-> WaitAndContinueSpecificationProperty -> Bool
== :: WaitAndContinueSpecificationProperty
-> WaitAndContinueSpecificationProperty -> Bool
$c/= :: WaitAndContinueSpecificationProperty
-> WaitAndContinueSpecificationProperty -> Bool
/= :: WaitAndContinueSpecificationProperty
-> WaitAndContinueSpecificationProperty -> Bool
Prelude.Eq, Int -> WaitAndContinueSpecificationProperty -> ShowS
[WaitAndContinueSpecificationProperty] -> ShowS
WaitAndContinueSpecificationProperty -> String
(Int -> WaitAndContinueSpecificationProperty -> ShowS)
-> (WaitAndContinueSpecificationProperty -> String)
-> ([WaitAndContinueSpecificationProperty] -> ShowS)
-> Show WaitAndContinueSpecificationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WaitAndContinueSpecificationProperty -> ShowS
showsPrec :: Int -> WaitAndContinueSpecificationProperty -> ShowS
$cshow :: WaitAndContinueSpecificationProperty -> String
show :: WaitAndContinueSpecificationProperty -> String
$cshowList :: [WaitAndContinueSpecificationProperty] -> ShowS
showList :: [WaitAndContinueSpecificationProperty] -> ShowS
Prelude.Show)
mkWaitAndContinueSpecificationProperty ::
  ResponseSpecificationProperty
  -> ResponseSpecificationProperty
     -> WaitAndContinueSpecificationProperty
mkWaitAndContinueSpecificationProperty :: ResponseSpecificationProperty
-> ResponseSpecificationProperty
-> WaitAndContinueSpecificationProperty
mkWaitAndContinueSpecificationProperty
  ResponseSpecificationProperty
continueResponse
  ResponseSpecificationProperty
waitingResponse
  = WaitAndContinueSpecificationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), continueResponse :: ResponseSpecificationProperty
continueResponse = ResponseSpecificationProperty
continueResponse,
       waitingResponse :: ResponseSpecificationProperty
waitingResponse = ResponseSpecificationProperty
waitingResponse, isActive :: Maybe (Value Bool)
isActive = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       stillWaitingResponse :: Maybe StillWaitingResponseSpecificationProperty
stillWaitingResponse = Maybe StillWaitingResponseSpecificationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties WaitAndContinueSpecificationProperty where
  toResourceProperties :: WaitAndContinueSpecificationProperty -> ResourceProperties
toResourceProperties WaitAndContinueSpecificationProperty {Maybe (Value Bool)
Maybe StillWaitingResponseSpecificationProperty
()
ResponseSpecificationProperty
haddock_workaround_ :: WaitAndContinueSpecificationProperty -> ()
continueResponse :: WaitAndContinueSpecificationProperty
-> ResponseSpecificationProperty
isActive :: WaitAndContinueSpecificationProperty -> Maybe (Value Bool)
stillWaitingResponse :: WaitAndContinueSpecificationProperty
-> Maybe StillWaitingResponseSpecificationProperty
waitingResponse :: WaitAndContinueSpecificationProperty
-> ResponseSpecificationProperty
haddock_workaround_ :: ()
continueResponse :: ResponseSpecificationProperty
isActive :: Maybe (Value Bool)
stillWaitingResponse :: Maybe StillWaitingResponseSpecificationProperty
waitingResponse :: ResponseSpecificationProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Lex::Bot.WaitAndContinueSpecification",
         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
"ContinueResponse" Key -> ResponseSpecificationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ResponseSpecificationProperty
continueResponse,
                            Key
"WaitingResponse" Key -> ResponseSpecificationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ResponseSpecificationProperty
waitingResponse]
                           ([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
"IsActive" (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)
isActive,
                               Key -> StillWaitingResponseSpecificationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StillWaitingResponse"
                                 (StillWaitingResponseSpecificationProperty -> (Key, Value))
-> Maybe StillWaitingResponseSpecificationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe StillWaitingResponseSpecificationProperty
stillWaitingResponse]))}
instance JSON.ToJSON WaitAndContinueSpecificationProperty where
  toJSON :: WaitAndContinueSpecificationProperty -> Value
toJSON WaitAndContinueSpecificationProperty {Maybe (Value Bool)
Maybe StillWaitingResponseSpecificationProperty
()
ResponseSpecificationProperty
haddock_workaround_ :: WaitAndContinueSpecificationProperty -> ()
continueResponse :: WaitAndContinueSpecificationProperty
-> ResponseSpecificationProperty
isActive :: WaitAndContinueSpecificationProperty -> Maybe (Value Bool)
stillWaitingResponse :: WaitAndContinueSpecificationProperty
-> Maybe StillWaitingResponseSpecificationProperty
waitingResponse :: WaitAndContinueSpecificationProperty
-> ResponseSpecificationProperty
haddock_workaround_ :: ()
continueResponse :: ResponseSpecificationProperty
isActive :: Maybe (Value Bool)
stillWaitingResponse :: Maybe StillWaitingResponseSpecificationProperty
waitingResponse :: ResponseSpecificationProperty
..}
    = [(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
"ContinueResponse" Key -> ResponseSpecificationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ResponseSpecificationProperty
continueResponse,
               Key
"WaitingResponse" Key -> ResponseSpecificationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ResponseSpecificationProperty
waitingResponse]
              ([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
"IsActive" (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)
isActive,
                  Key -> StillWaitingResponseSpecificationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StillWaitingResponse"
                    (StillWaitingResponseSpecificationProperty -> (Key, Value))
-> Maybe StillWaitingResponseSpecificationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe StillWaitingResponseSpecificationProperty
stillWaitingResponse])))
instance Property "ContinueResponse" WaitAndContinueSpecificationProperty where
  type PropertyType "ContinueResponse" WaitAndContinueSpecificationProperty = ResponseSpecificationProperty
  set :: PropertyType
  "ContinueResponse" WaitAndContinueSpecificationProperty
-> WaitAndContinueSpecificationProperty
-> WaitAndContinueSpecificationProperty
set PropertyType
  "ContinueResponse" WaitAndContinueSpecificationProperty
newValue WaitAndContinueSpecificationProperty {Maybe (Value Bool)
Maybe StillWaitingResponseSpecificationProperty
()
ResponseSpecificationProperty
haddock_workaround_ :: WaitAndContinueSpecificationProperty -> ()
continueResponse :: WaitAndContinueSpecificationProperty
-> ResponseSpecificationProperty
isActive :: WaitAndContinueSpecificationProperty -> Maybe (Value Bool)
stillWaitingResponse :: WaitAndContinueSpecificationProperty
-> Maybe StillWaitingResponseSpecificationProperty
waitingResponse :: WaitAndContinueSpecificationProperty
-> ResponseSpecificationProperty
haddock_workaround_ :: ()
continueResponse :: ResponseSpecificationProperty
isActive :: Maybe (Value Bool)
stillWaitingResponse :: Maybe StillWaitingResponseSpecificationProperty
waitingResponse :: ResponseSpecificationProperty
..}
    = WaitAndContinueSpecificationProperty
        {continueResponse :: ResponseSpecificationProperty
continueResponse = PropertyType
  "ContinueResponse" WaitAndContinueSpecificationProperty
ResponseSpecificationProperty
newValue, Maybe (Value Bool)
Maybe StillWaitingResponseSpecificationProperty
()
ResponseSpecificationProperty
haddock_workaround_ :: ()
isActive :: Maybe (Value Bool)
stillWaitingResponse :: Maybe StillWaitingResponseSpecificationProperty
waitingResponse :: ResponseSpecificationProperty
haddock_workaround_ :: ()
isActive :: Maybe (Value Bool)
stillWaitingResponse :: Maybe StillWaitingResponseSpecificationProperty
waitingResponse :: ResponseSpecificationProperty
..}
instance Property "IsActive" WaitAndContinueSpecificationProperty where
  type PropertyType "IsActive" WaitAndContinueSpecificationProperty = Value Prelude.Bool
  set :: PropertyType "IsActive" WaitAndContinueSpecificationProperty
-> WaitAndContinueSpecificationProperty
-> WaitAndContinueSpecificationProperty
set PropertyType "IsActive" WaitAndContinueSpecificationProperty
newValue WaitAndContinueSpecificationProperty {Maybe (Value Bool)
Maybe StillWaitingResponseSpecificationProperty
()
ResponseSpecificationProperty
haddock_workaround_ :: WaitAndContinueSpecificationProperty -> ()
continueResponse :: WaitAndContinueSpecificationProperty
-> ResponseSpecificationProperty
isActive :: WaitAndContinueSpecificationProperty -> Maybe (Value Bool)
stillWaitingResponse :: WaitAndContinueSpecificationProperty
-> Maybe StillWaitingResponseSpecificationProperty
waitingResponse :: WaitAndContinueSpecificationProperty
-> ResponseSpecificationProperty
haddock_workaround_ :: ()
continueResponse :: ResponseSpecificationProperty
isActive :: Maybe (Value Bool)
stillWaitingResponse :: Maybe StillWaitingResponseSpecificationProperty
waitingResponse :: ResponseSpecificationProperty
..}
    = WaitAndContinueSpecificationProperty
        {isActive :: Maybe (Value Bool)
isActive = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "IsActive" WaitAndContinueSpecificationProperty
Value Bool
newValue, Maybe StillWaitingResponseSpecificationProperty
()
ResponseSpecificationProperty
haddock_workaround_ :: ()
continueResponse :: ResponseSpecificationProperty
stillWaitingResponse :: Maybe StillWaitingResponseSpecificationProperty
waitingResponse :: ResponseSpecificationProperty
haddock_workaround_ :: ()
continueResponse :: ResponseSpecificationProperty
stillWaitingResponse :: Maybe StillWaitingResponseSpecificationProperty
waitingResponse :: ResponseSpecificationProperty
..}
instance Property "StillWaitingResponse" WaitAndContinueSpecificationProperty where
  type PropertyType "StillWaitingResponse" WaitAndContinueSpecificationProperty = StillWaitingResponseSpecificationProperty
  set :: PropertyType
  "StillWaitingResponse" WaitAndContinueSpecificationProperty
-> WaitAndContinueSpecificationProperty
-> WaitAndContinueSpecificationProperty
set PropertyType
  "StillWaitingResponse" WaitAndContinueSpecificationProperty
newValue WaitAndContinueSpecificationProperty {Maybe (Value Bool)
Maybe StillWaitingResponseSpecificationProperty
()
ResponseSpecificationProperty
haddock_workaround_ :: WaitAndContinueSpecificationProperty -> ()
continueResponse :: WaitAndContinueSpecificationProperty
-> ResponseSpecificationProperty
isActive :: WaitAndContinueSpecificationProperty -> Maybe (Value Bool)
stillWaitingResponse :: WaitAndContinueSpecificationProperty
-> Maybe StillWaitingResponseSpecificationProperty
waitingResponse :: WaitAndContinueSpecificationProperty
-> ResponseSpecificationProperty
haddock_workaround_ :: ()
continueResponse :: ResponseSpecificationProperty
isActive :: Maybe (Value Bool)
stillWaitingResponse :: Maybe StillWaitingResponseSpecificationProperty
waitingResponse :: ResponseSpecificationProperty
..}
    = WaitAndContinueSpecificationProperty
        {stillWaitingResponse :: Maybe StillWaitingResponseSpecificationProperty
stillWaitingResponse = StillWaitingResponseSpecificationProperty
-> Maybe StillWaitingResponseSpecificationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "StillWaitingResponse" WaitAndContinueSpecificationProperty
StillWaitingResponseSpecificationProperty
newValue, Maybe (Value Bool)
()
ResponseSpecificationProperty
haddock_workaround_ :: ()
continueResponse :: ResponseSpecificationProperty
isActive :: Maybe (Value Bool)
waitingResponse :: ResponseSpecificationProperty
haddock_workaround_ :: ()
continueResponse :: ResponseSpecificationProperty
isActive :: Maybe (Value Bool)
waitingResponse :: ResponseSpecificationProperty
..}
instance Property "WaitingResponse" WaitAndContinueSpecificationProperty where
  type PropertyType "WaitingResponse" WaitAndContinueSpecificationProperty = ResponseSpecificationProperty
  set :: PropertyType "WaitingResponse" WaitAndContinueSpecificationProperty
-> WaitAndContinueSpecificationProperty
-> WaitAndContinueSpecificationProperty
set PropertyType "WaitingResponse" WaitAndContinueSpecificationProperty
newValue WaitAndContinueSpecificationProperty {Maybe (Value Bool)
Maybe StillWaitingResponseSpecificationProperty
()
ResponseSpecificationProperty
haddock_workaround_ :: WaitAndContinueSpecificationProperty -> ()
continueResponse :: WaitAndContinueSpecificationProperty
-> ResponseSpecificationProperty
isActive :: WaitAndContinueSpecificationProperty -> Maybe (Value Bool)
stillWaitingResponse :: WaitAndContinueSpecificationProperty
-> Maybe StillWaitingResponseSpecificationProperty
waitingResponse :: WaitAndContinueSpecificationProperty
-> ResponseSpecificationProperty
haddock_workaround_ :: ()
continueResponse :: ResponseSpecificationProperty
isActive :: Maybe (Value Bool)
stillWaitingResponse :: Maybe StillWaitingResponseSpecificationProperty
waitingResponse :: ResponseSpecificationProperty
..}
    = WaitAndContinueSpecificationProperty
        {waitingResponse :: ResponseSpecificationProperty
waitingResponse = PropertyType "WaitingResponse" WaitAndContinueSpecificationProperty
ResponseSpecificationProperty
newValue, Maybe (Value Bool)
Maybe StillWaitingResponseSpecificationProperty
()
ResponseSpecificationProperty
haddock_workaround_ :: ()
continueResponse :: ResponseSpecificationProperty
isActive :: Maybe (Value Bool)
stillWaitingResponse :: Maybe StillWaitingResponseSpecificationProperty
haddock_workaround_ :: ()
continueResponse :: ResponseSpecificationProperty
isActive :: Maybe (Value Bool)
stillWaitingResponse :: Maybe StillWaitingResponseSpecificationProperty
..}