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