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