module Stratosphere.Connect.EvaluationForm.EvaluationFormNumericQuestionOptionProperty (
module Exports, EvaluationFormNumericQuestionOptionProperty(..),
mkEvaluationFormNumericQuestionOptionProperty
) 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 EvaluationFormNumericQuestionOptionProperty
=
EvaluationFormNumericQuestionOptionProperty {EvaluationFormNumericQuestionOptionProperty -> ()
haddock_workaround_ :: (),
EvaluationFormNumericQuestionOptionProperty -> Maybe (Value Bool)
automaticFail :: (Prelude.Maybe (Value Prelude.Bool)),
EvaluationFormNumericQuestionOptionProperty
-> Maybe AutomaticFailConfigurationProperty
automaticFailConfiguration :: (Prelude.Maybe AutomaticFailConfigurationProperty),
EvaluationFormNumericQuestionOptionProperty -> Value Integer
maxValue :: (Value Prelude.Integer),
EvaluationFormNumericQuestionOptionProperty -> Value Integer
minValue :: (Value Prelude.Integer),
EvaluationFormNumericQuestionOptionProperty
-> Maybe (Value Integer)
score :: (Prelude.Maybe (Value Prelude.Integer))}
deriving stock (EvaluationFormNumericQuestionOptionProperty
-> EvaluationFormNumericQuestionOptionProperty -> Bool
(EvaluationFormNumericQuestionOptionProperty
-> EvaluationFormNumericQuestionOptionProperty -> Bool)
-> (EvaluationFormNumericQuestionOptionProperty
-> EvaluationFormNumericQuestionOptionProperty -> Bool)
-> Eq EvaluationFormNumericQuestionOptionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EvaluationFormNumericQuestionOptionProperty
-> EvaluationFormNumericQuestionOptionProperty -> Bool
== :: EvaluationFormNumericQuestionOptionProperty
-> EvaluationFormNumericQuestionOptionProperty -> Bool
$c/= :: EvaluationFormNumericQuestionOptionProperty
-> EvaluationFormNumericQuestionOptionProperty -> Bool
/= :: EvaluationFormNumericQuestionOptionProperty
-> EvaluationFormNumericQuestionOptionProperty -> Bool
Prelude.Eq, Int -> EvaluationFormNumericQuestionOptionProperty -> ShowS
[EvaluationFormNumericQuestionOptionProperty] -> ShowS
EvaluationFormNumericQuestionOptionProperty -> String
(Int -> EvaluationFormNumericQuestionOptionProperty -> ShowS)
-> (EvaluationFormNumericQuestionOptionProperty -> String)
-> ([EvaluationFormNumericQuestionOptionProperty] -> ShowS)
-> Show EvaluationFormNumericQuestionOptionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EvaluationFormNumericQuestionOptionProperty -> ShowS
showsPrec :: Int -> EvaluationFormNumericQuestionOptionProperty -> ShowS
$cshow :: EvaluationFormNumericQuestionOptionProperty -> String
show :: EvaluationFormNumericQuestionOptionProperty -> String
$cshowList :: [EvaluationFormNumericQuestionOptionProperty] -> ShowS
showList :: [EvaluationFormNumericQuestionOptionProperty] -> ShowS
Prelude.Show)
mkEvaluationFormNumericQuestionOptionProperty ::
Value Prelude.Integer
-> Value Prelude.Integer
-> EvaluationFormNumericQuestionOptionProperty
mkEvaluationFormNumericQuestionOptionProperty :: Value Integer
-> Value Integer -> EvaluationFormNumericQuestionOptionProperty
mkEvaluationFormNumericQuestionOptionProperty Value Integer
maxValue Value Integer
minValue
= EvaluationFormNumericQuestionOptionProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), maxValue :: Value Integer
maxValue = Value Integer
maxValue,
minValue :: Value Integer
minValue = Value Integer
minValue, 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 EvaluationFormNumericQuestionOptionProperty where
toResourceProperties :: EvaluationFormNumericQuestionOptionProperty -> ResourceProperties
toResourceProperties
EvaluationFormNumericQuestionOptionProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe AutomaticFailConfigurationProperty
()
Value Integer
haddock_workaround_ :: EvaluationFormNumericQuestionOptionProperty -> ()
automaticFail :: EvaluationFormNumericQuestionOptionProperty -> Maybe (Value Bool)
automaticFailConfiguration :: EvaluationFormNumericQuestionOptionProperty
-> Maybe AutomaticFailConfigurationProperty
maxValue :: EvaluationFormNumericQuestionOptionProperty -> Value Integer
minValue :: EvaluationFormNumericQuestionOptionProperty -> Value Integer
score :: EvaluationFormNumericQuestionOptionProperty
-> Maybe (Value Integer)
haddock_workaround_ :: ()
automaticFail :: Maybe (Value Bool)
automaticFailConfiguration :: Maybe AutomaticFailConfigurationProperty
maxValue :: Value Integer
minValue :: Value Integer
score :: Maybe (Value Integer)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Connect::EvaluationForm.EvaluationFormNumericQuestionOption",
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
"MaxValue" 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..= Value Integer
maxValue, Key
"MinValue" 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..= Value Integer
minValue]
([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 EvaluationFormNumericQuestionOptionProperty where
toJSON :: EvaluationFormNumericQuestionOptionProperty -> Value
toJSON EvaluationFormNumericQuestionOptionProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe AutomaticFailConfigurationProperty
()
Value Integer
haddock_workaround_ :: EvaluationFormNumericQuestionOptionProperty -> ()
automaticFail :: EvaluationFormNumericQuestionOptionProperty -> Maybe (Value Bool)
automaticFailConfiguration :: EvaluationFormNumericQuestionOptionProperty
-> Maybe AutomaticFailConfigurationProperty
maxValue :: EvaluationFormNumericQuestionOptionProperty -> Value Integer
minValue :: EvaluationFormNumericQuestionOptionProperty -> Value Integer
score :: EvaluationFormNumericQuestionOptionProperty
-> Maybe (Value Integer)
haddock_workaround_ :: ()
automaticFail :: Maybe (Value Bool)
automaticFailConfiguration :: Maybe AutomaticFailConfigurationProperty
maxValue :: Value Integer
minValue :: Value Integer
score :: Maybe (Value Integer)
..}
= [(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
"MaxValue" 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..= Value Integer
maxValue, Key
"MinValue" 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..= Value Integer
minValue]
([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" EvaluationFormNumericQuestionOptionProperty where
type PropertyType "AutomaticFail" EvaluationFormNumericQuestionOptionProperty = Value Prelude.Bool
set :: PropertyType
"AutomaticFail" EvaluationFormNumericQuestionOptionProperty
-> EvaluationFormNumericQuestionOptionProperty
-> EvaluationFormNumericQuestionOptionProperty
set PropertyType
"AutomaticFail" EvaluationFormNumericQuestionOptionProperty
newValue EvaluationFormNumericQuestionOptionProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe AutomaticFailConfigurationProperty
()
Value Integer
haddock_workaround_ :: EvaluationFormNumericQuestionOptionProperty -> ()
automaticFail :: EvaluationFormNumericQuestionOptionProperty -> Maybe (Value Bool)
automaticFailConfiguration :: EvaluationFormNumericQuestionOptionProperty
-> Maybe AutomaticFailConfigurationProperty
maxValue :: EvaluationFormNumericQuestionOptionProperty -> Value Integer
minValue :: EvaluationFormNumericQuestionOptionProperty -> Value Integer
score :: EvaluationFormNumericQuestionOptionProperty
-> Maybe (Value Integer)
haddock_workaround_ :: ()
automaticFail :: Maybe (Value Bool)
automaticFailConfiguration :: Maybe AutomaticFailConfigurationProperty
maxValue :: Value Integer
minValue :: Value Integer
score :: Maybe (Value Integer)
..}
= EvaluationFormNumericQuestionOptionProperty
{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" EvaluationFormNumericQuestionOptionProperty
Value Bool
newValue, Maybe (Value Integer)
Maybe AutomaticFailConfigurationProperty
()
Value Integer
haddock_workaround_ :: ()
automaticFailConfiguration :: Maybe AutomaticFailConfigurationProperty
maxValue :: Value Integer
minValue :: Value Integer
score :: Maybe (Value Integer)
haddock_workaround_ :: ()
automaticFailConfiguration :: Maybe AutomaticFailConfigurationProperty
maxValue :: Value Integer
minValue :: Value Integer
score :: Maybe (Value Integer)
..}
instance Property "AutomaticFailConfiguration" EvaluationFormNumericQuestionOptionProperty where
type PropertyType "AutomaticFailConfiguration" EvaluationFormNumericQuestionOptionProperty = AutomaticFailConfigurationProperty
set :: PropertyType
"AutomaticFailConfiguration"
EvaluationFormNumericQuestionOptionProperty
-> EvaluationFormNumericQuestionOptionProperty
-> EvaluationFormNumericQuestionOptionProperty
set PropertyType
"AutomaticFailConfiguration"
EvaluationFormNumericQuestionOptionProperty
newValue EvaluationFormNumericQuestionOptionProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe AutomaticFailConfigurationProperty
()
Value Integer
haddock_workaround_ :: EvaluationFormNumericQuestionOptionProperty -> ()
automaticFail :: EvaluationFormNumericQuestionOptionProperty -> Maybe (Value Bool)
automaticFailConfiguration :: EvaluationFormNumericQuestionOptionProperty
-> Maybe AutomaticFailConfigurationProperty
maxValue :: EvaluationFormNumericQuestionOptionProperty -> Value Integer
minValue :: EvaluationFormNumericQuestionOptionProperty -> Value Integer
score :: EvaluationFormNumericQuestionOptionProperty
-> Maybe (Value Integer)
haddock_workaround_ :: ()
automaticFail :: Maybe (Value Bool)
automaticFailConfiguration :: Maybe AutomaticFailConfigurationProperty
maxValue :: Value Integer
minValue :: Value Integer
score :: Maybe (Value Integer)
..}
= EvaluationFormNumericQuestionOptionProperty
{automaticFailConfiguration :: Maybe AutomaticFailConfigurationProperty
automaticFailConfiguration = AutomaticFailConfigurationProperty
-> Maybe AutomaticFailConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"AutomaticFailConfiguration"
EvaluationFormNumericQuestionOptionProperty
AutomaticFailConfigurationProperty
newValue, Maybe (Value Bool)
Maybe (Value Integer)
()
Value Integer
haddock_workaround_ :: ()
automaticFail :: Maybe (Value Bool)
maxValue :: Value Integer
minValue :: Value Integer
score :: Maybe (Value Integer)
haddock_workaround_ :: ()
automaticFail :: Maybe (Value Bool)
maxValue :: Value Integer
minValue :: Value Integer
score :: Maybe (Value Integer)
..}
instance Property "MaxValue" EvaluationFormNumericQuestionOptionProperty where
type PropertyType "MaxValue" EvaluationFormNumericQuestionOptionProperty = Value Prelude.Integer
set :: PropertyType "MaxValue" EvaluationFormNumericQuestionOptionProperty
-> EvaluationFormNumericQuestionOptionProperty
-> EvaluationFormNumericQuestionOptionProperty
set PropertyType "MaxValue" EvaluationFormNumericQuestionOptionProperty
newValue EvaluationFormNumericQuestionOptionProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe AutomaticFailConfigurationProperty
()
Value Integer
haddock_workaround_ :: EvaluationFormNumericQuestionOptionProperty -> ()
automaticFail :: EvaluationFormNumericQuestionOptionProperty -> Maybe (Value Bool)
automaticFailConfiguration :: EvaluationFormNumericQuestionOptionProperty
-> Maybe AutomaticFailConfigurationProperty
maxValue :: EvaluationFormNumericQuestionOptionProperty -> Value Integer
minValue :: EvaluationFormNumericQuestionOptionProperty -> Value Integer
score :: EvaluationFormNumericQuestionOptionProperty
-> Maybe (Value Integer)
haddock_workaround_ :: ()
automaticFail :: Maybe (Value Bool)
automaticFailConfiguration :: Maybe AutomaticFailConfigurationProperty
maxValue :: Value Integer
minValue :: Value Integer
score :: Maybe (Value Integer)
..}
= EvaluationFormNumericQuestionOptionProperty
{maxValue :: Value Integer
maxValue = PropertyType "MaxValue" EvaluationFormNumericQuestionOptionProperty
Value Integer
newValue, Maybe (Value Bool)
Maybe (Value Integer)
Maybe AutomaticFailConfigurationProperty
()
Value Integer
haddock_workaround_ :: ()
automaticFail :: Maybe (Value Bool)
automaticFailConfiguration :: Maybe AutomaticFailConfigurationProperty
minValue :: Value Integer
score :: Maybe (Value Integer)
haddock_workaround_ :: ()
automaticFail :: Maybe (Value Bool)
automaticFailConfiguration :: Maybe AutomaticFailConfigurationProperty
minValue :: Value Integer
score :: Maybe (Value Integer)
..}
instance Property "MinValue" EvaluationFormNumericQuestionOptionProperty where
type PropertyType "MinValue" EvaluationFormNumericQuestionOptionProperty = Value Prelude.Integer
set :: PropertyType "MinValue" EvaluationFormNumericQuestionOptionProperty
-> EvaluationFormNumericQuestionOptionProperty
-> EvaluationFormNumericQuestionOptionProperty
set PropertyType "MinValue" EvaluationFormNumericQuestionOptionProperty
newValue EvaluationFormNumericQuestionOptionProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe AutomaticFailConfigurationProperty
()
Value Integer
haddock_workaround_ :: EvaluationFormNumericQuestionOptionProperty -> ()
automaticFail :: EvaluationFormNumericQuestionOptionProperty -> Maybe (Value Bool)
automaticFailConfiguration :: EvaluationFormNumericQuestionOptionProperty
-> Maybe AutomaticFailConfigurationProperty
maxValue :: EvaluationFormNumericQuestionOptionProperty -> Value Integer
minValue :: EvaluationFormNumericQuestionOptionProperty -> Value Integer
score :: EvaluationFormNumericQuestionOptionProperty
-> Maybe (Value Integer)
haddock_workaround_ :: ()
automaticFail :: Maybe (Value Bool)
automaticFailConfiguration :: Maybe AutomaticFailConfigurationProperty
maxValue :: Value Integer
minValue :: Value Integer
score :: Maybe (Value Integer)
..}
= EvaluationFormNumericQuestionOptionProperty
{minValue :: Value Integer
minValue = PropertyType "MinValue" EvaluationFormNumericQuestionOptionProperty
Value Integer
newValue, Maybe (Value Bool)
Maybe (Value Integer)
Maybe AutomaticFailConfigurationProperty
()
Value Integer
haddock_workaround_ :: ()
automaticFail :: Maybe (Value Bool)
automaticFailConfiguration :: Maybe AutomaticFailConfigurationProperty
maxValue :: Value Integer
score :: Maybe (Value Integer)
haddock_workaround_ :: ()
automaticFail :: Maybe (Value Bool)
automaticFailConfiguration :: Maybe AutomaticFailConfigurationProperty
maxValue :: Value Integer
score :: Maybe (Value Integer)
..}
instance Property "Score" EvaluationFormNumericQuestionOptionProperty where
type PropertyType "Score" EvaluationFormNumericQuestionOptionProperty = Value Prelude.Integer
set :: PropertyType "Score" EvaluationFormNumericQuestionOptionProperty
-> EvaluationFormNumericQuestionOptionProperty
-> EvaluationFormNumericQuestionOptionProperty
set PropertyType "Score" EvaluationFormNumericQuestionOptionProperty
newValue EvaluationFormNumericQuestionOptionProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe AutomaticFailConfigurationProperty
()
Value Integer
haddock_workaround_ :: EvaluationFormNumericQuestionOptionProperty -> ()
automaticFail :: EvaluationFormNumericQuestionOptionProperty -> Maybe (Value Bool)
automaticFailConfiguration :: EvaluationFormNumericQuestionOptionProperty
-> Maybe AutomaticFailConfigurationProperty
maxValue :: EvaluationFormNumericQuestionOptionProperty -> Value Integer
minValue :: EvaluationFormNumericQuestionOptionProperty -> Value Integer
score :: EvaluationFormNumericQuestionOptionProperty
-> Maybe (Value Integer)
haddock_workaround_ :: ()
automaticFail :: Maybe (Value Bool)
automaticFailConfiguration :: Maybe AutomaticFailConfigurationProperty
maxValue :: Value Integer
minValue :: Value Integer
score :: Maybe (Value Integer)
..}
= EvaluationFormNumericQuestionOptionProperty
{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" EvaluationFormNumericQuestionOptionProperty
Value Integer
newValue, Maybe (Value Bool)
Maybe AutomaticFailConfigurationProperty
()
Value Integer
haddock_workaround_ :: ()
automaticFail :: Maybe (Value Bool)
automaticFailConfiguration :: Maybe AutomaticFailConfigurationProperty
maxValue :: Value Integer
minValue :: Value Integer
haddock_workaround_ :: ()
automaticFail :: Maybe (Value Bool)
automaticFailConfiguration :: Maybe AutomaticFailConfigurationProperty
maxValue :: Value Integer
minValue :: Value Integer
..}