AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AnswerSummary.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/Risk.h>
11#include <aws/wellarchitected/model/AnswerReason.h>
12#include <aws/wellarchitected/model/QuestionType.h>
13#include <aws/wellarchitected/model/JiraConfiguration.h>
14#include <aws/wellarchitected/model/Choice.h>
15#include <aws/wellarchitected/model/ChoiceAnswerSummary.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace WellArchitected
29{
30namespace Model
31{
32
40 {
41 public:
42 AWS_WELLARCHITECTED_API AnswerSummary();
43 AWS_WELLARCHITECTED_API AnswerSummary(Aws::Utils::Json::JsonView jsonValue);
44 AWS_WELLARCHITECTED_API AnswerSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
50 inline const Aws::String& GetQuestionId() const{ return m_questionId; }
51 inline bool QuestionIdHasBeenSet() const { return m_questionIdHasBeenSet; }
52 inline void SetQuestionId(const Aws::String& value) { m_questionIdHasBeenSet = true; m_questionId = value; }
53 inline void SetQuestionId(Aws::String&& value) { m_questionIdHasBeenSet = true; m_questionId = std::move(value); }
54 inline void SetQuestionId(const char* value) { m_questionIdHasBeenSet = true; m_questionId.assign(value); }
55 inline AnswerSummary& WithQuestionId(const Aws::String& value) { SetQuestionId(value); return *this;}
56 inline AnswerSummary& WithQuestionId(Aws::String&& value) { SetQuestionId(std::move(value)); return *this;}
57 inline AnswerSummary& WithQuestionId(const char* value) { SetQuestionId(value); return *this;}
59
61
62 inline const Aws::String& GetPillarId() const{ return m_pillarId; }
63 inline bool PillarIdHasBeenSet() const { return m_pillarIdHasBeenSet; }
64 inline void SetPillarId(const Aws::String& value) { m_pillarIdHasBeenSet = true; m_pillarId = value; }
65 inline void SetPillarId(Aws::String&& value) { m_pillarIdHasBeenSet = true; m_pillarId = std::move(value); }
66 inline void SetPillarId(const char* value) { m_pillarIdHasBeenSet = true; m_pillarId.assign(value); }
67 inline AnswerSummary& WithPillarId(const Aws::String& value) { SetPillarId(value); return *this;}
68 inline AnswerSummary& WithPillarId(Aws::String&& value) { SetPillarId(std::move(value)); return *this;}
69 inline AnswerSummary& WithPillarId(const char* value) { SetPillarId(value); return *this;}
71
73
74 inline const Aws::String& GetQuestionTitle() const{ return m_questionTitle; }
75 inline bool QuestionTitleHasBeenSet() const { return m_questionTitleHasBeenSet; }
76 inline void SetQuestionTitle(const Aws::String& value) { m_questionTitleHasBeenSet = true; m_questionTitle = value; }
77 inline void SetQuestionTitle(Aws::String&& value) { m_questionTitleHasBeenSet = true; m_questionTitle = std::move(value); }
78 inline void SetQuestionTitle(const char* value) { m_questionTitleHasBeenSet = true; m_questionTitle.assign(value); }
79 inline AnswerSummary& WithQuestionTitle(const Aws::String& value) { SetQuestionTitle(value); return *this;}
80 inline AnswerSummary& WithQuestionTitle(Aws::String&& value) { SetQuestionTitle(std::move(value)); return *this;}
81 inline AnswerSummary& WithQuestionTitle(const char* value) { SetQuestionTitle(value); return *this;}
83
85
86 inline const Aws::Vector<Choice>& GetChoices() const{ return m_choices; }
87 inline bool ChoicesHasBeenSet() const { return m_choicesHasBeenSet; }
88 inline void SetChoices(const Aws::Vector<Choice>& value) { m_choicesHasBeenSet = true; m_choices = value; }
89 inline void SetChoices(Aws::Vector<Choice>&& value) { m_choicesHasBeenSet = true; m_choices = std::move(value); }
90 inline AnswerSummary& WithChoices(const Aws::Vector<Choice>& value) { SetChoices(value); return *this;}
91 inline AnswerSummary& WithChoices(Aws::Vector<Choice>&& value) { SetChoices(std::move(value)); return *this;}
92 inline AnswerSummary& AddChoices(const Choice& value) { m_choicesHasBeenSet = true; m_choices.push_back(value); return *this; }
93 inline AnswerSummary& AddChoices(Choice&& value) { m_choicesHasBeenSet = true; m_choices.push_back(std::move(value)); return *this; }
95
97
98 inline const Aws::Vector<Aws::String>& GetSelectedChoices() const{ return m_selectedChoices; }
99 inline bool SelectedChoicesHasBeenSet() const { return m_selectedChoicesHasBeenSet; }
100 inline void SetSelectedChoices(const Aws::Vector<Aws::String>& value) { m_selectedChoicesHasBeenSet = true; m_selectedChoices = value; }
101 inline void SetSelectedChoices(Aws::Vector<Aws::String>&& value) { m_selectedChoicesHasBeenSet = true; m_selectedChoices = std::move(value); }
103 inline AnswerSummary& WithSelectedChoices(Aws::Vector<Aws::String>&& value) { SetSelectedChoices(std::move(value)); return *this;}
104 inline AnswerSummary& AddSelectedChoices(const Aws::String& value) { m_selectedChoicesHasBeenSet = true; m_selectedChoices.push_back(value); return *this; }
105 inline AnswerSummary& AddSelectedChoices(Aws::String&& value) { m_selectedChoicesHasBeenSet = true; m_selectedChoices.push_back(std::move(value)); return *this; }
106 inline AnswerSummary& AddSelectedChoices(const char* value) { m_selectedChoicesHasBeenSet = true; m_selectedChoices.push_back(value); return *this; }
108
110
113 inline const Aws::Vector<ChoiceAnswerSummary>& GetChoiceAnswerSummaries() const{ return m_choiceAnswerSummaries; }
114 inline bool ChoiceAnswerSummariesHasBeenSet() const { return m_choiceAnswerSummariesHasBeenSet; }
115 inline void SetChoiceAnswerSummaries(const Aws::Vector<ChoiceAnswerSummary>& value) { m_choiceAnswerSummariesHasBeenSet = true; m_choiceAnswerSummaries = value; }
116 inline void SetChoiceAnswerSummaries(Aws::Vector<ChoiceAnswerSummary>&& value) { m_choiceAnswerSummariesHasBeenSet = true; m_choiceAnswerSummaries = std::move(value); }
119 inline AnswerSummary& AddChoiceAnswerSummaries(const ChoiceAnswerSummary& value) { m_choiceAnswerSummariesHasBeenSet = true; m_choiceAnswerSummaries.push_back(value); return *this; }
120 inline AnswerSummary& AddChoiceAnswerSummaries(ChoiceAnswerSummary&& value) { m_choiceAnswerSummariesHasBeenSet = true; m_choiceAnswerSummaries.push_back(std::move(value)); return *this; }
122
124
125 inline bool GetIsApplicable() const{ return m_isApplicable; }
126 inline bool IsApplicableHasBeenSet() const { return m_isApplicableHasBeenSet; }
127 inline void SetIsApplicable(bool value) { m_isApplicableHasBeenSet = true; m_isApplicable = value; }
128 inline AnswerSummary& WithIsApplicable(bool value) { SetIsApplicable(value); return *this;}
130
132
133 inline const Risk& GetRisk() const{ return m_risk; }
134 inline bool RiskHasBeenSet() const { return m_riskHasBeenSet; }
135 inline void SetRisk(const Risk& value) { m_riskHasBeenSet = true; m_risk = value; }
136 inline void SetRisk(Risk&& value) { m_riskHasBeenSet = true; m_risk = std::move(value); }
137 inline AnswerSummary& WithRisk(const Risk& value) { SetRisk(value); return *this;}
138 inline AnswerSummary& WithRisk(Risk&& value) { SetRisk(std::move(value)); return *this;}
140
142
145 inline const AnswerReason& GetReason() const{ return m_reason; }
146 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
147 inline void SetReason(const AnswerReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
148 inline void SetReason(AnswerReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
149 inline AnswerSummary& WithReason(const AnswerReason& value) { SetReason(value); return *this;}
150 inline AnswerSummary& WithReason(AnswerReason&& value) { SetReason(std::move(value)); return *this;}
152
154
157 inline const QuestionType& GetQuestionType() const{ return m_questionType; }
158 inline bool QuestionTypeHasBeenSet() const { return m_questionTypeHasBeenSet; }
159 inline void SetQuestionType(const QuestionType& value) { m_questionTypeHasBeenSet = true; m_questionType = value; }
160 inline void SetQuestionType(QuestionType&& value) { m_questionTypeHasBeenSet = true; m_questionType = std::move(value); }
161 inline AnswerSummary& WithQuestionType(const QuestionType& value) { SetQuestionType(value); return *this;}
162 inline AnswerSummary& WithQuestionType(QuestionType&& value) { SetQuestionType(std::move(value)); return *this;}
164
166
169 inline const JiraConfiguration& GetJiraConfiguration() const{ return m_jiraConfiguration; }
170 inline bool JiraConfigurationHasBeenSet() const { return m_jiraConfigurationHasBeenSet; }
171 inline void SetJiraConfiguration(const JiraConfiguration& value) { m_jiraConfigurationHasBeenSet = true; m_jiraConfiguration = value; }
172 inline void SetJiraConfiguration(JiraConfiguration&& value) { m_jiraConfigurationHasBeenSet = true; m_jiraConfiguration = std::move(value); }
173 inline AnswerSummary& WithJiraConfiguration(const JiraConfiguration& value) { SetJiraConfiguration(value); return *this;}
174 inline AnswerSummary& WithJiraConfiguration(JiraConfiguration&& value) { SetJiraConfiguration(std::move(value)); return *this;}
176 private:
177
178 Aws::String m_questionId;
179 bool m_questionIdHasBeenSet = false;
180
181 Aws::String m_pillarId;
182 bool m_pillarIdHasBeenSet = false;
183
184 Aws::String m_questionTitle;
185 bool m_questionTitleHasBeenSet = false;
186
187 Aws::Vector<Choice> m_choices;
188 bool m_choicesHasBeenSet = false;
189
190 Aws::Vector<Aws::String> m_selectedChoices;
191 bool m_selectedChoicesHasBeenSet = false;
192
193 Aws::Vector<ChoiceAnswerSummary> m_choiceAnswerSummaries;
194 bool m_choiceAnswerSummariesHasBeenSet = false;
195
196 bool m_isApplicable;
197 bool m_isApplicableHasBeenSet = false;
198
199 Risk m_risk;
200 bool m_riskHasBeenSet = false;
201
202 AnswerReason m_reason;
203 bool m_reasonHasBeenSet = false;
204
205 QuestionType m_questionType;
206 bool m_questionTypeHasBeenSet = false;
207
208 JiraConfiguration m_jiraConfiguration;
209 bool m_jiraConfigurationHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace WellArchitected
214} // namespace Aws
void SetJiraConfiguration(const JiraConfiguration &value)
AnswerSummary & WithQuestionTitle(const char *value)
void SetQuestionType(const QuestionType &value)
AnswerSummary & WithQuestionType(QuestionType &&value)
AnswerSummary & AddSelectedChoices(Aws::String &&value)
AnswerSummary & WithQuestionTitle(Aws::String &&value)
void SetPillarId(const Aws::String &value)
const Aws::Vector< Aws::String > & GetSelectedChoices() const
AnswerSummary & WithQuestionType(const QuestionType &value)
AnswerSummary & WithQuestionId(const char *value)
void SetQuestionType(QuestionType &&value)
AnswerSummary & WithReason(const AnswerReason &value)
AnswerSummary & WithChoices(const Aws::Vector< Choice > &value)
const Aws::Vector< ChoiceAnswerSummary > & GetChoiceAnswerSummaries() const
void SetChoiceAnswerSummaries(const Aws::Vector< ChoiceAnswerSummary > &value)
AnswerSummary & AddChoices(Choice &&value)
void SetQuestionTitle(Aws::String &&value)
AnswerSummary & AddChoiceAnswerSummaries(ChoiceAnswerSummary &&value)
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
void SetQuestionId(const Aws::String &value)
const Aws::String & GetPillarId() const
AnswerSummary & WithReason(AnswerReason &&value)
const Aws::Vector< Choice > & GetChoices() const
const QuestionType & GetQuestionType() const
AWS_WELLARCHITECTED_API AnswerSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AnswerSummary & WithIsApplicable(bool value)
AWS_WELLARCHITECTED_API AnswerSummary()
AnswerSummary & WithQuestionId(Aws::String &&value)
const Aws::String & GetQuestionTitle() const
AnswerSummary & WithPillarId(Aws::String &&value)
AnswerSummary & WithSelectedChoices(const Aws::Vector< Aws::String > &value)
const JiraConfiguration & GetJiraConfiguration() const
AnswerSummary & WithChoiceAnswerSummaries(Aws::Vector< ChoiceAnswerSummary > &&value)
AnswerSummary & WithQuestionTitle(const Aws::String &value)
void SetQuestionTitle(const Aws::String &value)
AnswerSummary & WithJiraConfiguration(JiraConfiguration &&value)
AnswerSummary & WithSelectedChoices(Aws::Vector< Aws::String > &&value)
void SetReason(const AnswerReason &value)
void SetQuestionId(Aws::String &&value)
void SetChoices(Aws::Vector< Choice > &&value)
void SetJiraConfiguration(JiraConfiguration &&value)
AnswerSummary & WithJiraConfiguration(const JiraConfiguration &value)
AnswerSummary & WithPillarId(const Aws::String &value)
AnswerSummary & WithChoices(Aws::Vector< Choice > &&value)
AnswerSummary & WithChoiceAnswerSummaries(const Aws::Vector< ChoiceAnswerSummary > &value)
void SetSelectedChoices(const Aws::Vector< Aws::String > &value)
void SetSelectedChoices(Aws::Vector< Aws::String > &&value)
const AnswerReason & GetReason() const
AnswerSummary & WithRisk(Risk &&value)
AnswerSummary & AddSelectedChoices(const Aws::String &value)
void SetChoices(const Aws::Vector< Choice > &value)
AnswerSummary & WithQuestionId(const Aws::String &value)
AWS_WELLARCHITECTED_API AnswerSummary(Aws::Utils::Json::JsonView jsonValue)
void SetChoiceAnswerSummaries(Aws::Vector< ChoiceAnswerSummary > &&value)
AnswerSummary & AddSelectedChoices(const char *value)
const Aws::String & GetQuestionId() const
AnswerSummary & AddChoiceAnswerSummaries(const ChoiceAnswerSummary &value)
AnswerSummary & WithRisk(const Risk &value)
AnswerSummary & AddChoices(const Choice &value)
AnswerSummary & WithPillarId(const char *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