module Stratosphere.Lex.Bot.BKBExactResponseFieldsProperty (
BKBExactResponseFieldsProperty(..),
mkBKBExactResponseFieldsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data BKBExactResponseFieldsProperty
=
BKBExactResponseFieldsProperty {BKBExactResponseFieldsProperty -> ()
haddock_workaround_ :: (),
BKBExactResponseFieldsProperty -> Maybe (Value Text)
answerField :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (BKBExactResponseFieldsProperty
-> BKBExactResponseFieldsProperty -> Bool
(BKBExactResponseFieldsProperty
-> BKBExactResponseFieldsProperty -> Bool)
-> (BKBExactResponseFieldsProperty
-> BKBExactResponseFieldsProperty -> Bool)
-> Eq BKBExactResponseFieldsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: BKBExactResponseFieldsProperty
-> BKBExactResponseFieldsProperty -> Bool
== :: BKBExactResponseFieldsProperty
-> BKBExactResponseFieldsProperty -> Bool
$c/= :: BKBExactResponseFieldsProperty
-> BKBExactResponseFieldsProperty -> Bool
/= :: BKBExactResponseFieldsProperty
-> BKBExactResponseFieldsProperty -> Bool
Prelude.Eq, Int -> BKBExactResponseFieldsProperty -> ShowS
[BKBExactResponseFieldsProperty] -> ShowS
BKBExactResponseFieldsProperty -> String
(Int -> BKBExactResponseFieldsProperty -> ShowS)
-> (BKBExactResponseFieldsProperty -> String)
-> ([BKBExactResponseFieldsProperty] -> ShowS)
-> Show BKBExactResponseFieldsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> BKBExactResponseFieldsProperty -> ShowS
showsPrec :: Int -> BKBExactResponseFieldsProperty -> ShowS
$cshow :: BKBExactResponseFieldsProperty -> String
show :: BKBExactResponseFieldsProperty -> String
$cshowList :: [BKBExactResponseFieldsProperty] -> ShowS
showList :: [BKBExactResponseFieldsProperty] -> ShowS
Prelude.Show)
mkBKBExactResponseFieldsProperty :: BKBExactResponseFieldsProperty
mkBKBExactResponseFieldsProperty :: BKBExactResponseFieldsProperty
mkBKBExactResponseFieldsProperty
= BKBExactResponseFieldsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), answerField :: Maybe (Value Text)
answerField = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties BKBExactResponseFieldsProperty where
toResourceProperties :: BKBExactResponseFieldsProperty -> ResourceProperties
toResourceProperties BKBExactResponseFieldsProperty {Maybe (Value Text)
()
haddock_workaround_ :: BKBExactResponseFieldsProperty -> ()
answerField :: BKBExactResponseFieldsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
answerField :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Lex::Bot.BKBExactResponseFields",
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
"AnswerField" (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)
answerField])}
instance JSON.ToJSON BKBExactResponseFieldsProperty where
toJSON :: BKBExactResponseFieldsProperty -> Value
toJSON BKBExactResponseFieldsProperty {Maybe (Value Text)
()
haddock_workaround_ :: BKBExactResponseFieldsProperty -> ()
answerField :: BKBExactResponseFieldsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
answerField :: Maybe (Value Text)
..}
= [(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
"AnswerField" (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)
answerField]))
instance Property "AnswerField" BKBExactResponseFieldsProperty where
type PropertyType "AnswerField" BKBExactResponseFieldsProperty = Value Prelude.Text
set :: PropertyType "AnswerField" BKBExactResponseFieldsProperty
-> BKBExactResponseFieldsProperty -> BKBExactResponseFieldsProperty
set PropertyType "AnswerField" BKBExactResponseFieldsProperty
newValue BKBExactResponseFieldsProperty {Maybe (Value Text)
()
haddock_workaround_ :: BKBExactResponseFieldsProperty -> ()
answerField :: BKBExactResponseFieldsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
answerField :: Maybe (Value Text)
..}
= BKBExactResponseFieldsProperty
{answerField :: Maybe (Value Text)
answerField = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AnswerField" BKBExactResponseFieldsProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}