/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #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 options in single select questions.

See * Also:

AWS * API Reference

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

The answer options of the single select question.

*/ inline const Aws::Vector& GetOptions() const{ return m_options; } /** *

The answer options of the single select question.

*/ inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; } /** *

The answer options of the single select question.

*/ inline void SetOptions(const Aws::Vector& value) { m_optionsHasBeenSet = true; m_options = value; } /** *

The answer options of the single select question.

*/ inline void SetOptions(Aws::Vector&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); } /** *

The answer options of the single select question.

*/ inline EvaluationFormSingleSelectQuestionProperties& WithOptions(const Aws::Vector& value) { SetOptions(value); return *this;} /** *

The answer options of the single select question.

*/ inline EvaluationFormSingleSelectQuestionProperties& WithOptions(Aws::Vector&& value) { SetOptions(std::move(value)); return *this;} /** *

The answer options of the single select question.

*/ inline EvaluationFormSingleSelectQuestionProperties& AddOptions(const EvaluationFormSingleSelectQuestionOption& value) { m_optionsHasBeenSet = true; m_options.push_back(value); return *this; } /** *

The answer options of the single select question.

*/ inline EvaluationFormSingleSelectQuestionProperties& AddOptions(EvaluationFormSingleSelectQuestionOption&& value) { m_optionsHasBeenSet = true; m_options.push_back(std::move(value)); return *this; } /** *

The display mode of the single select question.

*/ inline const EvaluationFormSingleSelectQuestionDisplayMode& GetDisplayAs() const{ return m_displayAs; } /** *

The display mode of the single select question.

*/ inline bool DisplayAsHasBeenSet() const { return m_displayAsHasBeenSet; } /** *

The display mode of the single select question.

*/ inline void SetDisplayAs(const EvaluationFormSingleSelectQuestionDisplayMode& value) { m_displayAsHasBeenSet = true; m_displayAs = value; } /** *

The display mode of the single select question.

*/ inline void SetDisplayAs(EvaluationFormSingleSelectQuestionDisplayMode&& value) { m_displayAsHasBeenSet = true; m_displayAs = std::move(value); } /** *

The display mode of the single select question.

*/ inline EvaluationFormSingleSelectQuestionProperties& WithDisplayAs(const EvaluationFormSingleSelectQuestionDisplayMode& value) { SetDisplayAs(value); return *this;} /** *

The display mode of the single select question.

*/ inline EvaluationFormSingleSelectQuestionProperties& WithDisplayAs(EvaluationFormSingleSelectQuestionDisplayMode&& value) { SetDisplayAs(std::move(value)); return *this;} /** *

The display mode of the single select question.

*/ inline const EvaluationFormSingleSelectQuestionAutomation& GetAutomation() const{ return m_automation; } /** *

The display mode of the single select question.

*/ inline bool AutomationHasBeenSet() const { return m_automationHasBeenSet; } /** *

The display mode of the single select question.

*/ inline void SetAutomation(const EvaluationFormSingleSelectQuestionAutomation& value) { m_automationHasBeenSet = true; m_automation = value; } /** *

The display mode of the single select question.

*/ inline void SetAutomation(EvaluationFormSingleSelectQuestionAutomation&& value) { m_automationHasBeenSet = true; m_automation = std::move(value); } /** *

The display mode of the single select question.

*/ inline EvaluationFormSingleSelectQuestionProperties& WithAutomation(const EvaluationFormSingleSelectQuestionAutomation& value) { SetAutomation(value); return *this;} /** *

The display mode of the single select question.

*/ inline EvaluationFormSingleSelectQuestionProperties& WithAutomation(EvaluationFormSingleSelectQuestionAutomation&& value) { SetAutomation(std::move(value)); return *this;} private: Aws::Vector m_options; bool m_optionsHasBeenSet = false; EvaluationFormSingleSelectQuestionDisplayMode m_displayAs; bool m_displayAsHasBeenSet = false; EvaluationFormSingleSelectQuestionAutomation m_automation; bool m_automationHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws