AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ProfileTemplateQuestion.h
1
6#pragma once
7#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/wellarchitected/model/ProfileTemplateChoice.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace WellArchitected
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_WELLARCHITECTED_API ProfileTemplateQuestion() = default;
37 AWS_WELLARCHITECTED_API ProfileTemplateQuestion(Aws::Utils::Json::JsonView jsonValue);
39 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
44 inline const Aws::String& GetQuestionId() const { return m_questionId; }
45 inline bool QuestionIdHasBeenSet() const { return m_questionIdHasBeenSet; }
46 template<typename QuestionIdT = Aws::String>
47 void SetQuestionId(QuestionIdT&& value) { m_questionIdHasBeenSet = true; m_questionId = std::forward<QuestionIdT>(value); }
48 template<typename QuestionIdT = Aws::String>
49 ProfileTemplateQuestion& WithQuestionId(QuestionIdT&& value) { SetQuestionId(std::forward<QuestionIdT>(value)); return *this;}
51
53
54 inline const Aws::String& GetQuestionTitle() const { return m_questionTitle; }
55 inline bool QuestionTitleHasBeenSet() const { return m_questionTitleHasBeenSet; }
56 template<typename QuestionTitleT = Aws::String>
57 void SetQuestionTitle(QuestionTitleT&& value) { m_questionTitleHasBeenSet = true; m_questionTitle = std::forward<QuestionTitleT>(value); }
58 template<typename QuestionTitleT = Aws::String>
59 ProfileTemplateQuestion& WithQuestionTitle(QuestionTitleT&& value) { SetQuestionTitle(std::forward<QuestionTitleT>(value)); return *this;}
61
63
64 inline const Aws::String& GetQuestionDescription() const { return m_questionDescription; }
65 inline bool QuestionDescriptionHasBeenSet() const { return m_questionDescriptionHasBeenSet; }
66 template<typename QuestionDescriptionT = Aws::String>
67 void SetQuestionDescription(QuestionDescriptionT&& value) { m_questionDescriptionHasBeenSet = true; m_questionDescription = std::forward<QuestionDescriptionT>(value); }
68 template<typename QuestionDescriptionT = Aws::String>
69 ProfileTemplateQuestion& WithQuestionDescription(QuestionDescriptionT&& value) { SetQuestionDescription(std::forward<QuestionDescriptionT>(value)); return *this;}
71
73
76 inline const Aws::Vector<ProfileTemplateChoice>& GetQuestionChoices() const { return m_questionChoices; }
77 inline bool QuestionChoicesHasBeenSet() const { return m_questionChoicesHasBeenSet; }
78 template<typename QuestionChoicesT = Aws::Vector<ProfileTemplateChoice>>
79 void SetQuestionChoices(QuestionChoicesT&& value) { m_questionChoicesHasBeenSet = true; m_questionChoices = std::forward<QuestionChoicesT>(value); }
80 template<typename QuestionChoicesT = Aws::Vector<ProfileTemplateChoice>>
81 ProfileTemplateQuestion& WithQuestionChoices(QuestionChoicesT&& value) { SetQuestionChoices(std::forward<QuestionChoicesT>(value)); return *this;}
82 template<typename QuestionChoicesT = ProfileTemplateChoice>
83 ProfileTemplateQuestion& AddQuestionChoices(QuestionChoicesT&& value) { m_questionChoicesHasBeenSet = true; m_questionChoices.emplace_back(std::forward<QuestionChoicesT>(value)); return *this; }
85
87
90 inline int GetMinSelectedChoices() const { return m_minSelectedChoices; }
91 inline bool MinSelectedChoicesHasBeenSet() const { return m_minSelectedChoicesHasBeenSet; }
92 inline void SetMinSelectedChoices(int value) { m_minSelectedChoicesHasBeenSet = true; m_minSelectedChoices = value; }
93 inline ProfileTemplateQuestion& WithMinSelectedChoices(int value) { SetMinSelectedChoices(value); return *this;}
95
97
100 inline int GetMaxSelectedChoices() const { return m_maxSelectedChoices; }
101 inline bool MaxSelectedChoicesHasBeenSet() const { return m_maxSelectedChoicesHasBeenSet; }
102 inline void SetMaxSelectedChoices(int value) { m_maxSelectedChoicesHasBeenSet = true; m_maxSelectedChoices = value; }
103 inline ProfileTemplateQuestion& WithMaxSelectedChoices(int value) { SetMaxSelectedChoices(value); return *this;}
105 private:
106
107 Aws::String m_questionId;
108 bool m_questionIdHasBeenSet = false;
109
110 Aws::String m_questionTitle;
111 bool m_questionTitleHasBeenSet = false;
112
113 Aws::String m_questionDescription;
114 bool m_questionDescriptionHasBeenSet = false;
115
116 Aws::Vector<ProfileTemplateChoice> m_questionChoices;
117 bool m_questionChoicesHasBeenSet = false;
118
119 int m_minSelectedChoices{0};
120 bool m_minSelectedChoicesHasBeenSet = false;
121
122 int m_maxSelectedChoices{0};
123 bool m_maxSelectedChoicesHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace WellArchitected
128} // namespace Aws
ProfileTemplateQuestion & AddQuestionChoices(QuestionChoicesT &&value)
ProfileTemplateQuestion & WithQuestionTitle(QuestionTitleT &&value)
ProfileTemplateQuestion & WithQuestionDescription(QuestionDescriptionT &&value)
ProfileTemplateQuestion & WithMinSelectedChoices(int value)
AWS_WELLARCHITECTED_API ProfileTemplateQuestion & operator=(Aws::Utils::Json::JsonView jsonValue)
ProfileTemplateQuestion & WithQuestionChoices(QuestionChoicesT &&value)
ProfileTemplateQuestion & WithQuestionId(QuestionIdT &&value)
AWS_WELLARCHITECTED_API ProfileTemplateQuestion()=default
ProfileTemplateQuestion & WithMaxSelectedChoices(int value)
const Aws::Vector< ProfileTemplateChoice > & GetQuestionChoices() const
AWS_WELLARCHITECTED_API ProfileTemplateQuestion(Aws::Utils::Json::JsonView jsonValue)
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue