module Stratosphere.Connect.EvaluationForm.EvaluationFormSingleSelectQuestionAutomationProperty (
        module Exports,
        EvaluationFormSingleSelectQuestionAutomationProperty(..),
        mkEvaluationFormSingleSelectQuestionAutomationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Connect.EvaluationForm.EvaluationFormQuestionAutomationAnswerSourceProperty as Exports
import {-# SOURCE #-} Stratosphere.Connect.EvaluationForm.EvaluationFormSingleSelectQuestionAutomationOptionProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EvaluationFormSingleSelectQuestionAutomationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-evaluationform-evaluationformsingleselectquestionautomation.html>
    EvaluationFormSingleSelectQuestionAutomationProperty {EvaluationFormSingleSelectQuestionAutomationProperty -> ()
haddock_workaround_ :: (),
                                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-evaluationform-evaluationformsingleselectquestionautomation.html#cfn-connect-evaluationform-evaluationformsingleselectquestionautomation-answersource>
                                                          EvaluationFormSingleSelectQuestionAutomationProperty
-> Maybe EvaluationFormQuestionAutomationAnswerSourceProperty
answerSource :: (Prelude.Maybe EvaluationFormQuestionAutomationAnswerSourceProperty),
                                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-evaluationform-evaluationformsingleselectquestionautomation.html#cfn-connect-evaluationform-evaluationformsingleselectquestionautomation-defaultoptionrefid>
                                                          EvaluationFormSingleSelectQuestionAutomationProperty
-> Maybe (Value Text)
defaultOptionRefId :: (Prelude.Maybe (Value Prelude.Text)),
                                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-evaluationform-evaluationformsingleselectquestionautomation.html#cfn-connect-evaluationform-evaluationformsingleselectquestionautomation-options>
                                                          EvaluationFormSingleSelectQuestionAutomationProperty
-> [EvaluationFormSingleSelectQuestionAutomationOptionProperty]
options :: [EvaluationFormSingleSelectQuestionAutomationOptionProperty]}
  deriving stock (EvaluationFormSingleSelectQuestionAutomationProperty
-> EvaluationFormSingleSelectQuestionAutomationProperty -> Bool
(EvaluationFormSingleSelectQuestionAutomationProperty
 -> EvaluationFormSingleSelectQuestionAutomationProperty -> Bool)
-> (EvaluationFormSingleSelectQuestionAutomationProperty
    -> EvaluationFormSingleSelectQuestionAutomationProperty -> Bool)
-> Eq EvaluationFormSingleSelectQuestionAutomationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EvaluationFormSingleSelectQuestionAutomationProperty
-> EvaluationFormSingleSelectQuestionAutomationProperty -> Bool
== :: EvaluationFormSingleSelectQuestionAutomationProperty
-> EvaluationFormSingleSelectQuestionAutomationProperty -> Bool
$c/= :: EvaluationFormSingleSelectQuestionAutomationProperty
-> EvaluationFormSingleSelectQuestionAutomationProperty -> Bool
/= :: EvaluationFormSingleSelectQuestionAutomationProperty
-> EvaluationFormSingleSelectQuestionAutomationProperty -> Bool
Prelude.Eq, Int
-> EvaluationFormSingleSelectQuestionAutomationProperty -> ShowS
[EvaluationFormSingleSelectQuestionAutomationProperty] -> ShowS
EvaluationFormSingleSelectQuestionAutomationProperty -> String
(Int
 -> EvaluationFormSingleSelectQuestionAutomationProperty -> ShowS)
-> (EvaluationFormSingleSelectQuestionAutomationProperty -> String)
-> ([EvaluationFormSingleSelectQuestionAutomationProperty]
    -> ShowS)
-> Show EvaluationFormSingleSelectQuestionAutomationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int
-> EvaluationFormSingleSelectQuestionAutomationProperty -> ShowS
showsPrec :: Int
-> EvaluationFormSingleSelectQuestionAutomationProperty -> ShowS
$cshow :: EvaluationFormSingleSelectQuestionAutomationProperty -> String
show :: EvaluationFormSingleSelectQuestionAutomationProperty -> String
$cshowList :: [EvaluationFormSingleSelectQuestionAutomationProperty] -> ShowS
showList :: [EvaluationFormSingleSelectQuestionAutomationProperty] -> ShowS
Prelude.Show)
mkEvaluationFormSingleSelectQuestionAutomationProperty ::
  [EvaluationFormSingleSelectQuestionAutomationOptionProperty]
  -> EvaluationFormSingleSelectQuestionAutomationProperty
mkEvaluationFormSingleSelectQuestionAutomationProperty :: [EvaluationFormSingleSelectQuestionAutomationOptionProperty]
-> EvaluationFormSingleSelectQuestionAutomationProperty
mkEvaluationFormSingleSelectQuestionAutomationProperty [EvaluationFormSingleSelectQuestionAutomationOptionProperty]
options
  = EvaluationFormSingleSelectQuestionAutomationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), options :: [EvaluationFormSingleSelectQuestionAutomationOptionProperty]
options = [EvaluationFormSingleSelectQuestionAutomationOptionProperty]
options,
       answerSource :: Maybe EvaluationFormQuestionAutomationAnswerSourceProperty
answerSource = Maybe EvaluationFormQuestionAutomationAnswerSourceProperty
forall a. Maybe a
Prelude.Nothing,
       defaultOptionRefId :: Maybe (Value Text)
defaultOptionRefId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties EvaluationFormSingleSelectQuestionAutomationProperty where
  toResourceProperties :: EvaluationFormSingleSelectQuestionAutomationProperty
-> ResourceProperties
toResourceProperties
    EvaluationFormSingleSelectQuestionAutomationProperty {[EvaluationFormSingleSelectQuestionAutomationOptionProperty]
Maybe (Value Text)
Maybe EvaluationFormQuestionAutomationAnswerSourceProperty
()
haddock_workaround_ :: EvaluationFormSingleSelectQuestionAutomationProperty -> ()
answerSource :: EvaluationFormSingleSelectQuestionAutomationProperty
-> Maybe EvaluationFormQuestionAutomationAnswerSourceProperty
defaultOptionRefId :: EvaluationFormSingleSelectQuestionAutomationProperty
-> Maybe (Value Text)
options :: EvaluationFormSingleSelectQuestionAutomationProperty
-> [EvaluationFormSingleSelectQuestionAutomationOptionProperty]
haddock_workaround_ :: ()
answerSource :: Maybe EvaluationFormQuestionAutomationAnswerSourceProperty
defaultOptionRefId :: Maybe (Value Text)
options :: [EvaluationFormSingleSelectQuestionAutomationOptionProperty]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Connect::EvaluationForm.EvaluationFormSingleSelectQuestionAutomation",
         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
-> [EvaluationFormSingleSelectQuestionAutomationOptionProperty]
-> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [EvaluationFormSingleSelectQuestionAutomationOptionProperty]
options]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key
-> EvaluationFormQuestionAutomationAnswerSourceProperty
-> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AnswerSource" (EvaluationFormQuestionAutomationAnswerSourceProperty
 -> (Key, Value))
-> Maybe EvaluationFormQuestionAutomationAnswerSourceProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EvaluationFormQuestionAutomationAnswerSourceProperty
answerSource,
                               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
"DefaultOptionRefId" (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)
defaultOptionRefId]))}
instance JSON.ToJSON EvaluationFormSingleSelectQuestionAutomationProperty where
  toJSON :: EvaluationFormSingleSelectQuestionAutomationProperty -> Value
toJSON EvaluationFormSingleSelectQuestionAutomationProperty {[EvaluationFormSingleSelectQuestionAutomationOptionProperty]
Maybe (Value Text)
Maybe EvaluationFormQuestionAutomationAnswerSourceProperty
()
haddock_workaround_ :: EvaluationFormSingleSelectQuestionAutomationProperty -> ()
answerSource :: EvaluationFormSingleSelectQuestionAutomationProperty
-> Maybe EvaluationFormQuestionAutomationAnswerSourceProperty
defaultOptionRefId :: EvaluationFormSingleSelectQuestionAutomationProperty
-> Maybe (Value Text)
options :: EvaluationFormSingleSelectQuestionAutomationProperty
-> [EvaluationFormSingleSelectQuestionAutomationOptionProperty]
haddock_workaround_ :: ()
answerSource :: Maybe EvaluationFormQuestionAutomationAnswerSourceProperty
defaultOptionRefId :: Maybe (Value Text)
options :: [EvaluationFormSingleSelectQuestionAutomationOptionProperty]
..}
    = [(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
-> [EvaluationFormSingleSelectQuestionAutomationOptionProperty]
-> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [EvaluationFormSingleSelectQuestionAutomationOptionProperty]
options]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key
-> EvaluationFormQuestionAutomationAnswerSourceProperty
-> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AnswerSource" (EvaluationFormQuestionAutomationAnswerSourceProperty
 -> (Key, Value))
-> Maybe EvaluationFormQuestionAutomationAnswerSourceProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EvaluationFormQuestionAutomationAnswerSourceProperty
answerSource,
                  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
"DefaultOptionRefId" (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)
defaultOptionRefId])))
instance Property "AnswerSource" EvaluationFormSingleSelectQuestionAutomationProperty where
  type PropertyType "AnswerSource" EvaluationFormSingleSelectQuestionAutomationProperty = EvaluationFormQuestionAutomationAnswerSourceProperty
  set :: PropertyType
  "AnswerSource" EvaluationFormSingleSelectQuestionAutomationProperty
-> EvaluationFormSingleSelectQuestionAutomationProperty
-> EvaluationFormSingleSelectQuestionAutomationProperty
set
    PropertyType
  "AnswerSource" EvaluationFormSingleSelectQuestionAutomationProperty
newValue
    EvaluationFormSingleSelectQuestionAutomationProperty {[EvaluationFormSingleSelectQuestionAutomationOptionProperty]
Maybe (Value Text)
Maybe EvaluationFormQuestionAutomationAnswerSourceProperty
()
haddock_workaround_ :: EvaluationFormSingleSelectQuestionAutomationProperty -> ()
answerSource :: EvaluationFormSingleSelectQuestionAutomationProperty
-> Maybe EvaluationFormQuestionAutomationAnswerSourceProperty
defaultOptionRefId :: EvaluationFormSingleSelectQuestionAutomationProperty
-> Maybe (Value Text)
options :: EvaluationFormSingleSelectQuestionAutomationProperty
-> [EvaluationFormSingleSelectQuestionAutomationOptionProperty]
haddock_workaround_ :: ()
answerSource :: Maybe EvaluationFormQuestionAutomationAnswerSourceProperty
defaultOptionRefId :: Maybe (Value Text)
options :: [EvaluationFormSingleSelectQuestionAutomationOptionProperty]
..}
    = EvaluationFormSingleSelectQuestionAutomationProperty
        {answerSource :: Maybe EvaluationFormQuestionAutomationAnswerSourceProperty
answerSource = EvaluationFormQuestionAutomationAnswerSourceProperty
-> Maybe EvaluationFormQuestionAutomationAnswerSourceProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "AnswerSource" EvaluationFormSingleSelectQuestionAutomationProperty
EvaluationFormQuestionAutomationAnswerSourceProperty
newValue, [EvaluationFormSingleSelectQuestionAutomationOptionProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
defaultOptionRefId :: Maybe (Value Text)
options :: [EvaluationFormSingleSelectQuestionAutomationOptionProperty]
haddock_workaround_ :: ()
defaultOptionRefId :: Maybe (Value Text)
options :: [EvaluationFormSingleSelectQuestionAutomationOptionProperty]
..}
instance Property "DefaultOptionRefId" EvaluationFormSingleSelectQuestionAutomationProperty where
  type PropertyType "DefaultOptionRefId" EvaluationFormSingleSelectQuestionAutomationProperty = Value Prelude.Text
  set :: PropertyType
  "DefaultOptionRefId"
  EvaluationFormSingleSelectQuestionAutomationProperty
-> EvaluationFormSingleSelectQuestionAutomationProperty
-> EvaluationFormSingleSelectQuestionAutomationProperty
set
    PropertyType
  "DefaultOptionRefId"
  EvaluationFormSingleSelectQuestionAutomationProperty
newValue
    EvaluationFormSingleSelectQuestionAutomationProperty {[EvaluationFormSingleSelectQuestionAutomationOptionProperty]
Maybe (Value Text)
Maybe EvaluationFormQuestionAutomationAnswerSourceProperty
()
haddock_workaround_ :: EvaluationFormSingleSelectQuestionAutomationProperty -> ()
answerSource :: EvaluationFormSingleSelectQuestionAutomationProperty
-> Maybe EvaluationFormQuestionAutomationAnswerSourceProperty
defaultOptionRefId :: EvaluationFormSingleSelectQuestionAutomationProperty
-> Maybe (Value Text)
options :: EvaluationFormSingleSelectQuestionAutomationProperty
-> [EvaluationFormSingleSelectQuestionAutomationOptionProperty]
haddock_workaround_ :: ()
answerSource :: Maybe EvaluationFormQuestionAutomationAnswerSourceProperty
defaultOptionRefId :: Maybe (Value Text)
options :: [EvaluationFormSingleSelectQuestionAutomationOptionProperty]
..}
    = EvaluationFormSingleSelectQuestionAutomationProperty
        {defaultOptionRefId :: Maybe (Value Text)
defaultOptionRefId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "DefaultOptionRefId"
  EvaluationFormSingleSelectQuestionAutomationProperty
Value Text
newValue, [EvaluationFormSingleSelectQuestionAutomationOptionProperty]
Maybe EvaluationFormQuestionAutomationAnswerSourceProperty
()
haddock_workaround_ :: ()
answerSource :: Maybe EvaluationFormQuestionAutomationAnswerSourceProperty
options :: [EvaluationFormSingleSelectQuestionAutomationOptionProperty]
haddock_workaround_ :: ()
answerSource :: Maybe EvaluationFormQuestionAutomationAnswerSourceProperty
options :: [EvaluationFormSingleSelectQuestionAutomationOptionProperty]
..}
instance Property "Options" EvaluationFormSingleSelectQuestionAutomationProperty where
  type PropertyType "Options" EvaluationFormSingleSelectQuestionAutomationProperty = [EvaluationFormSingleSelectQuestionAutomationOptionProperty]
  set :: PropertyType
  "Options" EvaluationFormSingleSelectQuestionAutomationProperty
-> EvaluationFormSingleSelectQuestionAutomationProperty
-> EvaluationFormSingleSelectQuestionAutomationProperty
set
    PropertyType
  "Options" EvaluationFormSingleSelectQuestionAutomationProperty
newValue
    EvaluationFormSingleSelectQuestionAutomationProperty {[EvaluationFormSingleSelectQuestionAutomationOptionProperty]
Maybe (Value Text)
Maybe EvaluationFormQuestionAutomationAnswerSourceProperty
()
haddock_workaround_ :: EvaluationFormSingleSelectQuestionAutomationProperty -> ()
answerSource :: EvaluationFormSingleSelectQuestionAutomationProperty
-> Maybe EvaluationFormQuestionAutomationAnswerSourceProperty
defaultOptionRefId :: EvaluationFormSingleSelectQuestionAutomationProperty
-> Maybe (Value Text)
options :: EvaluationFormSingleSelectQuestionAutomationProperty
-> [EvaluationFormSingleSelectQuestionAutomationOptionProperty]
haddock_workaround_ :: ()
answerSource :: Maybe EvaluationFormQuestionAutomationAnswerSourceProperty
defaultOptionRefId :: Maybe (Value Text)
options :: [EvaluationFormSingleSelectQuestionAutomationOptionProperty]
..}
    = EvaluationFormSingleSelectQuestionAutomationProperty
        {options :: [EvaluationFormSingleSelectQuestionAutomationOptionProperty]
options = [EvaluationFormSingleSelectQuestionAutomationOptionProperty]
PropertyType
  "Options" EvaluationFormSingleSelectQuestionAutomationProperty
newValue, Maybe (Value Text)
Maybe EvaluationFormQuestionAutomationAnswerSourceProperty
()
haddock_workaround_ :: ()
answerSource :: Maybe EvaluationFormQuestionAutomationAnswerSourceProperty
defaultOptionRefId :: Maybe (Value Text)
haddock_workaround_ :: ()
answerSource :: Maybe EvaluationFormQuestionAutomationAnswerSourceProperty
defaultOptionRefId :: Maybe (Value Text)
..}