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

A profile question.

See Also:

AWS * API Reference

*/ class ProfileQuestion { public: AWS_WELLARCHITECTED_API ProfileQuestion(); AWS_WELLARCHITECTED_API ProfileQuestion(Aws::Utils::Json::JsonView jsonValue); AWS_WELLARCHITECTED_API ProfileQuestion& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const; inline const Aws::String& GetQuestionId() const{ return m_questionId; } inline bool QuestionIdHasBeenSet() const { return m_questionIdHasBeenSet; } inline void SetQuestionId(const Aws::String& value) { m_questionIdHasBeenSet = true; m_questionId = value; } inline void SetQuestionId(Aws::String&& value) { m_questionIdHasBeenSet = true; m_questionId = std::move(value); } inline void SetQuestionId(const char* value) { m_questionIdHasBeenSet = true; m_questionId.assign(value); } inline ProfileQuestion& WithQuestionId(const Aws::String& value) { SetQuestionId(value); return *this;} inline ProfileQuestion& WithQuestionId(Aws::String&& value) { SetQuestionId(std::move(value)); return *this;} inline ProfileQuestion& WithQuestionId(const char* value) { SetQuestionId(value); return *this;} inline const Aws::String& GetQuestionTitle() const{ return m_questionTitle; } inline bool QuestionTitleHasBeenSet() const { return m_questionTitleHasBeenSet; } inline void SetQuestionTitle(const Aws::String& value) { m_questionTitleHasBeenSet = true; m_questionTitle = value; } inline void SetQuestionTitle(Aws::String&& value) { m_questionTitleHasBeenSet = true; m_questionTitle = std::move(value); } inline void SetQuestionTitle(const char* value) { m_questionTitleHasBeenSet = true; m_questionTitle.assign(value); } inline ProfileQuestion& WithQuestionTitle(const Aws::String& value) { SetQuestionTitle(value); return *this;} inline ProfileQuestion& WithQuestionTitle(Aws::String&& value) { SetQuestionTitle(std::move(value)); return *this;} inline ProfileQuestion& WithQuestionTitle(const char* value) { SetQuestionTitle(value); return *this;} inline const Aws::String& GetQuestionDescription() const{ return m_questionDescription; } inline bool QuestionDescriptionHasBeenSet() const { return m_questionDescriptionHasBeenSet; } inline void SetQuestionDescription(const Aws::String& value) { m_questionDescriptionHasBeenSet = true; m_questionDescription = value; } inline void SetQuestionDescription(Aws::String&& value) { m_questionDescriptionHasBeenSet = true; m_questionDescription = std::move(value); } inline void SetQuestionDescription(const char* value) { m_questionDescriptionHasBeenSet = true; m_questionDescription.assign(value); } inline ProfileQuestion& WithQuestionDescription(const Aws::String& value) { SetQuestionDescription(value); return *this;} inline ProfileQuestion& WithQuestionDescription(Aws::String&& value) { SetQuestionDescription(std::move(value)); return *this;} inline ProfileQuestion& WithQuestionDescription(const char* value) { SetQuestionDescription(value); return *this;} /** *

The question choices.

*/ inline const Aws::Vector& GetQuestionChoices() const{ return m_questionChoices; } /** *

The question choices.

*/ inline bool QuestionChoicesHasBeenSet() const { return m_questionChoicesHasBeenSet; } /** *

The question choices.

*/ inline void SetQuestionChoices(const Aws::Vector& value) { m_questionChoicesHasBeenSet = true; m_questionChoices = value; } /** *

The question choices.

*/ inline void SetQuestionChoices(Aws::Vector&& value) { m_questionChoicesHasBeenSet = true; m_questionChoices = std::move(value); } /** *

The question choices.

*/ inline ProfileQuestion& WithQuestionChoices(const Aws::Vector& value) { SetQuestionChoices(value); return *this;} /** *

The question choices.

*/ inline ProfileQuestion& WithQuestionChoices(Aws::Vector&& value) { SetQuestionChoices(std::move(value)); return *this;} /** *

The question choices.

*/ inline ProfileQuestion& AddQuestionChoices(const ProfileChoice& value) { m_questionChoicesHasBeenSet = true; m_questionChoices.push_back(value); return *this; } /** *

The question choices.

*/ inline ProfileQuestion& AddQuestionChoices(ProfileChoice&& value) { m_questionChoicesHasBeenSet = true; m_questionChoices.push_back(std::move(value)); return *this; } /** *

The selected choices.

*/ inline const Aws::Vector& GetSelectedChoiceIds() const{ return m_selectedChoiceIds; } /** *

The selected choices.

*/ inline bool SelectedChoiceIdsHasBeenSet() const { return m_selectedChoiceIdsHasBeenSet; } /** *

The selected choices.

*/ inline void SetSelectedChoiceIds(const Aws::Vector& value) { m_selectedChoiceIdsHasBeenSet = true; m_selectedChoiceIds = value; } /** *

The selected choices.

*/ inline void SetSelectedChoiceIds(Aws::Vector&& value) { m_selectedChoiceIdsHasBeenSet = true; m_selectedChoiceIds = std::move(value); } /** *

The selected choices.

*/ inline ProfileQuestion& WithSelectedChoiceIds(const Aws::Vector& value) { SetSelectedChoiceIds(value); return *this;} /** *

The selected choices.

*/ inline ProfileQuestion& WithSelectedChoiceIds(Aws::Vector&& value) { SetSelectedChoiceIds(std::move(value)); return *this;} /** *

The selected choices.

*/ inline ProfileQuestion& AddSelectedChoiceIds(const Aws::String& value) { m_selectedChoiceIdsHasBeenSet = true; m_selectedChoiceIds.push_back(value); return *this; } /** *

The selected choices.

*/ inline ProfileQuestion& AddSelectedChoiceIds(Aws::String&& value) { m_selectedChoiceIdsHasBeenSet = true; m_selectedChoiceIds.push_back(std::move(value)); return *this; } /** *

The selected choices.

*/ inline ProfileQuestion& AddSelectedChoiceIds(const char* value) { m_selectedChoiceIdsHasBeenSet = true; m_selectedChoiceIds.push_back(value); return *this; } /** *

The minimum number of selected choices.

*/ inline int GetMinSelectedChoices() const{ return m_minSelectedChoices; } /** *

The minimum number of selected choices.

*/ inline bool MinSelectedChoicesHasBeenSet() const { return m_minSelectedChoicesHasBeenSet; } /** *

The minimum number of selected choices.

*/ inline void SetMinSelectedChoices(int value) { m_minSelectedChoicesHasBeenSet = true; m_minSelectedChoices = value; } /** *

The minimum number of selected choices.

*/ inline ProfileQuestion& WithMinSelectedChoices(int value) { SetMinSelectedChoices(value); return *this;} /** *

The maximum number of selected choices.

*/ inline int GetMaxSelectedChoices() const{ return m_maxSelectedChoices; } /** *

The maximum number of selected choices.

*/ inline bool MaxSelectedChoicesHasBeenSet() const { return m_maxSelectedChoicesHasBeenSet; } /** *

The maximum number of selected choices.

*/ inline void SetMaxSelectedChoices(int value) { m_maxSelectedChoicesHasBeenSet = true; m_maxSelectedChoices = value; } /** *

The maximum number of selected choices.

*/ inline ProfileQuestion& WithMaxSelectedChoices(int value) { SetMaxSelectedChoices(value); return *this;} private: Aws::String m_questionId; bool m_questionIdHasBeenSet = false; Aws::String m_questionTitle; bool m_questionTitleHasBeenSet = false; Aws::String m_questionDescription; bool m_questionDescriptionHasBeenSet = false; Aws::Vector m_questionChoices; bool m_questionChoicesHasBeenSet = false; Aws::Vector m_selectedChoiceIds; bool m_selectedChoiceIdsHasBeenSet = false; int m_minSelectedChoices; bool m_minSelectedChoicesHasBeenSet = false; int m_maxSelectedChoices; bool m_maxSelectedChoicesHasBeenSet = false; }; } // namespace Model } // namespace WellArchitected } // namespace Aws