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