stratosphere-connect-1.0.0: gen/Stratosphere/Connect/EvaluationForm/EvaluationFormSingleSelectQuestionOptionProperty.hs
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
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-evaluationform-evaluationformsingleselectquestionoption.html>
EvaluationFormSingleSelectQuestionOptionProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-evaluationform-evaluationformsingleselectquestionoption.html#cfn-connect-evaluationform-evaluationformsingleselectquestionoption-automaticfail>
automaticFail :: (Prelude.Maybe (Value Prelude.Bool)),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-evaluationform-evaluationformsingleselectquestionoption.html#cfn-connect-evaluationform-evaluationformsingleselectquestionoption-automaticfailconfiguration>
automaticFailConfiguration :: (Prelude.Maybe AutomaticFailConfigurationProperty),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-evaluationform-evaluationformsingleselectquestionoption.html#cfn-connect-evaluationform-evaluationformsingleselectquestionoption-refid>
refId :: (Value Prelude.Text),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-evaluationform-evaluationformsingleselectquestionoption.html#cfn-connect-evaluationform-evaluationformsingleselectquestionoption-score>
score :: (Prelude.Maybe (Value Prelude.Integer)),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-evaluationform-evaluationformsingleselectquestionoption.html#cfn-connect-evaluationform-evaluationformsingleselectquestionoption-text>
text :: (Value Prelude.Text)}
deriving stock (Prelude.Eq, Prelude.Show)
mkEvaluationFormSingleSelectQuestionOptionProperty ::
Value Prelude.Text
-> Value Prelude.Text
-> EvaluationFormSingleSelectQuestionOptionProperty
mkEvaluationFormSingleSelectQuestionOptionProperty refId text
= EvaluationFormSingleSelectQuestionOptionProperty
{haddock_workaround_ = (), refId = refId, text = text,
automaticFail = Prelude.Nothing,
automaticFailConfiguration = Prelude.Nothing,
score = Prelude.Nothing}
instance ToResourceProperties EvaluationFormSingleSelectQuestionOptionProperty where
toResourceProperties
EvaluationFormSingleSelectQuestionOptionProperty {..}
= ResourceProperties
{awsType = "AWS::Connect::EvaluationForm.EvaluationFormSingleSelectQuestionOption",
supportsTags = Prelude.False,
properties = Prelude.fromList
((Prelude.<>)
["RefId" JSON..= refId, "Text" JSON..= text]
(Prelude.catMaybes
[(JSON..=) "AutomaticFail" Prelude.<$> automaticFail,
(JSON..=) "AutomaticFailConfiguration"
Prelude.<$> automaticFailConfiguration,
(JSON..=) "Score" Prelude.<$> score]))}
instance JSON.ToJSON EvaluationFormSingleSelectQuestionOptionProperty where
toJSON EvaluationFormSingleSelectQuestionOptionProperty {..}
= JSON.object
(Prelude.fromList
((Prelude.<>)
["RefId" JSON..= refId, "Text" JSON..= text]
(Prelude.catMaybes
[(JSON..=) "AutomaticFail" Prelude.<$> automaticFail,
(JSON..=) "AutomaticFailConfiguration"
Prelude.<$> automaticFailConfiguration,
(JSON..=) "Score" Prelude.<$> score])))
instance Property "AutomaticFail" EvaluationFormSingleSelectQuestionOptionProperty where
type PropertyType "AutomaticFail" EvaluationFormSingleSelectQuestionOptionProperty = Value Prelude.Bool
set newValue EvaluationFormSingleSelectQuestionOptionProperty {..}
= EvaluationFormSingleSelectQuestionOptionProperty
{automaticFail = Prelude.pure newValue, ..}
instance Property "AutomaticFailConfiguration" EvaluationFormSingleSelectQuestionOptionProperty where
type PropertyType "AutomaticFailConfiguration" EvaluationFormSingleSelectQuestionOptionProperty = AutomaticFailConfigurationProperty
set newValue EvaluationFormSingleSelectQuestionOptionProperty {..}
= EvaluationFormSingleSelectQuestionOptionProperty
{automaticFailConfiguration = Prelude.pure newValue, ..}
instance Property "RefId" EvaluationFormSingleSelectQuestionOptionProperty where
type PropertyType "RefId" EvaluationFormSingleSelectQuestionOptionProperty = Value Prelude.Text
set newValue EvaluationFormSingleSelectQuestionOptionProperty {..}
= EvaluationFormSingleSelectQuestionOptionProperty
{refId = newValue, ..}
instance Property "Score" EvaluationFormSingleSelectQuestionOptionProperty where
type PropertyType "Score" EvaluationFormSingleSelectQuestionOptionProperty = Value Prelude.Integer
set newValue EvaluationFormSingleSelectQuestionOptionProperty {..}
= EvaluationFormSingleSelectQuestionOptionProperty
{score = Prelude.pure newValue, ..}
instance Property "Text" EvaluationFormSingleSelectQuestionOptionProperty where
type PropertyType "Text" EvaluationFormSingleSelectQuestionOptionProperty = Value Prelude.Text
set newValue EvaluationFormSingleSelectQuestionOptionProperty {..}
= EvaluationFormSingleSelectQuestionOptionProperty
{text = newValue, ..}