module Stratosphere.Connect.EvaluationForm.SingleSelectQuestionRuleCategoryAutomationProperty ( SingleSelectQuestionRuleCategoryAutomationProperty(..), mkSingleSelectQuestionRuleCategoryAutomationProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data SingleSelectQuestionRuleCategoryAutomationProperty = -- | See: SingleSelectQuestionRuleCategoryAutomationProperty {haddock_workaround_ :: (), -- | See: category :: (Value Prelude.Text), -- | See: condition :: (Value Prelude.Text), -- | See: optionRefId :: (Value Prelude.Text)} deriving stock (Prelude.Eq, Prelude.Show) mkSingleSelectQuestionRuleCategoryAutomationProperty :: Value Prelude.Text -> Value Prelude.Text -> Value Prelude.Text -> SingleSelectQuestionRuleCategoryAutomationProperty mkSingleSelectQuestionRuleCategoryAutomationProperty category condition optionRefId = SingleSelectQuestionRuleCategoryAutomationProperty {haddock_workaround_ = (), category = category, condition = condition, optionRefId = optionRefId} instance ToResourceProperties SingleSelectQuestionRuleCategoryAutomationProperty where toResourceProperties SingleSelectQuestionRuleCategoryAutomationProperty {..} = ResourceProperties {awsType = "AWS::Connect::EvaluationForm.SingleSelectQuestionRuleCategoryAutomation", supportsTags = Prelude.False, properties = ["Category" JSON..= category, "Condition" JSON..= condition, "OptionRefId" JSON..= optionRefId]} instance JSON.ToJSON SingleSelectQuestionRuleCategoryAutomationProperty where toJSON SingleSelectQuestionRuleCategoryAutomationProperty {..} = JSON.object ["Category" JSON..= category, "Condition" JSON..= condition, "OptionRefId" JSON..= optionRefId] instance Property "Category" SingleSelectQuestionRuleCategoryAutomationProperty where type PropertyType "Category" SingleSelectQuestionRuleCategoryAutomationProperty = Value Prelude.Text set newValue SingleSelectQuestionRuleCategoryAutomationProperty {..} = SingleSelectQuestionRuleCategoryAutomationProperty {category = newValue, ..} instance Property "Condition" SingleSelectQuestionRuleCategoryAutomationProperty where type PropertyType "Condition" SingleSelectQuestionRuleCategoryAutomationProperty = Value Prelude.Text set newValue SingleSelectQuestionRuleCategoryAutomationProperty {..} = SingleSelectQuestionRuleCategoryAutomationProperty {condition = newValue, ..} instance Property "OptionRefId" SingleSelectQuestionRuleCategoryAutomationProperty where type PropertyType "OptionRefId" SingleSelectQuestionRuleCategoryAutomationProperty = Value Prelude.Text set newValue SingleSelectQuestionRuleCategoryAutomationProperty {..} = SingleSelectQuestionRuleCategoryAutomationProperty {optionRefId = newValue, ..}