module Stratosphere.Lex.Bot.InputContextProperty (
InputContextProperty(..), mkInputContextProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data InputContextProperty
=
InputContextProperty {InputContextProperty -> ()
haddock_workaround_ :: (),
InputContextProperty -> Value Text
name :: (Value Prelude.Text)}
deriving stock (InputContextProperty -> InputContextProperty -> Bool
(InputContextProperty -> InputContextProperty -> Bool)
-> (InputContextProperty -> InputContextProperty -> Bool)
-> Eq InputContextProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: InputContextProperty -> InputContextProperty -> Bool
== :: InputContextProperty -> InputContextProperty -> Bool
$c/= :: InputContextProperty -> InputContextProperty -> Bool
/= :: InputContextProperty -> InputContextProperty -> Bool
Prelude.Eq, Int -> InputContextProperty -> ShowS
[InputContextProperty] -> ShowS
InputContextProperty -> String
(Int -> InputContextProperty -> ShowS)
-> (InputContextProperty -> String)
-> ([InputContextProperty] -> ShowS)
-> Show InputContextProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> InputContextProperty -> ShowS
showsPrec :: Int -> InputContextProperty -> ShowS
$cshow :: InputContextProperty -> String
show :: InputContextProperty -> String
$cshowList :: [InputContextProperty] -> ShowS
showList :: [InputContextProperty] -> ShowS
Prelude.Show)
mkInputContextProperty ::
Value Prelude.Text -> InputContextProperty
mkInputContextProperty :: Value Text -> InputContextProperty
mkInputContextProperty Value Text
name
= InputContextProperty {haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name}
instance ToResourceProperties InputContextProperty where
toResourceProperties :: InputContextProperty -> ResourceProperties
toResourceProperties InputContextProperty {()
Value Text
haddock_workaround_ :: InputContextProperty -> ()
name :: InputContextProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Lex::Bot.InputContext",
supportsTags :: Bool
supportsTags = Bool
Prelude.False, properties :: Object
properties = [Key
"Name" 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
name]}
instance JSON.ToJSON InputContextProperty where
toJSON :: InputContextProperty -> Value
toJSON InputContextProperty {()
Value Text
haddock_workaround_ :: InputContextProperty -> ()
name :: InputContextProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object [Key
"Name" 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
name]
instance Property "Name" InputContextProperty where
type PropertyType "Name" InputContextProperty = Value Prelude.Text
set :: PropertyType "Name" InputContextProperty
-> InputContextProperty -> InputContextProperty
set PropertyType "Name" InputContextProperty
newValue InputContextProperty {()
Value Text
haddock_workaround_ :: InputContextProperty -> ()
name :: InputContextProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
..}
= InputContextProperty {name :: Value Text
name = PropertyType "Name" InputContextProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}