AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
AnswerSummary.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/AnswerReason.h>
11#include <aws/wellarchitected/model/Choice.h>
12#include <aws/wellarchitected/model/ChoiceAnswerSummary.h>
13#include <aws/wellarchitected/model/JiraConfiguration.h>
14#include <aws/wellarchitected/model/QuestionType.h>
15#include <aws/wellarchitected/model/Risk.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace WellArchitected {
27namespace Model {
28
36 public:
37 AWS_WELLARCHITECTED_API AnswerSummary() = default;
38 AWS_WELLARCHITECTED_API AnswerSummary(Aws::Utils::Json::JsonView jsonValue);
39 AWS_WELLARCHITECTED_API AnswerSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
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) {
48 m_questionIdHasBeenSet = true;
49 m_questionId = std::forward<QuestionIdT>(value);
50 }
51 template <typename QuestionIdT = Aws::String>
52 AnswerSummary& WithQuestionId(QuestionIdT&& value) {
53 SetQuestionId(std::forward<QuestionIdT>(value));
54 return *this;
55 }
57
59
60 inline const Aws::String& GetPillarId() const { return m_pillarId; }
61 inline bool PillarIdHasBeenSet() const { return m_pillarIdHasBeenSet; }
62 template <typename PillarIdT = Aws::String>
63 void SetPillarId(PillarIdT&& value) {
64 m_pillarIdHasBeenSet = true;
65 m_pillarId = std::forward<PillarIdT>(value);
66 }
67 template <typename PillarIdT = Aws::String>
68 AnswerSummary& WithPillarId(PillarIdT&& value) {
69 SetPillarId(std::forward<PillarIdT>(value));
70 return *this;
71 }
73
75
76 inline const Aws::String& GetQuestionTitle() const { return m_questionTitle; }
77 inline bool QuestionTitleHasBeenSet() const { return m_questionTitleHasBeenSet; }
78 template <typename QuestionTitleT = Aws::String>
79 void SetQuestionTitle(QuestionTitleT&& value) {
80 m_questionTitleHasBeenSet = true;
81 m_questionTitle = std::forward<QuestionTitleT>(value);
82 }
83 template <typename QuestionTitleT = Aws::String>
84 AnswerSummary& WithQuestionTitle(QuestionTitleT&& value) {
85 SetQuestionTitle(std::forward<QuestionTitleT>(value));
86 return *this;
87 }
89
91
92 inline const Aws::Vector<Choice>& GetChoices() const { return m_choices; }
93 inline bool ChoicesHasBeenSet() const { return m_choicesHasBeenSet; }
94 template <typename ChoicesT = Aws::Vector<Choice>>
95 void SetChoices(ChoicesT&& value) {
96 m_choicesHasBeenSet = true;
97 m_choices = std::forward<ChoicesT>(value);
98 }
99 template <typename ChoicesT = Aws::Vector<Choice>>
100 AnswerSummary& WithChoices(ChoicesT&& value) {
101 SetChoices(std::forward<ChoicesT>(value));
102 return *this;
103 }
104 template <typename ChoicesT = Choice>
105 AnswerSummary& AddChoices(ChoicesT&& value) {
106 m_choicesHasBeenSet = true;
107 m_choices.emplace_back(std::forward<ChoicesT>(value));
108 return *this;
109 }
111
113
114 inline const Aws::Vector<Aws::String>& GetSelectedChoices() const { return m_selectedChoices; }
115 inline bool SelectedChoicesHasBeenSet() const { return m_selectedChoicesHasBeenSet; }
116 template <typename SelectedChoicesT = Aws::Vector<Aws::String>>
117 void SetSelectedChoices(SelectedChoicesT&& value) {
118 m_selectedChoicesHasBeenSet = true;
119 m_selectedChoices = std::forward<SelectedChoicesT>(value);
120 }
121 template <typename SelectedChoicesT = Aws::Vector<Aws::String>>
122 AnswerSummary& WithSelectedChoices(SelectedChoicesT&& value) {
123 SetSelectedChoices(std::forward<SelectedChoicesT>(value));
124 return *this;
125 }
126 template <typename SelectedChoicesT = Aws::String>
127 AnswerSummary& AddSelectedChoices(SelectedChoicesT&& value) {
128 m_selectedChoicesHasBeenSet = true;
129 m_selectedChoices.emplace_back(std::forward<SelectedChoicesT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::Vector<ChoiceAnswerSummary>& GetChoiceAnswerSummaries() const { return m_choiceAnswerSummaries; }
139 inline bool ChoiceAnswerSummariesHasBeenSet() const { return m_choiceAnswerSummariesHasBeenSet; }
140 template <typename ChoiceAnswerSummariesT = Aws::Vector<ChoiceAnswerSummary>>
141 void SetChoiceAnswerSummaries(ChoiceAnswerSummariesT&& value) {
142 m_choiceAnswerSummariesHasBeenSet = true;
143 m_choiceAnswerSummaries = std::forward<ChoiceAnswerSummariesT>(value);
144 }
145 template <typename ChoiceAnswerSummariesT = Aws::Vector<ChoiceAnswerSummary>>
146 AnswerSummary& WithChoiceAnswerSummaries(ChoiceAnswerSummariesT&& value) {
147 SetChoiceAnswerSummaries(std::forward<ChoiceAnswerSummariesT>(value));
148 return *this;
149 }
150 template <typename ChoiceAnswerSummariesT = ChoiceAnswerSummary>
151 AnswerSummary& AddChoiceAnswerSummaries(ChoiceAnswerSummariesT&& value) {
152 m_choiceAnswerSummariesHasBeenSet = true;
153 m_choiceAnswerSummaries.emplace_back(std::forward<ChoiceAnswerSummariesT>(value));
154 return *this;
155 }
157
159
160 inline bool GetIsApplicable() const { return m_isApplicable; }
161 inline bool IsApplicableHasBeenSet() const { return m_isApplicableHasBeenSet; }
162 inline void SetIsApplicable(bool value) {
163 m_isApplicableHasBeenSet = true;
164 m_isApplicable = value;
165 }
166 inline AnswerSummary& WithIsApplicable(bool value) {
167 SetIsApplicable(value);
168 return *this;
169 }
171
173
174 inline Risk GetRisk() const { return m_risk; }
175 inline bool RiskHasBeenSet() const { return m_riskHasBeenSet; }
176 inline void SetRisk(Risk value) {
177 m_riskHasBeenSet = true;
178 m_risk = value;
179 }
180 inline AnswerSummary& WithRisk(Risk value) {
181 SetRisk(value);
182 return *this;
183 }
185
187
190 inline AnswerReason GetReason() const { return m_reason; }
191 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
192 inline void SetReason(AnswerReason value) {
193 m_reasonHasBeenSet = true;
194 m_reason = value;
195 }
197 SetReason(value);
198 return *this;
199 }
201
203
206 inline QuestionType GetQuestionType() const { return m_questionType; }
207 inline bool QuestionTypeHasBeenSet() const { return m_questionTypeHasBeenSet; }
208 inline void SetQuestionType(QuestionType value) {
209 m_questionTypeHasBeenSet = true;
210 m_questionType = value;
211 }
213 SetQuestionType(value);
214 return *this;
215 }
217
219
222 inline const JiraConfiguration& GetJiraConfiguration() const { return m_jiraConfiguration; }
223 inline bool JiraConfigurationHasBeenSet() const { return m_jiraConfigurationHasBeenSet; }
224 template <typename JiraConfigurationT = JiraConfiguration>
225 void SetJiraConfiguration(JiraConfigurationT&& value) {
226 m_jiraConfigurationHasBeenSet = true;
227 m_jiraConfiguration = std::forward<JiraConfigurationT>(value);
228 }
229 template <typename JiraConfigurationT = JiraConfiguration>
230 AnswerSummary& WithJiraConfiguration(JiraConfigurationT&& value) {
231 SetJiraConfiguration(std::forward<JiraConfigurationT>(value));
232 return *this;
233 }
235 private:
236 Aws::String m_questionId;
237
238 Aws::String m_pillarId;
239
240 Aws::String m_questionTitle;
241
242 Aws::Vector<Choice> m_choices;
243
244 Aws::Vector<Aws::String> m_selectedChoices;
245
246 Aws::Vector<ChoiceAnswerSummary> m_choiceAnswerSummaries;
247
248 bool m_isApplicable{false};
249
250 Risk m_risk{Risk::NOT_SET};
251
253
254 QuestionType m_questionType{QuestionType::NOT_SET};
255
256 JiraConfiguration m_jiraConfiguration;
257 bool m_questionIdHasBeenSet = false;
258 bool m_pillarIdHasBeenSet = false;
259 bool m_questionTitleHasBeenSet = false;
260 bool m_choicesHasBeenSet = false;
261 bool m_selectedChoicesHasBeenSet = false;
262 bool m_choiceAnswerSummariesHasBeenSet = false;
263 bool m_isApplicableHasBeenSet = false;
264 bool m_riskHasBeenSet = false;
265 bool m_reasonHasBeenSet = false;
266 bool m_questionTypeHasBeenSet = false;
267 bool m_jiraConfigurationHasBeenSet = false;
268};
269
270} // namespace Model
271} // namespace WellArchitected
272} // namespace Aws
AnswerSummary & WithQuestionType(QuestionType value)
void SetSelectedChoices(SelectedChoicesT &&value)
const Aws::Vector< Aws::String > & GetSelectedChoices() const
AnswerSummary & WithJiraConfiguration(JiraConfigurationT &&value)
AnswerSummary & WithChoiceAnswerSummaries(ChoiceAnswerSummariesT &&value)
const Aws::Vector< ChoiceAnswerSummary > & GetChoiceAnswerSummaries() const
void SetChoiceAnswerSummaries(ChoiceAnswerSummariesT &&value)
void SetJiraConfiguration(JiraConfigurationT &&value)
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetPillarId() const
AWS_WELLARCHITECTED_API AnswerSummary()=default
AnswerSummary & AddChoiceAnswerSummaries(ChoiceAnswerSummariesT &&value)
const Aws::Vector< Choice > & GetChoices() const
AWS_WELLARCHITECTED_API AnswerSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AnswerSummary & WithIsApplicable(bool value)
const Aws::String & GetQuestionTitle() const
const JiraConfiguration & GetJiraConfiguration() const
void SetQuestionId(QuestionIdT &&value)
AnswerSummary & AddSelectedChoices(SelectedChoicesT &&value)
AnswerSummary & WithSelectedChoices(SelectedChoicesT &&value)
AnswerSummary & WithQuestionTitle(QuestionTitleT &&value)
AnswerSummary & WithPillarId(PillarIdT &&value)
AnswerSummary & WithChoices(ChoicesT &&value)
void SetQuestionTitle(QuestionTitleT &&value)
AnswerSummary & WithReason(AnswerReason value)
AnswerSummary & WithQuestionId(QuestionIdT &&value)
AWS_WELLARCHITECTED_API AnswerSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetQuestionId() const
AnswerSummary & AddChoices(ChoicesT &&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