module Stratosphere.Lex.Bot.VoiceSettingsProperty (
        VoiceSettingsProperty(..), mkVoiceSettingsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data VoiceSettingsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-voicesettings.html>
    VoiceSettingsProperty {VoiceSettingsProperty -> ()
haddock_workaround_ :: (),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-voicesettings.html#cfn-lex-bot-voicesettings-engine>
                           VoiceSettingsProperty -> Maybe (Value Text)
engine :: (Prelude.Maybe (Value Prelude.Text)),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-voicesettings.html#cfn-lex-bot-voicesettings-voiceid>
                           VoiceSettingsProperty -> Value Text
voiceId :: (Value Prelude.Text)}
  deriving stock (VoiceSettingsProperty -> VoiceSettingsProperty -> Bool
(VoiceSettingsProperty -> VoiceSettingsProperty -> Bool)
-> (VoiceSettingsProperty -> VoiceSettingsProperty -> Bool)
-> Eq VoiceSettingsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VoiceSettingsProperty -> VoiceSettingsProperty -> Bool
== :: VoiceSettingsProperty -> VoiceSettingsProperty -> Bool
$c/= :: VoiceSettingsProperty -> VoiceSettingsProperty -> Bool
/= :: VoiceSettingsProperty -> VoiceSettingsProperty -> Bool
Prelude.Eq, Int -> VoiceSettingsProperty -> ShowS
[VoiceSettingsProperty] -> ShowS
VoiceSettingsProperty -> String
(Int -> VoiceSettingsProperty -> ShowS)
-> (VoiceSettingsProperty -> String)
-> ([VoiceSettingsProperty] -> ShowS)
-> Show VoiceSettingsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VoiceSettingsProperty -> ShowS
showsPrec :: Int -> VoiceSettingsProperty -> ShowS
$cshow :: VoiceSettingsProperty -> String
show :: VoiceSettingsProperty -> String
$cshowList :: [VoiceSettingsProperty] -> ShowS
showList :: [VoiceSettingsProperty] -> ShowS
Prelude.Show)
mkVoiceSettingsProperty ::
  Value Prelude.Text -> VoiceSettingsProperty
mkVoiceSettingsProperty :: Value Text -> VoiceSettingsProperty
mkVoiceSettingsProperty Value Text
voiceId
  = VoiceSettingsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), voiceId :: Value Text
voiceId = Value Text
voiceId,
       engine :: Maybe (Value Text)
engine = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties VoiceSettingsProperty where
  toResourceProperties :: VoiceSettingsProperty -> ResourceProperties
toResourceProperties VoiceSettingsProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: VoiceSettingsProperty -> ()
engine :: VoiceSettingsProperty -> Maybe (Value Text)
voiceId :: VoiceSettingsProperty -> Value Text
haddock_workaround_ :: ()
engine :: Maybe (Value Text)
voiceId :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Lex::Bot.VoiceSettings",
         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
"VoiceId" 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..= Value Text
voiceId]
                           ([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
"Engine" (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)
engine]))}
instance JSON.ToJSON VoiceSettingsProperty where
  toJSON :: VoiceSettingsProperty -> Value
toJSON VoiceSettingsProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: VoiceSettingsProperty -> ()
engine :: VoiceSettingsProperty -> Maybe (Value Text)
voiceId :: VoiceSettingsProperty -> Value Text
haddock_workaround_ :: ()
engine :: Maybe (Value Text)
voiceId :: Value Text
..}
    = [(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
"VoiceId" 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..= Value Text
voiceId]
              ([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
"Engine" (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)
engine])))
instance Property "Engine" VoiceSettingsProperty where
  type PropertyType "Engine" VoiceSettingsProperty = Value Prelude.Text
  set :: PropertyType "Engine" VoiceSettingsProperty
-> VoiceSettingsProperty -> VoiceSettingsProperty
set PropertyType "Engine" VoiceSettingsProperty
newValue VoiceSettingsProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: VoiceSettingsProperty -> ()
engine :: VoiceSettingsProperty -> Maybe (Value Text)
voiceId :: VoiceSettingsProperty -> Value Text
haddock_workaround_ :: ()
engine :: Maybe (Value Text)
voiceId :: Value Text
..}
    = VoiceSettingsProperty {engine :: Maybe (Value Text)
engine = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Engine" VoiceSettingsProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
voiceId :: Value Text
haddock_workaround_ :: ()
voiceId :: Value Text
..}
instance Property "VoiceId" VoiceSettingsProperty where
  type PropertyType "VoiceId" VoiceSettingsProperty = Value Prelude.Text
  set :: PropertyType "VoiceId" VoiceSettingsProperty
-> VoiceSettingsProperty -> VoiceSettingsProperty
set PropertyType "VoiceId" VoiceSettingsProperty
newValue VoiceSettingsProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: VoiceSettingsProperty -> ()
engine :: VoiceSettingsProperty -> Maybe (Value Text)
voiceId :: VoiceSettingsProperty -> Value Text
haddock_workaround_ :: ()
engine :: Maybe (Value Text)
voiceId :: Value Text
..}
    = VoiceSettingsProperty {voiceId :: Value Text
voiceId = PropertyType "VoiceId" VoiceSettingsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
engine :: Maybe (Value Text)
haddock_workaround_ :: ()
engine :: Maybe (Value Text)
..}