AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ProfileQuestion.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
10#include <aws/wellarchitected/model/ProfileChoice.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WellArchitected {
22namespace Model {
23
30 public:
31 AWS_WELLARCHITECTED_API ProfileQuestion() = default;
32 AWS_WELLARCHITECTED_API ProfileQuestion(Aws::Utils::Json::JsonView jsonValue);
33 AWS_WELLARCHITECTED_API ProfileQuestion& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
38 inline const Aws::String& GetQuestionId() const { return m_questionId; }
39 inline bool QuestionIdHasBeenSet() const { return m_questionIdHasBeenSet; }
40 template <typename QuestionIdT = Aws::String>
41 void SetQuestionId(QuestionIdT&& value) {
42 m_questionIdHasBeenSet = true;
43 m_questionId = std::forward<QuestionIdT>(value);
44 }
45 template <typename QuestionIdT = Aws::String>
46 ProfileQuestion& WithQuestionId(QuestionIdT&& value) {
47 SetQuestionId(std::forward<QuestionIdT>(value));
48 return *this;
49 }
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) {
58 m_questionTitleHasBeenSet = true;
59 m_questionTitle = std::forward<QuestionTitleT>(value);
60 }
61 template <typename QuestionTitleT = Aws::String>
62 ProfileQuestion& WithQuestionTitle(QuestionTitleT&& value) {
63 SetQuestionTitle(std::forward<QuestionTitleT>(value));
64 return *this;
65 }
67
69
70 inline const Aws::String& GetQuestionDescription() const { return m_questionDescription; }
71 inline bool QuestionDescriptionHasBeenSet() const { return m_questionDescriptionHasBeenSet; }
72 template <typename QuestionDescriptionT = Aws::String>
73 void SetQuestionDescription(QuestionDescriptionT&& value) {
74 m_questionDescriptionHasBeenSet = true;
75 m_questionDescription = std::forward<QuestionDescriptionT>(value);
76 }
77 template <typename QuestionDescriptionT = Aws::String>
78 ProfileQuestion& WithQuestionDescription(QuestionDescriptionT&& value) {
79 SetQuestionDescription(std::forward<QuestionDescriptionT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::Vector<ProfileChoice>& GetQuestionChoices() const { return m_questionChoices; }
89 inline bool QuestionChoicesHasBeenSet() const { return m_questionChoicesHasBeenSet; }
90 template <typename QuestionChoicesT = Aws::Vector<ProfileChoice>>
91 void SetQuestionChoices(QuestionChoicesT&& value) {
92 m_questionChoicesHasBeenSet = true;
93 m_questionChoices = std::forward<QuestionChoicesT>(value);
94 }
95 template <typename QuestionChoicesT = Aws::Vector<ProfileChoice>>
96 ProfileQuestion& WithQuestionChoices(QuestionChoicesT&& value) {
97 SetQuestionChoices(std::forward<QuestionChoicesT>(value));
98 return *this;
99 }
100 template <typename QuestionChoicesT = ProfileChoice>
101 ProfileQuestion& AddQuestionChoices(QuestionChoicesT&& value) {
102 m_questionChoicesHasBeenSet = true;
103 m_questionChoices.emplace_back(std::forward<QuestionChoicesT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Vector<Aws::String>& GetSelectedChoiceIds() const { return m_selectedChoiceIds; }
113 inline bool SelectedChoiceIdsHasBeenSet() const { return m_selectedChoiceIdsHasBeenSet; }
114 template <typename SelectedChoiceIdsT = Aws::Vector<Aws::String>>
115 void SetSelectedChoiceIds(SelectedChoiceIdsT&& value) {
116 m_selectedChoiceIdsHasBeenSet = true;
117 m_selectedChoiceIds = std::forward<SelectedChoiceIdsT>(value);
118 }
119 template <typename SelectedChoiceIdsT = Aws::Vector<Aws::String>>
120 ProfileQuestion& WithSelectedChoiceIds(SelectedChoiceIdsT&& value) {
121 SetSelectedChoiceIds(std::forward<SelectedChoiceIdsT>(value));
122 return *this;
123 }
124 template <typename SelectedChoiceIdsT = Aws::String>
125 ProfileQuestion& AddSelectedChoiceIds(SelectedChoiceIdsT&& value) {
126 m_selectedChoiceIdsHasBeenSet = true;
127 m_selectedChoiceIds.emplace_back(std::forward<SelectedChoiceIdsT>(value));
128 return *this;
129 }
131
133
136 inline int GetMinSelectedChoices() const { return m_minSelectedChoices; }
137 inline bool MinSelectedChoicesHasBeenSet() const { return m_minSelectedChoicesHasBeenSet; }
138 inline void SetMinSelectedChoices(int value) {
139 m_minSelectedChoicesHasBeenSet = true;
140 m_minSelectedChoices = value;
141 }
144 return *this;
145 }
147
149
152 inline int GetMaxSelectedChoices() const { return m_maxSelectedChoices; }
153 inline bool MaxSelectedChoicesHasBeenSet() const { return m_maxSelectedChoicesHasBeenSet; }
154 inline void SetMaxSelectedChoices(int value) {
155 m_maxSelectedChoicesHasBeenSet = true;
156 m_maxSelectedChoices = value;
157 }
160 return *this;
161 }
163 private:
164 Aws::String m_questionId;
165
166 Aws::String m_questionTitle;
167
168 Aws::String m_questionDescription;
169
170 Aws::Vector<ProfileChoice> m_questionChoices;
171
172 Aws::Vector<Aws::String> m_selectedChoiceIds;
173
174 int m_minSelectedChoices{0};
175
176 int m_maxSelectedChoices{0};
177 bool m_questionIdHasBeenSet = false;
178 bool m_questionTitleHasBeenSet = false;
179 bool m_questionDescriptionHasBeenSet = false;
180 bool m_questionChoicesHasBeenSet = false;
181 bool m_selectedChoiceIdsHasBeenSet = false;
182 bool m_minSelectedChoicesHasBeenSet = false;
183 bool m_maxSelectedChoicesHasBeenSet = false;
184};
185
186} // namespace Model
187} // namespace WellArchitected
188} // namespace Aws
ProfileQuestion & WithMinSelectedChoices(int value)
const Aws::Vector< ProfileChoice > & GetQuestionChoices() const
ProfileQuestion & WithQuestionTitle(QuestionTitleT &&value)
ProfileQuestion & WithQuestionId(QuestionIdT &&value)
void SetQuestionTitle(QuestionTitleT &&value)
ProfileQuestion & AddQuestionChoices(QuestionChoicesT &&value)
const Aws::String & GetQuestionTitle() const
ProfileQuestion & AddSelectedChoiceIds(SelectedChoiceIdsT &&value)
ProfileQuestion & WithSelectedChoiceIds(SelectedChoiceIdsT &&value)
const Aws::Vector< Aws::String > & GetSelectedChoiceIds() const
void SetSelectedChoiceIds(SelectedChoiceIdsT &&value)
ProfileQuestion & WithQuestionDescription(QuestionDescriptionT &&value)
AWS_WELLARCHITECTED_API ProfileQuestion & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
ProfileQuestion & WithMaxSelectedChoices(int value)
ProfileQuestion & WithQuestionChoices(QuestionChoicesT &&value)
AWS_WELLARCHITECTED_API ProfileQuestion(Aws::Utils::Json::JsonView jsonValue)
void SetQuestionChoices(QuestionChoicesT &&value)
AWS_WELLARCHITECTED_API ProfileQuestion()=default
const Aws::String & GetQuestionDescription() const
void SetQuestionDescription(QuestionDescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue