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