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