module Stratosphere.Connect.EvaluationForm.EvaluationFormTextQuestionPropertiesProperty (
module Exports, EvaluationFormTextQuestionPropertiesProperty(..),
mkEvaluationFormTextQuestionPropertiesProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Connect.EvaluationForm.EvaluationFormTextQuestionAutomationProperty as Exports
import Stratosphere.ResourceProperties
data EvaluationFormTextQuestionPropertiesProperty
=
EvaluationFormTextQuestionPropertiesProperty {EvaluationFormTextQuestionPropertiesProperty -> ()
haddock_workaround_ :: (),
EvaluationFormTextQuestionPropertiesProperty
-> Maybe EvaluationFormTextQuestionAutomationProperty
automation :: (Prelude.Maybe EvaluationFormTextQuestionAutomationProperty)}
deriving stock (EvaluationFormTextQuestionPropertiesProperty
-> EvaluationFormTextQuestionPropertiesProperty -> Bool
(EvaluationFormTextQuestionPropertiesProperty
-> EvaluationFormTextQuestionPropertiesProperty -> Bool)
-> (EvaluationFormTextQuestionPropertiesProperty
-> EvaluationFormTextQuestionPropertiesProperty -> Bool)
-> Eq EvaluationFormTextQuestionPropertiesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EvaluationFormTextQuestionPropertiesProperty
-> EvaluationFormTextQuestionPropertiesProperty -> Bool
== :: EvaluationFormTextQuestionPropertiesProperty
-> EvaluationFormTextQuestionPropertiesProperty -> Bool
$c/= :: EvaluationFormTextQuestionPropertiesProperty
-> EvaluationFormTextQuestionPropertiesProperty -> Bool
/= :: EvaluationFormTextQuestionPropertiesProperty
-> EvaluationFormTextQuestionPropertiesProperty -> Bool
Prelude.Eq, Int -> EvaluationFormTextQuestionPropertiesProperty -> ShowS
[EvaluationFormTextQuestionPropertiesProperty] -> ShowS
EvaluationFormTextQuestionPropertiesProperty -> String
(Int -> EvaluationFormTextQuestionPropertiesProperty -> ShowS)
-> (EvaluationFormTextQuestionPropertiesProperty -> String)
-> ([EvaluationFormTextQuestionPropertiesProperty] -> ShowS)
-> Show EvaluationFormTextQuestionPropertiesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EvaluationFormTextQuestionPropertiesProperty -> ShowS
showsPrec :: Int -> EvaluationFormTextQuestionPropertiesProperty -> ShowS
$cshow :: EvaluationFormTextQuestionPropertiesProperty -> String
show :: EvaluationFormTextQuestionPropertiesProperty -> String
$cshowList :: [EvaluationFormTextQuestionPropertiesProperty] -> ShowS
showList :: [EvaluationFormTextQuestionPropertiesProperty] -> ShowS
Prelude.Show)
mkEvaluationFormTextQuestionPropertiesProperty ::
EvaluationFormTextQuestionPropertiesProperty
mkEvaluationFormTextQuestionPropertiesProperty :: EvaluationFormTextQuestionPropertiesProperty
mkEvaluationFormTextQuestionPropertiesProperty
= EvaluationFormTextQuestionPropertiesProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), automation :: Maybe EvaluationFormTextQuestionAutomationProperty
automation = Maybe EvaluationFormTextQuestionAutomationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties EvaluationFormTextQuestionPropertiesProperty where
toResourceProperties :: EvaluationFormTextQuestionPropertiesProperty -> ResourceProperties
toResourceProperties
EvaluationFormTextQuestionPropertiesProperty {Maybe EvaluationFormTextQuestionAutomationProperty
()
haddock_workaround_ :: EvaluationFormTextQuestionPropertiesProperty -> ()
automation :: EvaluationFormTextQuestionPropertiesProperty
-> Maybe EvaluationFormTextQuestionAutomationProperty
haddock_workaround_ :: ()
automation :: Maybe EvaluationFormTextQuestionAutomationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Connect::EvaluationForm.EvaluationFormTextQuestionProperties",
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 -> EvaluationFormTextQuestionAutomationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Automation" (EvaluationFormTextQuestionAutomationProperty -> (Key, Value))
-> Maybe EvaluationFormTextQuestionAutomationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EvaluationFormTextQuestionAutomationProperty
automation])}
instance JSON.ToJSON EvaluationFormTextQuestionPropertiesProperty where
toJSON :: EvaluationFormTextQuestionPropertiesProperty -> Value
toJSON EvaluationFormTextQuestionPropertiesProperty {Maybe EvaluationFormTextQuestionAutomationProperty
()
haddock_workaround_ :: EvaluationFormTextQuestionPropertiesProperty -> ()
automation :: EvaluationFormTextQuestionPropertiesProperty
-> Maybe EvaluationFormTextQuestionAutomationProperty
haddock_workaround_ :: ()
automation :: Maybe EvaluationFormTextQuestionAutomationProperty
..}
= [(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 -> EvaluationFormTextQuestionAutomationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Automation" (EvaluationFormTextQuestionAutomationProperty -> (Key, Value))
-> Maybe EvaluationFormTextQuestionAutomationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EvaluationFormTextQuestionAutomationProperty
automation]))
instance Property "Automation" EvaluationFormTextQuestionPropertiesProperty where
type PropertyType "Automation" EvaluationFormTextQuestionPropertiesProperty = EvaluationFormTextQuestionAutomationProperty
set :: PropertyType
"Automation" EvaluationFormTextQuestionPropertiesProperty
-> EvaluationFormTextQuestionPropertiesProperty
-> EvaluationFormTextQuestionPropertiesProperty
set PropertyType
"Automation" EvaluationFormTextQuestionPropertiesProperty
newValue EvaluationFormTextQuestionPropertiesProperty {Maybe EvaluationFormTextQuestionAutomationProperty
()
haddock_workaround_ :: EvaluationFormTextQuestionPropertiesProperty -> ()
automation :: EvaluationFormTextQuestionPropertiesProperty
-> Maybe EvaluationFormTextQuestionAutomationProperty
haddock_workaround_ :: ()
automation :: Maybe EvaluationFormTextQuestionAutomationProperty
..}
= EvaluationFormTextQuestionPropertiesProperty
{automation :: Maybe EvaluationFormTextQuestionAutomationProperty
automation = EvaluationFormTextQuestionAutomationProperty
-> Maybe EvaluationFormTextQuestionAutomationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"Automation" EvaluationFormTextQuestionPropertiesProperty
EvaluationFormTextQuestionAutomationProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}