module Stratosphere.Connect.EvaluationForm.EvaluationFormSingleSelectQuestionOptionProperty (
module Exports,
EvaluationFormSingleSelectQuestionOptionProperty(..),
mkEvaluationFormSingleSelectQuestionOptionProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Connect.EvaluationForm.AutomaticFailConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EvaluationFormSingleSelectQuestionOptionProperty
=
EvaluationFormSingleSelectQuestionOptionProperty {EvaluationFormSingleSelectQuestionOptionProperty -> ()
haddock_workaround_ :: (),
EvaluationFormSingleSelectQuestionOptionProperty
-> Maybe (Value Bool)
automaticFail :: (Prelude.Maybe (Value Prelude.Bool)),
EvaluationFormSingleSelectQuestionOptionProperty
-> Maybe AutomaticFailConfigurationProperty
automaticFailConfiguration :: (Prelude.Maybe AutomaticFailConfigurationProperty),
EvaluationFormSingleSelectQuestionOptionProperty -> Value Text
refId :: (Value Prelude.Text),
EvaluationFormSingleSelectQuestionOptionProperty
-> Maybe (Value Integer)
score :: (Prelude.Maybe (Value Prelude.Integer)),
EvaluationFormSingleSelectQuestionOptionProperty -> Value Text
text :: (Value Prelude.Text)}
deriving stock (EvaluationFormSingleSelectQuestionOptionProperty
-> EvaluationFormSingleSelectQuestionOptionProperty -> Bool
(EvaluationFormSingleSelectQuestionOptionProperty
-> EvaluationFormSingleSelectQuestionOptionProperty -> Bool)
-> (EvaluationFormSingleSelectQuestionOptionProperty
-> EvaluationFormSingleSelectQuestionOptionProperty -> Bool)
-> Eq EvaluationFormSingleSelectQuestionOptionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EvaluationFormSingleSelectQuestionOptionProperty
-> EvaluationFormSingleSelectQuestionOptionProperty -> Bool
== :: EvaluationFormSingleSelectQuestionOptionProperty
-> EvaluationFormSingleSelectQuestionOptionProperty -> Bool
$c/= :: EvaluationFormSingleSelectQuestionOptionProperty
-> EvaluationFormSingleSelectQuestionOptionProperty -> Bool
/= :: EvaluationFormSingleSelectQuestionOptionProperty
-> EvaluationFormSingleSelectQuestionOptionProperty -> Bool
Prelude.Eq, Int -> EvaluationFormSingleSelectQuestionOptionProperty -> ShowS
[EvaluationFormSingleSelectQuestionOptionProperty] -> ShowS
EvaluationFormSingleSelectQuestionOptionProperty -> String
(Int -> EvaluationFormSingleSelectQuestionOptionProperty -> ShowS)
-> (EvaluationFormSingleSelectQuestionOptionProperty -> String)
-> ([EvaluationFormSingleSelectQuestionOptionProperty] -> ShowS)
-> Show EvaluationFormSingleSelectQuestionOptionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EvaluationFormSingleSelectQuestionOptionProperty -> ShowS
showsPrec :: Int -> EvaluationFormSingleSelectQuestionOptionProperty -> ShowS
$cshow :: EvaluationFormSingleSelectQuestionOptionProperty -> String
show :: EvaluationFormSingleSelectQuestionOptionProperty -> String
$cshowList :: [EvaluationFormSingleSelectQuestionOptionProperty] -> ShowS
showList :: [EvaluationFormSingleSelectQuestionOptionProperty] -> ShowS
Prelude.Show)
mkEvaluationFormSingleSelectQuestionOptionProperty ::
Value Prelude.Text
-> Value Prelude.Text
-> EvaluationFormSingleSelectQuestionOptionProperty
mkEvaluationFormSingleSelectQuestionOptionProperty :: Value Text
-> Value Text -> EvaluationFormSingleSelectQuestionOptionProperty
mkEvaluationFormSingleSelectQuestionOptionProperty Value Text
refId Value Text
text
= EvaluationFormSingleSelectQuestionOptionProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), refId :: Value Text
refId = Value Text
refId, text :: Value Text
text = Value Text
text,
automaticFail :: Maybe (Value Bool)
automaticFail = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
automaticFailConfiguration :: Maybe AutomaticFailConfigurationProperty
automaticFailConfiguration = Maybe AutomaticFailConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
score :: Maybe (Value Integer)
score = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties EvaluationFormSingleSelectQuestionOptionProperty where
toResourceProperties :: EvaluationFormSingleSelectQuestionOptionProperty
-> ResourceProperties
toResourceProperties
EvaluationFormSingleSelectQuestionOptionProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe AutomaticFailConfigurationProperty
()
Value Text
haddock_workaround_ :: EvaluationFormSingleSelectQuestionOptionProperty -> ()
automaticFail :: EvaluationFormSingleSelectQuestionOptionProperty
-> Maybe (Value Bool)
automaticFailConfiguration :: EvaluationFormSingleSelectQuestionOptionProperty
-> Maybe AutomaticFailConfigurationProperty
refId :: EvaluationFormSingleSelectQuestionOptionProperty -> Value Text
score :: EvaluationFormSingleSelectQuestionOptionProperty
-> Maybe (Value Integer)
text :: EvaluationFormSingleSelectQuestionOptionProperty -> Value Text
haddock_workaround_ :: ()
automaticFail :: Maybe (Value Bool)
automaticFailConfiguration :: Maybe AutomaticFailConfigurationProperty
refId :: Value Text
score :: Maybe (Value Integer)
text :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Connect::EvaluationForm.EvaluationFormSingleSelectQuestionOption",
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
"RefId" 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..= Value Text
refId, Key
"Text" 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..= Value Text
text]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AutomaticFail" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
automaticFail,
Key -> AutomaticFailConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AutomaticFailConfiguration"
(AutomaticFailConfigurationProperty -> (Key, Value))
-> Maybe AutomaticFailConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AutomaticFailConfigurationProperty
automaticFailConfiguration,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Score" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
score]))}
instance JSON.ToJSON EvaluationFormSingleSelectQuestionOptionProperty where
toJSON :: EvaluationFormSingleSelectQuestionOptionProperty -> Value
toJSON EvaluationFormSingleSelectQuestionOptionProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe AutomaticFailConfigurationProperty
()
Value Text
haddock_workaround_ :: EvaluationFormSingleSelectQuestionOptionProperty -> ()
automaticFail :: EvaluationFormSingleSelectQuestionOptionProperty
-> Maybe (Value Bool)
automaticFailConfiguration :: EvaluationFormSingleSelectQuestionOptionProperty
-> Maybe AutomaticFailConfigurationProperty
refId :: EvaluationFormSingleSelectQuestionOptionProperty -> Value Text
score :: EvaluationFormSingleSelectQuestionOptionProperty
-> Maybe (Value Integer)
text :: EvaluationFormSingleSelectQuestionOptionProperty -> Value Text
haddock_workaround_ :: ()
automaticFail :: Maybe (Value Bool)
automaticFailConfiguration :: Maybe AutomaticFailConfigurationProperty
refId :: Value Text
score :: Maybe (Value Integer)
text :: Value Text
..}
= [(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
"RefId" 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..= Value Text
refId, Key
"Text" 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..= Value Text
text]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AutomaticFail" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
automaticFail,
Key -> AutomaticFailConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AutomaticFailConfiguration"
(AutomaticFailConfigurationProperty -> (Key, Value))
-> Maybe AutomaticFailConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AutomaticFailConfigurationProperty
automaticFailConfiguration,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Score" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
score])))
instance Property "AutomaticFail" EvaluationFormSingleSelectQuestionOptionProperty where
type PropertyType "AutomaticFail" EvaluationFormSingleSelectQuestionOptionProperty = Value Prelude.Bool
set :: PropertyType
"AutomaticFail" EvaluationFormSingleSelectQuestionOptionProperty
-> EvaluationFormSingleSelectQuestionOptionProperty
-> EvaluationFormSingleSelectQuestionOptionProperty
set PropertyType
"AutomaticFail" EvaluationFormSingleSelectQuestionOptionProperty
newValue EvaluationFormSingleSelectQuestionOptionProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe AutomaticFailConfigurationProperty
()
Value Text
haddock_workaround_ :: EvaluationFormSingleSelectQuestionOptionProperty -> ()
automaticFail :: EvaluationFormSingleSelectQuestionOptionProperty
-> Maybe (Value Bool)
automaticFailConfiguration :: EvaluationFormSingleSelectQuestionOptionProperty
-> Maybe AutomaticFailConfigurationProperty
refId :: EvaluationFormSingleSelectQuestionOptionProperty -> Value Text
score :: EvaluationFormSingleSelectQuestionOptionProperty
-> Maybe (Value Integer)
text :: EvaluationFormSingleSelectQuestionOptionProperty -> Value Text
haddock_workaround_ :: ()
automaticFail :: Maybe (Value Bool)
automaticFailConfiguration :: Maybe AutomaticFailConfigurationProperty
refId :: Value Text
score :: Maybe (Value Integer)
text :: Value Text
..}
= EvaluationFormSingleSelectQuestionOptionProperty
{automaticFail :: Maybe (Value Bool)
automaticFail = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"AutomaticFail" EvaluationFormSingleSelectQuestionOptionProperty
Value Bool
newValue, Maybe (Value Integer)
Maybe AutomaticFailConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
automaticFailConfiguration :: Maybe AutomaticFailConfigurationProperty
refId :: Value Text
score :: Maybe (Value Integer)
text :: Value Text
haddock_workaround_ :: ()
automaticFailConfiguration :: Maybe AutomaticFailConfigurationProperty
refId :: Value Text
score :: Maybe (Value Integer)
text :: Value Text
..}
instance Property "AutomaticFailConfiguration" EvaluationFormSingleSelectQuestionOptionProperty where
type PropertyType "AutomaticFailConfiguration" EvaluationFormSingleSelectQuestionOptionProperty = AutomaticFailConfigurationProperty
set :: PropertyType
"AutomaticFailConfiguration"
EvaluationFormSingleSelectQuestionOptionProperty
-> EvaluationFormSingleSelectQuestionOptionProperty
-> EvaluationFormSingleSelectQuestionOptionProperty
set PropertyType
"AutomaticFailConfiguration"
EvaluationFormSingleSelectQuestionOptionProperty
newValue EvaluationFormSingleSelectQuestionOptionProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe AutomaticFailConfigurationProperty
()
Value Text
haddock_workaround_ :: EvaluationFormSingleSelectQuestionOptionProperty -> ()
automaticFail :: EvaluationFormSingleSelectQuestionOptionProperty
-> Maybe (Value Bool)
automaticFailConfiguration :: EvaluationFormSingleSelectQuestionOptionProperty
-> Maybe AutomaticFailConfigurationProperty
refId :: EvaluationFormSingleSelectQuestionOptionProperty -> Value Text
score :: EvaluationFormSingleSelectQuestionOptionProperty
-> Maybe (Value Integer)
text :: EvaluationFormSingleSelectQuestionOptionProperty -> Value Text
haddock_workaround_ :: ()
automaticFail :: Maybe (Value Bool)
automaticFailConfiguration :: Maybe AutomaticFailConfigurationProperty
refId :: Value Text
score :: Maybe (Value Integer)
text :: Value Text
..}
= EvaluationFormSingleSelectQuestionOptionProperty
{automaticFailConfiguration :: Maybe AutomaticFailConfigurationProperty
automaticFailConfiguration = AutomaticFailConfigurationProperty
-> Maybe AutomaticFailConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"AutomaticFailConfiguration"
EvaluationFormSingleSelectQuestionOptionProperty
AutomaticFailConfigurationProperty
newValue, Maybe (Value Bool)
Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: ()
automaticFail :: Maybe (Value Bool)
refId :: Value Text
score :: Maybe (Value Integer)
text :: Value Text
haddock_workaround_ :: ()
automaticFail :: Maybe (Value Bool)
refId :: Value Text
score :: Maybe (Value Integer)
text :: Value Text
..}
instance Property "RefId" EvaluationFormSingleSelectQuestionOptionProperty where
type PropertyType "RefId" EvaluationFormSingleSelectQuestionOptionProperty = Value Prelude.Text
set :: PropertyType
"RefId" EvaluationFormSingleSelectQuestionOptionProperty
-> EvaluationFormSingleSelectQuestionOptionProperty
-> EvaluationFormSingleSelectQuestionOptionProperty
set PropertyType
"RefId" EvaluationFormSingleSelectQuestionOptionProperty
newValue EvaluationFormSingleSelectQuestionOptionProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe AutomaticFailConfigurationProperty
()
Value Text
haddock_workaround_ :: EvaluationFormSingleSelectQuestionOptionProperty -> ()
automaticFail :: EvaluationFormSingleSelectQuestionOptionProperty
-> Maybe (Value Bool)
automaticFailConfiguration :: EvaluationFormSingleSelectQuestionOptionProperty
-> Maybe AutomaticFailConfigurationProperty
refId :: EvaluationFormSingleSelectQuestionOptionProperty -> Value Text
score :: EvaluationFormSingleSelectQuestionOptionProperty
-> Maybe (Value Integer)
text :: EvaluationFormSingleSelectQuestionOptionProperty -> Value Text
haddock_workaround_ :: ()
automaticFail :: Maybe (Value Bool)
automaticFailConfiguration :: Maybe AutomaticFailConfigurationProperty
refId :: Value Text
score :: Maybe (Value Integer)
text :: Value Text
..}
= EvaluationFormSingleSelectQuestionOptionProperty
{refId :: Value Text
refId = PropertyType
"RefId" EvaluationFormSingleSelectQuestionOptionProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Integer)
Maybe AutomaticFailConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
automaticFail :: Maybe (Value Bool)
automaticFailConfiguration :: Maybe AutomaticFailConfigurationProperty
score :: Maybe (Value Integer)
text :: Value Text
haddock_workaround_ :: ()
automaticFail :: Maybe (Value Bool)
automaticFailConfiguration :: Maybe AutomaticFailConfigurationProperty
score :: Maybe (Value Integer)
text :: Value Text
..}
instance Property "Score" EvaluationFormSingleSelectQuestionOptionProperty where
type PropertyType "Score" EvaluationFormSingleSelectQuestionOptionProperty = Value Prelude.Integer
set :: PropertyType
"Score" EvaluationFormSingleSelectQuestionOptionProperty
-> EvaluationFormSingleSelectQuestionOptionProperty
-> EvaluationFormSingleSelectQuestionOptionProperty
set PropertyType
"Score" EvaluationFormSingleSelectQuestionOptionProperty
newValue EvaluationFormSingleSelectQuestionOptionProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe AutomaticFailConfigurationProperty
()
Value Text
haddock_workaround_ :: EvaluationFormSingleSelectQuestionOptionProperty -> ()
automaticFail :: EvaluationFormSingleSelectQuestionOptionProperty
-> Maybe (Value Bool)
automaticFailConfiguration :: EvaluationFormSingleSelectQuestionOptionProperty
-> Maybe AutomaticFailConfigurationProperty
refId :: EvaluationFormSingleSelectQuestionOptionProperty -> Value Text
score :: EvaluationFormSingleSelectQuestionOptionProperty
-> Maybe (Value Integer)
text :: EvaluationFormSingleSelectQuestionOptionProperty -> Value Text
haddock_workaround_ :: ()
automaticFail :: Maybe (Value Bool)
automaticFailConfiguration :: Maybe AutomaticFailConfigurationProperty
refId :: Value Text
score :: Maybe (Value Integer)
text :: Value Text
..}
= EvaluationFormSingleSelectQuestionOptionProperty
{score :: Maybe (Value Integer)
score = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"Score" EvaluationFormSingleSelectQuestionOptionProperty
Value Integer
newValue, Maybe (Value Bool)
Maybe AutomaticFailConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
automaticFail :: Maybe (Value Bool)
automaticFailConfiguration :: Maybe AutomaticFailConfigurationProperty
refId :: Value Text
text :: Value Text
haddock_workaround_ :: ()
automaticFail :: Maybe (Value Bool)
automaticFailConfiguration :: Maybe AutomaticFailConfigurationProperty
refId :: Value Text
text :: Value Text
..}
instance Property "Text" EvaluationFormSingleSelectQuestionOptionProperty where
type PropertyType "Text" EvaluationFormSingleSelectQuestionOptionProperty = Value Prelude.Text
set :: PropertyType
"Text" EvaluationFormSingleSelectQuestionOptionProperty
-> EvaluationFormSingleSelectQuestionOptionProperty
-> EvaluationFormSingleSelectQuestionOptionProperty
set PropertyType
"Text" EvaluationFormSingleSelectQuestionOptionProperty
newValue EvaluationFormSingleSelectQuestionOptionProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe AutomaticFailConfigurationProperty
()
Value Text
haddock_workaround_ :: EvaluationFormSingleSelectQuestionOptionProperty -> ()
automaticFail :: EvaluationFormSingleSelectQuestionOptionProperty
-> Maybe (Value Bool)
automaticFailConfiguration :: EvaluationFormSingleSelectQuestionOptionProperty
-> Maybe AutomaticFailConfigurationProperty
refId :: EvaluationFormSingleSelectQuestionOptionProperty -> Value Text
score :: EvaluationFormSingleSelectQuestionOptionProperty
-> Maybe (Value Integer)
text :: EvaluationFormSingleSelectQuestionOptionProperty -> Value Text
haddock_workaround_ :: ()
automaticFail :: Maybe (Value Bool)
automaticFailConfiguration :: Maybe AutomaticFailConfigurationProperty
refId :: Value Text
score :: Maybe (Value Integer)
text :: Value Text
..}
= EvaluationFormSingleSelectQuestionOptionProperty
{text :: Value Text
text = PropertyType
"Text" EvaluationFormSingleSelectQuestionOptionProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Integer)
Maybe AutomaticFailConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
automaticFail :: Maybe (Value Bool)
automaticFailConfiguration :: Maybe AutomaticFailConfigurationProperty
refId :: Value Text
score :: Maybe (Value Integer)
haddock_workaround_ :: ()
automaticFail :: Maybe (Value Bool)
automaticFailConfiguration :: Maybe AutomaticFailConfigurationProperty
refId :: Value Text
score :: Maybe (Value Integer)
..}