/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Connect { namespace Model { /** *

Information about the automation option based on a rule category for a single * select question.

See Also:

AWS * API Reference

*/ class SingleSelectQuestionRuleCategoryAutomation { public: AWS_CONNECT_API SingleSelectQuestionRuleCategoryAutomation(); AWS_CONNECT_API SingleSelectQuestionRuleCategoryAutomation(Aws::Utils::Json::JsonView jsonValue); AWS_CONNECT_API SingleSelectQuestionRuleCategoryAutomation& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The category name, as defined in Rules.

*/ inline const Aws::String& GetCategory() const{ return m_category; } /** *

The category name, as defined in Rules.

*/ inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; } /** *

The category name, as defined in Rules.

*/ inline void SetCategory(const Aws::String& value) { m_categoryHasBeenSet = true; m_category = value; } /** *

The category name, as defined in Rules.

*/ inline void SetCategory(Aws::String&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); } /** *

The category name, as defined in Rules.

*/ inline void SetCategory(const char* value) { m_categoryHasBeenSet = true; m_category.assign(value); } /** *

The category name, as defined in Rules.

*/ inline SingleSelectQuestionRuleCategoryAutomation& WithCategory(const Aws::String& value) { SetCategory(value); return *this;} /** *

The category name, as defined in Rules.

*/ inline SingleSelectQuestionRuleCategoryAutomation& WithCategory(Aws::String&& value) { SetCategory(std::move(value)); return *this;} /** *

The category name, as defined in Rules.

*/ inline SingleSelectQuestionRuleCategoryAutomation& WithCategory(const char* value) { SetCategory(value); return *this;} /** *

The condition to apply for the automation option. If the condition is * PRESENT, then the option is applied when the contact data includes * the category. Similarly, if the condition is NOT_PRESENT, then the * option is applied when the contact data does not include the category.

*/ inline const SingleSelectQuestionRuleCategoryAutomationCondition& GetCondition() const{ return m_condition; } /** *

The condition to apply for the automation option. If the condition is * PRESENT, then the option is applied when the contact data includes * the category. Similarly, if the condition is NOT_PRESENT, then the * option is applied when the contact data does not include the category.

*/ inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; } /** *

The condition to apply for the automation option. If the condition is * PRESENT, then the option is applied when the contact data includes * the category. Similarly, if the condition is NOT_PRESENT, then the * option is applied when the contact data does not include the category.

*/ inline void SetCondition(const SingleSelectQuestionRuleCategoryAutomationCondition& value) { m_conditionHasBeenSet = true; m_condition = value; } /** *

The condition to apply for the automation option. If the condition is * PRESENT, then the option is applied when the contact data includes * the category. Similarly, if the condition is NOT_PRESENT, then the * option is applied when the contact data does not include the category.

*/ inline void SetCondition(SingleSelectQuestionRuleCategoryAutomationCondition&& value) { m_conditionHasBeenSet = true; m_condition = std::move(value); } /** *

The condition to apply for the automation option. If the condition is * PRESENT, then the option is applied when the contact data includes * the category. Similarly, if the condition is NOT_PRESENT, then the * option is applied when the contact data does not include the category.

*/ inline SingleSelectQuestionRuleCategoryAutomation& WithCondition(const SingleSelectQuestionRuleCategoryAutomationCondition& value) { SetCondition(value); return *this;} /** *

The condition to apply for the automation option. If the condition is * PRESENT, then the option is applied when the contact data includes * the category. Similarly, if the condition is NOT_PRESENT, then the * option is applied when the contact data does not include the category.

*/ inline SingleSelectQuestionRuleCategoryAutomation& WithCondition(SingleSelectQuestionRuleCategoryAutomationCondition&& value) { SetCondition(std::move(value)); return *this;} /** *

The identifier of the answer option.

*/ inline const Aws::String& GetOptionRefId() const{ return m_optionRefId; } /** *

The identifier of the answer option.

*/ inline bool OptionRefIdHasBeenSet() const { return m_optionRefIdHasBeenSet; } /** *

The identifier of the answer option.

*/ inline void SetOptionRefId(const Aws::String& value) { m_optionRefIdHasBeenSet = true; m_optionRefId = value; } /** *

The identifier of the answer option.

*/ inline void SetOptionRefId(Aws::String&& value) { m_optionRefIdHasBeenSet = true; m_optionRefId = std::move(value); } /** *

The identifier of the answer option.

*/ inline void SetOptionRefId(const char* value) { m_optionRefIdHasBeenSet = true; m_optionRefId.assign(value); } /** *

The identifier of the answer option.

*/ inline SingleSelectQuestionRuleCategoryAutomation& WithOptionRefId(const Aws::String& value) { SetOptionRefId(value); return *this;} /** *

The identifier of the answer option.

*/ inline SingleSelectQuestionRuleCategoryAutomation& WithOptionRefId(Aws::String&& value) { SetOptionRefId(std::move(value)); return *this;} /** *

The identifier of the answer option.

*/ inline SingleSelectQuestionRuleCategoryAutomation& WithOptionRefId(const char* value) { SetOptionRefId(value); return *this;} private: Aws::String m_category; bool m_categoryHasBeenSet = false; SingleSelectQuestionRuleCategoryAutomationCondition m_condition; bool m_conditionHasBeenSet = false; Aws::String m_optionRefId; bool m_optionRefIdHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws