module Stratosphere.Lex.Bot.GrammarSlotTypeSettingProperty (
        module Exports, GrammarSlotTypeSettingProperty(..),
        mkGrammarSlotTypeSettingProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Lex.Bot.GrammarSlotTypeSourceProperty as Exports
import Stratosphere.ResourceProperties
data GrammarSlotTypeSettingProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-grammarslottypesetting.html>
    GrammarSlotTypeSettingProperty {GrammarSlotTypeSettingProperty -> ()
haddock_workaround_ :: (),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-grammarslottypesetting.html#cfn-lex-bot-grammarslottypesetting-source>
                                    GrammarSlotTypeSettingProperty
-> Maybe GrammarSlotTypeSourceProperty
source :: (Prelude.Maybe GrammarSlotTypeSourceProperty)}
  deriving stock (GrammarSlotTypeSettingProperty
-> GrammarSlotTypeSettingProperty -> Bool
(GrammarSlotTypeSettingProperty
 -> GrammarSlotTypeSettingProperty -> Bool)
-> (GrammarSlotTypeSettingProperty
    -> GrammarSlotTypeSettingProperty -> Bool)
-> Eq GrammarSlotTypeSettingProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GrammarSlotTypeSettingProperty
-> GrammarSlotTypeSettingProperty -> Bool
== :: GrammarSlotTypeSettingProperty
-> GrammarSlotTypeSettingProperty -> Bool
$c/= :: GrammarSlotTypeSettingProperty
-> GrammarSlotTypeSettingProperty -> Bool
/= :: GrammarSlotTypeSettingProperty
-> GrammarSlotTypeSettingProperty -> Bool
Prelude.Eq, Int -> GrammarSlotTypeSettingProperty -> ShowS
[GrammarSlotTypeSettingProperty] -> ShowS
GrammarSlotTypeSettingProperty -> String
(Int -> GrammarSlotTypeSettingProperty -> ShowS)
-> (GrammarSlotTypeSettingProperty -> String)
-> ([GrammarSlotTypeSettingProperty] -> ShowS)
-> Show GrammarSlotTypeSettingProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GrammarSlotTypeSettingProperty -> ShowS
showsPrec :: Int -> GrammarSlotTypeSettingProperty -> ShowS
$cshow :: GrammarSlotTypeSettingProperty -> String
show :: GrammarSlotTypeSettingProperty -> String
$cshowList :: [GrammarSlotTypeSettingProperty] -> ShowS
showList :: [GrammarSlotTypeSettingProperty] -> ShowS
Prelude.Show)
mkGrammarSlotTypeSettingProperty :: GrammarSlotTypeSettingProperty
mkGrammarSlotTypeSettingProperty :: GrammarSlotTypeSettingProperty
mkGrammarSlotTypeSettingProperty
  = GrammarSlotTypeSettingProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), source :: Maybe GrammarSlotTypeSourceProperty
source = Maybe GrammarSlotTypeSourceProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties GrammarSlotTypeSettingProperty where
  toResourceProperties :: GrammarSlotTypeSettingProperty -> ResourceProperties
toResourceProperties GrammarSlotTypeSettingProperty {Maybe GrammarSlotTypeSourceProperty
()
haddock_workaround_ :: GrammarSlotTypeSettingProperty -> ()
source :: GrammarSlotTypeSettingProperty
-> Maybe GrammarSlotTypeSourceProperty
haddock_workaround_ :: ()
source :: Maybe GrammarSlotTypeSourceProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Lex::Bot.GrammarSlotTypeSetting",
         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 -> GrammarSlotTypeSourceProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Source" (GrammarSlotTypeSourceProperty -> (Key, Value))
-> Maybe GrammarSlotTypeSourceProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe GrammarSlotTypeSourceProperty
source])}
instance JSON.ToJSON GrammarSlotTypeSettingProperty where
  toJSON :: GrammarSlotTypeSettingProperty -> Value
toJSON GrammarSlotTypeSettingProperty {Maybe GrammarSlotTypeSourceProperty
()
haddock_workaround_ :: GrammarSlotTypeSettingProperty -> ()
source :: GrammarSlotTypeSettingProperty
-> Maybe GrammarSlotTypeSourceProperty
haddock_workaround_ :: ()
source :: Maybe GrammarSlotTypeSourceProperty
..}
    = [(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 -> GrammarSlotTypeSourceProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Source" (GrammarSlotTypeSourceProperty -> (Key, Value))
-> Maybe GrammarSlotTypeSourceProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe GrammarSlotTypeSourceProperty
source]))
instance Property "Source" GrammarSlotTypeSettingProperty where
  type PropertyType "Source" GrammarSlotTypeSettingProperty = GrammarSlotTypeSourceProperty
  set :: PropertyType "Source" GrammarSlotTypeSettingProperty
-> GrammarSlotTypeSettingProperty -> GrammarSlotTypeSettingProperty
set PropertyType "Source" GrammarSlotTypeSettingProperty
newValue GrammarSlotTypeSettingProperty {Maybe GrammarSlotTypeSourceProperty
()
haddock_workaround_ :: GrammarSlotTypeSettingProperty -> ()
source :: GrammarSlotTypeSettingProperty
-> Maybe GrammarSlotTypeSourceProperty
haddock_workaround_ :: ()
source :: Maybe GrammarSlotTypeSourceProperty
..}
    = GrammarSlotTypeSettingProperty
        {source :: Maybe GrammarSlotTypeSourceProperty
source = GrammarSlotTypeSourceProperty
-> Maybe GrammarSlotTypeSourceProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Source" GrammarSlotTypeSettingProperty
GrammarSlotTypeSourceProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}