module Stratosphere.Lex.Bot.IntentClosingSettingProperty (
        module Exports, IntentClosingSettingProperty(..),
        mkIntentClosingSettingProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Lex.Bot.ConditionalSpecificationProperty as Exports
import {-# SOURCE #-} Stratosphere.Lex.Bot.DialogStateProperty as Exports
import {-# SOURCE #-} Stratosphere.Lex.Bot.ResponseSpecificationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data IntentClosingSettingProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-intentclosingsetting.html>
    IntentClosingSettingProperty {IntentClosingSettingProperty -> ()
haddock_workaround_ :: (),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-intentclosingsetting.html#cfn-lex-bot-intentclosingsetting-closingresponse>
                                  IntentClosingSettingProperty -> Maybe ResponseSpecificationProperty
closingResponse :: (Prelude.Maybe ResponseSpecificationProperty),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-intentclosingsetting.html#cfn-lex-bot-intentclosingsetting-conditional>
                                  IntentClosingSettingProperty
-> Maybe ConditionalSpecificationProperty
conditional :: (Prelude.Maybe ConditionalSpecificationProperty),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-intentclosingsetting.html#cfn-lex-bot-intentclosingsetting-isactive>
                                  IntentClosingSettingProperty -> Maybe (Value Bool)
isActive :: (Prelude.Maybe (Value Prelude.Bool)),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-intentclosingsetting.html#cfn-lex-bot-intentclosingsetting-nextstep>
                                  IntentClosingSettingProperty -> Maybe DialogStateProperty
nextStep :: (Prelude.Maybe DialogStateProperty)}
  deriving stock (IntentClosingSettingProperty
-> IntentClosingSettingProperty -> Bool
(IntentClosingSettingProperty
 -> IntentClosingSettingProperty -> Bool)
-> (IntentClosingSettingProperty
    -> IntentClosingSettingProperty -> Bool)
-> Eq IntentClosingSettingProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: IntentClosingSettingProperty
-> IntentClosingSettingProperty -> Bool
== :: IntentClosingSettingProperty
-> IntentClosingSettingProperty -> Bool
$c/= :: IntentClosingSettingProperty
-> IntentClosingSettingProperty -> Bool
/= :: IntentClosingSettingProperty
-> IntentClosingSettingProperty -> Bool
Prelude.Eq, Int -> IntentClosingSettingProperty -> ShowS
[IntentClosingSettingProperty] -> ShowS
IntentClosingSettingProperty -> String
(Int -> IntentClosingSettingProperty -> ShowS)
-> (IntentClosingSettingProperty -> String)
-> ([IntentClosingSettingProperty] -> ShowS)
-> Show IntentClosingSettingProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> IntentClosingSettingProperty -> ShowS
showsPrec :: Int -> IntentClosingSettingProperty -> ShowS
$cshow :: IntentClosingSettingProperty -> String
show :: IntentClosingSettingProperty -> String
$cshowList :: [IntentClosingSettingProperty] -> ShowS
showList :: [IntentClosingSettingProperty] -> ShowS
Prelude.Show)
mkIntentClosingSettingProperty :: IntentClosingSettingProperty
mkIntentClosingSettingProperty :: IntentClosingSettingProperty
mkIntentClosingSettingProperty
  = IntentClosingSettingProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), closingResponse :: Maybe ResponseSpecificationProperty
closingResponse = Maybe ResponseSpecificationProperty
forall a. Maybe a
Prelude.Nothing,
       conditional :: Maybe ConditionalSpecificationProperty
conditional = Maybe ConditionalSpecificationProperty
forall a. Maybe a
Prelude.Nothing, isActive :: Maybe (Value Bool)
isActive = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       nextStep :: Maybe DialogStateProperty
nextStep = Maybe DialogStateProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties IntentClosingSettingProperty where
  toResourceProperties :: IntentClosingSettingProperty -> ResourceProperties
toResourceProperties IntentClosingSettingProperty {Maybe (Value Bool)
Maybe ResponseSpecificationProperty
Maybe DialogStateProperty
Maybe ConditionalSpecificationProperty
()
haddock_workaround_ :: IntentClosingSettingProperty -> ()
closingResponse :: IntentClosingSettingProperty -> Maybe ResponseSpecificationProperty
conditional :: IntentClosingSettingProperty
-> Maybe ConditionalSpecificationProperty
isActive :: IntentClosingSettingProperty -> Maybe (Value Bool)
nextStep :: IntentClosingSettingProperty -> Maybe DialogStateProperty
haddock_workaround_ :: ()
closingResponse :: Maybe ResponseSpecificationProperty
conditional :: Maybe ConditionalSpecificationProperty
isActive :: Maybe (Value Bool)
nextStep :: Maybe DialogStateProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Lex::Bot.IntentClosingSetting",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                           [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..=) Key
"ClosingResponse" (ResponseSpecificationProperty -> (Key, Value))
-> Maybe ResponseSpecificationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ResponseSpecificationProperty
closingResponse,
                            Key -> ConditionalSpecificationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Conditional" (ConditionalSpecificationProperty -> (Key, Value))
-> Maybe ConditionalSpecificationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ConditionalSpecificationProperty
conditional,
                            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 -> DialogStateProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"NextStep" (DialogStateProperty -> (Key, Value))
-> Maybe DialogStateProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DialogStateProperty
nextStep])}
instance JSON.ToJSON IntentClosingSettingProperty where
  toJSON :: IntentClosingSettingProperty -> Value
toJSON IntentClosingSettingProperty {Maybe (Value Bool)
Maybe ResponseSpecificationProperty
Maybe DialogStateProperty
Maybe ConditionalSpecificationProperty
()
haddock_workaround_ :: IntentClosingSettingProperty -> ()
closingResponse :: IntentClosingSettingProperty -> Maybe ResponseSpecificationProperty
conditional :: IntentClosingSettingProperty
-> Maybe ConditionalSpecificationProperty
isActive :: IntentClosingSettingProperty -> Maybe (Value Bool)
nextStep :: IntentClosingSettingProperty -> Maybe DialogStateProperty
haddock_workaround_ :: ()
closingResponse :: Maybe ResponseSpecificationProperty
conditional :: Maybe ConditionalSpecificationProperty
isActive :: Maybe (Value Bool)
nextStep :: Maybe DialogStateProperty
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
              [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..=) Key
"ClosingResponse" (ResponseSpecificationProperty -> (Key, Value))
-> Maybe ResponseSpecificationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ResponseSpecificationProperty
closingResponse,
               Key -> ConditionalSpecificationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Conditional" (ConditionalSpecificationProperty -> (Key, Value))
-> Maybe ConditionalSpecificationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ConditionalSpecificationProperty
conditional,
               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 -> DialogStateProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"NextStep" (DialogStateProperty -> (Key, Value))
-> Maybe DialogStateProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DialogStateProperty
nextStep]))
instance Property "ClosingResponse" IntentClosingSettingProperty where
  type PropertyType "ClosingResponse" IntentClosingSettingProperty = ResponseSpecificationProperty
  set :: PropertyType "ClosingResponse" IntentClosingSettingProperty
-> IntentClosingSettingProperty -> IntentClosingSettingProperty
set PropertyType "ClosingResponse" IntentClosingSettingProperty
newValue IntentClosingSettingProperty {Maybe (Value Bool)
Maybe ResponseSpecificationProperty
Maybe DialogStateProperty
Maybe ConditionalSpecificationProperty
()
haddock_workaround_ :: IntentClosingSettingProperty -> ()
closingResponse :: IntentClosingSettingProperty -> Maybe ResponseSpecificationProperty
conditional :: IntentClosingSettingProperty
-> Maybe ConditionalSpecificationProperty
isActive :: IntentClosingSettingProperty -> Maybe (Value Bool)
nextStep :: IntentClosingSettingProperty -> Maybe DialogStateProperty
haddock_workaround_ :: ()
closingResponse :: Maybe ResponseSpecificationProperty
conditional :: Maybe ConditionalSpecificationProperty
isActive :: Maybe (Value Bool)
nextStep :: Maybe DialogStateProperty
..}
    = IntentClosingSettingProperty
        {closingResponse :: Maybe ResponseSpecificationProperty
closingResponse = ResponseSpecificationProperty
-> Maybe ResponseSpecificationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ClosingResponse" IntentClosingSettingProperty
ResponseSpecificationProperty
newValue, Maybe (Value Bool)
Maybe DialogStateProperty
Maybe ConditionalSpecificationProperty
()
haddock_workaround_ :: ()
conditional :: Maybe ConditionalSpecificationProperty
isActive :: Maybe (Value Bool)
nextStep :: Maybe DialogStateProperty
haddock_workaround_ :: ()
conditional :: Maybe ConditionalSpecificationProperty
isActive :: Maybe (Value Bool)
nextStep :: Maybe DialogStateProperty
..}
instance Property "Conditional" IntentClosingSettingProperty where
  type PropertyType "Conditional" IntentClosingSettingProperty = ConditionalSpecificationProperty
  set :: PropertyType "Conditional" IntentClosingSettingProperty
-> IntentClosingSettingProperty -> IntentClosingSettingProperty
set PropertyType "Conditional" IntentClosingSettingProperty
newValue IntentClosingSettingProperty {Maybe (Value Bool)
Maybe ResponseSpecificationProperty
Maybe DialogStateProperty
Maybe ConditionalSpecificationProperty
()
haddock_workaround_ :: IntentClosingSettingProperty -> ()
closingResponse :: IntentClosingSettingProperty -> Maybe ResponseSpecificationProperty
conditional :: IntentClosingSettingProperty
-> Maybe ConditionalSpecificationProperty
isActive :: IntentClosingSettingProperty -> Maybe (Value Bool)
nextStep :: IntentClosingSettingProperty -> Maybe DialogStateProperty
haddock_workaround_ :: ()
closingResponse :: Maybe ResponseSpecificationProperty
conditional :: Maybe ConditionalSpecificationProperty
isActive :: Maybe (Value Bool)
nextStep :: Maybe DialogStateProperty
..}
    = IntentClosingSettingProperty
        {conditional :: Maybe ConditionalSpecificationProperty
conditional = ConditionalSpecificationProperty
-> Maybe ConditionalSpecificationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Conditional" IntentClosingSettingProperty
ConditionalSpecificationProperty
newValue, Maybe (Value Bool)
Maybe ResponseSpecificationProperty
Maybe DialogStateProperty
()
haddock_workaround_ :: ()
closingResponse :: Maybe ResponseSpecificationProperty
isActive :: Maybe (Value Bool)
nextStep :: Maybe DialogStateProperty
haddock_workaround_ :: ()
closingResponse :: Maybe ResponseSpecificationProperty
isActive :: Maybe (Value Bool)
nextStep :: Maybe DialogStateProperty
..}
instance Property "IsActive" IntentClosingSettingProperty where
  type PropertyType "IsActive" IntentClosingSettingProperty = Value Prelude.Bool
  set :: PropertyType "IsActive" IntentClosingSettingProperty
-> IntentClosingSettingProperty -> IntentClosingSettingProperty
set PropertyType "IsActive" IntentClosingSettingProperty
newValue IntentClosingSettingProperty {Maybe (Value Bool)
Maybe ResponseSpecificationProperty
Maybe DialogStateProperty
Maybe ConditionalSpecificationProperty
()
haddock_workaround_ :: IntentClosingSettingProperty -> ()
closingResponse :: IntentClosingSettingProperty -> Maybe ResponseSpecificationProperty
conditional :: IntentClosingSettingProperty
-> Maybe ConditionalSpecificationProperty
isActive :: IntentClosingSettingProperty -> Maybe (Value Bool)
nextStep :: IntentClosingSettingProperty -> Maybe DialogStateProperty
haddock_workaround_ :: ()
closingResponse :: Maybe ResponseSpecificationProperty
conditional :: Maybe ConditionalSpecificationProperty
isActive :: Maybe (Value Bool)
nextStep :: Maybe DialogStateProperty
..}
    = IntentClosingSettingProperty
        {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" IntentClosingSettingProperty
Value Bool
newValue, Maybe ResponseSpecificationProperty
Maybe DialogStateProperty
Maybe ConditionalSpecificationProperty
()
haddock_workaround_ :: ()
closingResponse :: Maybe ResponseSpecificationProperty
conditional :: Maybe ConditionalSpecificationProperty
nextStep :: Maybe DialogStateProperty
haddock_workaround_ :: ()
closingResponse :: Maybe ResponseSpecificationProperty
conditional :: Maybe ConditionalSpecificationProperty
nextStep :: Maybe DialogStateProperty
..}
instance Property "NextStep" IntentClosingSettingProperty where
  type PropertyType "NextStep" IntentClosingSettingProperty = DialogStateProperty
  set :: PropertyType "NextStep" IntentClosingSettingProperty
-> IntentClosingSettingProperty -> IntentClosingSettingProperty
set PropertyType "NextStep" IntentClosingSettingProperty
newValue IntentClosingSettingProperty {Maybe (Value Bool)
Maybe ResponseSpecificationProperty
Maybe DialogStateProperty
Maybe ConditionalSpecificationProperty
()
haddock_workaround_ :: IntentClosingSettingProperty -> ()
closingResponse :: IntentClosingSettingProperty -> Maybe ResponseSpecificationProperty
conditional :: IntentClosingSettingProperty
-> Maybe ConditionalSpecificationProperty
isActive :: IntentClosingSettingProperty -> Maybe (Value Bool)
nextStep :: IntentClosingSettingProperty -> Maybe DialogStateProperty
haddock_workaround_ :: ()
closingResponse :: Maybe ResponseSpecificationProperty
conditional :: Maybe ConditionalSpecificationProperty
isActive :: Maybe (Value Bool)
nextStep :: Maybe DialogStateProperty
..}
    = IntentClosingSettingProperty
        {nextStep :: Maybe DialogStateProperty
nextStep = DialogStateProperty -> Maybe DialogStateProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "NextStep" IntentClosingSettingProperty
DialogStateProperty
newValue, Maybe (Value Bool)
Maybe ResponseSpecificationProperty
Maybe ConditionalSpecificationProperty
()
haddock_workaround_ :: ()
closingResponse :: Maybe ResponseSpecificationProperty
conditional :: Maybe ConditionalSpecificationProperty
isActive :: Maybe (Value Bool)
haddock_workaround_ :: ()
closingResponse :: Maybe ResponseSpecificationProperty
conditional :: Maybe ConditionalSpecificationProperty
isActive :: Maybe (Value Bool)
..}