AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReviewTemplateAnswerSummary.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/ReviewTemplateAnswerStatus.h>
11#include <aws/wellarchitected/model/AnswerReason.h>
12#include <aws/wellarchitected/model/QuestionType.h>
13#include <aws/wellarchitected/model/Choice.h>
14#include <aws/wellarchitected/model/ChoiceAnswerSummary.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace WellArchitected
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_WELLARCHITECTED_API ReviewTemplateAnswerSummary();
41 AWS_WELLARCHITECTED_API ReviewTemplateAnswerSummary(Aws::Utils::Json::JsonView jsonValue);
43 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
48 inline const Aws::String& GetQuestionId() const{ return m_questionId; }
49 inline bool QuestionIdHasBeenSet() const { return m_questionIdHasBeenSet; }
50 inline void SetQuestionId(const Aws::String& value) { m_questionIdHasBeenSet = true; m_questionId = value; }
51 inline void SetQuestionId(Aws::String&& value) { m_questionIdHasBeenSet = true; m_questionId = std::move(value); }
52 inline void SetQuestionId(const char* value) { m_questionIdHasBeenSet = true; m_questionId.assign(value); }
53 inline ReviewTemplateAnswerSummary& WithQuestionId(const Aws::String& value) { SetQuestionId(value); return *this;}
54 inline ReviewTemplateAnswerSummary& WithQuestionId(Aws::String&& value) { SetQuestionId(std::move(value)); return *this;}
55 inline ReviewTemplateAnswerSummary& WithQuestionId(const char* value) { SetQuestionId(value); return *this;}
57
59
60 inline const Aws::String& GetPillarId() const{ return m_pillarId; }
61 inline bool PillarIdHasBeenSet() const { return m_pillarIdHasBeenSet; }
62 inline void SetPillarId(const Aws::String& value) { m_pillarIdHasBeenSet = true; m_pillarId = value; }
63 inline void SetPillarId(Aws::String&& value) { m_pillarIdHasBeenSet = true; m_pillarId = std::move(value); }
64 inline void SetPillarId(const char* value) { m_pillarIdHasBeenSet = true; m_pillarId.assign(value); }
65 inline ReviewTemplateAnswerSummary& WithPillarId(const Aws::String& value) { SetPillarId(value); return *this;}
66 inline ReviewTemplateAnswerSummary& WithPillarId(Aws::String&& value) { SetPillarId(std::move(value)); return *this;}
67 inline ReviewTemplateAnswerSummary& WithPillarId(const char* value) { SetPillarId(value); return *this;}
69
71
72 inline const Aws::String& GetQuestionTitle() const{ return m_questionTitle; }
73 inline bool QuestionTitleHasBeenSet() const { return m_questionTitleHasBeenSet; }
74 inline void SetQuestionTitle(const Aws::String& value) { m_questionTitleHasBeenSet = true; m_questionTitle = value; }
75 inline void SetQuestionTitle(Aws::String&& value) { m_questionTitleHasBeenSet = true; m_questionTitle = std::move(value); }
76 inline void SetQuestionTitle(const char* value) { m_questionTitleHasBeenSet = true; m_questionTitle.assign(value); }
77 inline ReviewTemplateAnswerSummary& WithQuestionTitle(const Aws::String& value) { SetQuestionTitle(value); return *this;}
78 inline ReviewTemplateAnswerSummary& WithQuestionTitle(Aws::String&& value) { SetQuestionTitle(std::move(value)); return *this;}
79 inline ReviewTemplateAnswerSummary& WithQuestionTitle(const char* value) { SetQuestionTitle(value); return *this;}
81
83
84 inline const Aws::Vector<Choice>& GetChoices() const{ return m_choices; }
85 inline bool ChoicesHasBeenSet() const { return m_choicesHasBeenSet; }
86 inline void SetChoices(const Aws::Vector<Choice>& value) { m_choicesHasBeenSet = true; m_choices = value; }
87 inline void SetChoices(Aws::Vector<Choice>&& value) { m_choicesHasBeenSet = true; m_choices = std::move(value); }
88 inline ReviewTemplateAnswerSummary& WithChoices(const Aws::Vector<Choice>& value) { SetChoices(value); return *this;}
89 inline ReviewTemplateAnswerSummary& WithChoices(Aws::Vector<Choice>&& value) { SetChoices(std::move(value)); return *this;}
90 inline ReviewTemplateAnswerSummary& AddChoices(const Choice& value) { m_choicesHasBeenSet = true; m_choices.push_back(value); return *this; }
91 inline ReviewTemplateAnswerSummary& AddChoices(Choice&& value) { m_choicesHasBeenSet = true; m_choices.push_back(std::move(value)); return *this; }
93
95
96 inline const Aws::Vector<Aws::String>& GetSelectedChoices() const{ return m_selectedChoices; }
97 inline bool SelectedChoicesHasBeenSet() const { return m_selectedChoicesHasBeenSet; }
98 inline void SetSelectedChoices(const Aws::Vector<Aws::String>& value) { m_selectedChoicesHasBeenSet = true; m_selectedChoices = value; }
99 inline void SetSelectedChoices(Aws::Vector<Aws::String>&& value) { m_selectedChoicesHasBeenSet = true; m_selectedChoices = std::move(value); }
102 inline ReviewTemplateAnswerSummary& AddSelectedChoices(const Aws::String& value) { m_selectedChoicesHasBeenSet = true; m_selectedChoices.push_back(value); return *this; }
103 inline ReviewTemplateAnswerSummary& AddSelectedChoices(Aws::String&& value) { m_selectedChoicesHasBeenSet = true; m_selectedChoices.push_back(std::move(value)); return *this; }
104 inline ReviewTemplateAnswerSummary& AddSelectedChoices(const char* value) { m_selectedChoicesHasBeenSet = true; m_selectedChoices.push_back(value); return *this; }
106
108
111 inline const Aws::Vector<ChoiceAnswerSummary>& GetChoiceAnswerSummaries() const{ return m_choiceAnswerSummaries; }
112 inline bool ChoiceAnswerSummariesHasBeenSet() const { return m_choiceAnswerSummariesHasBeenSet; }
113 inline void SetChoiceAnswerSummaries(const Aws::Vector<ChoiceAnswerSummary>& value) { m_choiceAnswerSummariesHasBeenSet = true; m_choiceAnswerSummaries = value; }
114 inline void SetChoiceAnswerSummaries(Aws::Vector<ChoiceAnswerSummary>&& value) { m_choiceAnswerSummariesHasBeenSet = true; m_choiceAnswerSummaries = std::move(value); }
117 inline ReviewTemplateAnswerSummary& AddChoiceAnswerSummaries(const ChoiceAnswerSummary& value) { m_choiceAnswerSummariesHasBeenSet = true; m_choiceAnswerSummaries.push_back(value); return *this; }
118 inline ReviewTemplateAnswerSummary& AddChoiceAnswerSummaries(ChoiceAnswerSummary&& value) { m_choiceAnswerSummariesHasBeenSet = true; m_choiceAnswerSummaries.push_back(std::move(value)); return *this; }
120
122
123 inline bool GetIsApplicable() const{ return m_isApplicable; }
124 inline bool IsApplicableHasBeenSet() const { return m_isApplicableHasBeenSet; }
125 inline void SetIsApplicable(bool value) { m_isApplicableHasBeenSet = true; m_isApplicable = value; }
126 inline ReviewTemplateAnswerSummary& WithIsApplicable(bool value) { SetIsApplicable(value); return *this;}
128
130
133 inline const ReviewTemplateAnswerStatus& GetAnswerStatus() const{ return m_answerStatus; }
134 inline bool AnswerStatusHasBeenSet() const { return m_answerStatusHasBeenSet; }
135 inline void SetAnswerStatus(const ReviewTemplateAnswerStatus& value) { m_answerStatusHasBeenSet = true; m_answerStatus = value; }
136 inline void SetAnswerStatus(ReviewTemplateAnswerStatus&& value) { m_answerStatusHasBeenSet = true; m_answerStatus = std::move(value); }
140
142
146 inline const AnswerReason& GetReason() const{ return m_reason; }
147 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
148 inline void SetReason(const AnswerReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
149 inline void SetReason(AnswerReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
150 inline ReviewTemplateAnswerSummary& WithReason(const AnswerReason& value) { SetReason(value); return *this;}
151 inline ReviewTemplateAnswerSummary& WithReason(AnswerReason&& value) { SetReason(std::move(value)); return *this;}
153
155
158 inline const QuestionType& GetQuestionType() const{ return m_questionType; }
159 inline bool QuestionTypeHasBeenSet() const { return m_questionTypeHasBeenSet; }
160 inline void SetQuestionType(const QuestionType& value) { m_questionTypeHasBeenSet = true; m_questionType = value; }
161 inline void SetQuestionType(QuestionType&& value) { m_questionTypeHasBeenSet = true; m_questionType = std::move(value); }
162 inline ReviewTemplateAnswerSummary& WithQuestionType(const QuestionType& value) { SetQuestionType(value); return *this;}
163 inline ReviewTemplateAnswerSummary& WithQuestionType(QuestionType&& value) { SetQuestionType(std::move(value)); return *this;}
165 private:
166
167 Aws::String m_questionId;
168 bool m_questionIdHasBeenSet = false;
169
170 Aws::String m_pillarId;
171 bool m_pillarIdHasBeenSet = false;
172
173 Aws::String m_questionTitle;
174 bool m_questionTitleHasBeenSet = false;
175
176 Aws::Vector<Choice> m_choices;
177 bool m_choicesHasBeenSet = false;
178
179 Aws::Vector<Aws::String> m_selectedChoices;
180 bool m_selectedChoicesHasBeenSet = false;
181
182 Aws::Vector<ChoiceAnswerSummary> m_choiceAnswerSummaries;
183 bool m_choiceAnswerSummariesHasBeenSet = false;
184
185 bool m_isApplicable;
186 bool m_isApplicableHasBeenSet = false;
187
188 ReviewTemplateAnswerStatus m_answerStatus;
189 bool m_answerStatusHasBeenSet = false;
190
191 AnswerReason m_reason;
192 bool m_reasonHasBeenSet = false;
193
194 QuestionType m_questionType;
195 bool m_questionTypeHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace WellArchitected
200} // namespace Aws
ReviewTemplateAnswerSummary & WithQuestionId(Aws::String &&value)
ReviewTemplateAnswerSummary & AddSelectedChoices(Aws::String &&value)
ReviewTemplateAnswerSummary & WithQuestionTitle(const char *value)
ReviewTemplateAnswerSummary & WithQuestionType(const QuestionType &value)
ReviewTemplateAnswerSummary & WithPillarId(Aws::String &&value)
AWS_WELLARCHITECTED_API ReviewTemplateAnswerSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAnswerStatus(const ReviewTemplateAnswerStatus &value)
ReviewTemplateAnswerSummary & AddChoices(Choice &&value)
ReviewTemplateAnswerSummary & WithSelectedChoices(const Aws::Vector< Aws::String > &value)
ReviewTemplateAnswerSummary & WithPillarId(const char *value)
ReviewTemplateAnswerSummary & AddChoiceAnswerSummaries(ChoiceAnswerSummary &&value)
ReviewTemplateAnswerSummary & WithQuestionId(const char *value)
const Aws::Vector< Aws::String > & GetSelectedChoices() const
ReviewTemplateAnswerSummary & WithAnswerStatus(ReviewTemplateAnswerStatus &&value)
ReviewTemplateAnswerSummary & WithAnswerStatus(const ReviewTemplateAnswerStatus &value)
void SetSelectedChoices(const Aws::Vector< Aws::String > &value)
ReviewTemplateAnswerSummary & WithChoiceAnswerSummaries(Aws::Vector< ChoiceAnswerSummary > &&value)
ReviewTemplateAnswerSummary & WithSelectedChoices(Aws::Vector< Aws::String > &&value)
ReviewTemplateAnswerSummary & WithQuestionId(const Aws::String &value)
ReviewTemplateAnswerSummary & AddChoiceAnswerSummaries(const ChoiceAnswerSummary &value)
ReviewTemplateAnswerSummary & WithChoices(const Aws::Vector< Choice > &value)
ReviewTemplateAnswerSummary & AddSelectedChoices(const Aws::String &value)
AWS_WELLARCHITECTED_API ReviewTemplateAnswerSummary(Aws::Utils::Json::JsonView jsonValue)
ReviewTemplateAnswerSummary & WithChoiceAnswerSummaries(const Aws::Vector< ChoiceAnswerSummary > &value)
ReviewTemplateAnswerSummary & WithReason(const AnswerReason &value)
ReviewTemplateAnswerSummary & WithQuestionType(QuestionType &&value)
ReviewTemplateAnswerSummary & AddSelectedChoices(const char *value)
const Aws::Vector< ChoiceAnswerSummary > & GetChoiceAnswerSummaries() const
ReviewTemplateAnswerSummary & AddChoices(const Choice &value)
void SetChoiceAnswerSummaries(Aws::Vector< ChoiceAnswerSummary > &&value)
ReviewTemplateAnswerSummary & WithPillarId(const Aws::String &value)
void SetChoiceAnswerSummaries(const Aws::Vector< ChoiceAnswerSummary > &value)
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
ReviewTemplateAnswerSummary & WithChoices(Aws::Vector< Choice > &&value)
ReviewTemplateAnswerSummary & WithQuestionTitle(const Aws::String &value)
ReviewTemplateAnswerSummary & WithReason(AnswerReason &&value)
ReviewTemplateAnswerSummary & WithQuestionTitle(Aws::String &&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