AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
ReviewTemplate.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
12#include <aws/wellarchitected/model/Question.h>
13#include <aws/wellarchitected/model/ReviewTemplateUpdateStatus.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace WellArchitected {
25namespace Model {
26
33 public:
34 AWS_WELLARCHITECTED_API ReviewTemplate() = default;
35 AWS_WELLARCHITECTED_API ReviewTemplate(Aws::Utils::Json::JsonView jsonValue);
36 AWS_WELLARCHITECTED_API ReviewTemplate& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetDescription() const { return m_description; }
44 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
45 template <typename DescriptionT = Aws::String>
46 void SetDescription(DescriptionT&& value) {
47 m_descriptionHasBeenSet = true;
48 m_description = std::forward<DescriptionT>(value);
49 }
50 template <typename DescriptionT = Aws::String>
51 ReviewTemplate& WithDescription(DescriptionT&& value) {
52 SetDescription(std::forward<DescriptionT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Vector<Aws::String>& GetLenses() const { return m_lenses; }
62 inline bool LensesHasBeenSet() const { return m_lensesHasBeenSet; }
63 template <typename LensesT = Aws::Vector<Aws::String>>
64 void SetLenses(LensesT&& value) {
65 m_lensesHasBeenSet = true;
66 m_lenses = std::forward<LensesT>(value);
67 }
68 template <typename LensesT = Aws::Vector<Aws::String>>
69 ReviewTemplate& WithLenses(LensesT&& value) {
70 SetLenses(std::forward<LensesT>(value));
71 return *this;
72 }
73 template <typename LensesT = Aws::String>
74 ReviewTemplate& AddLenses(LensesT&& value) {
75 m_lensesHasBeenSet = true;
76 m_lenses.emplace_back(std::forward<LensesT>(value));
77 return *this;
78 }
80
82
83 inline const Aws::String& GetNotes() const { return m_notes; }
84 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
85 template <typename NotesT = Aws::String>
86 void SetNotes(NotesT&& value) {
87 m_notesHasBeenSet = true;
88 m_notes = std::forward<NotesT>(value);
89 }
90 template <typename NotesT = Aws::String>
91 ReviewTemplate& WithNotes(NotesT&& value) {
92 SetNotes(std::forward<NotesT>(value));
93 return *this;
94 }
96
98
102 inline const Aws::Map<Question, int>& GetQuestionCounts() const { return m_questionCounts; }
103 inline bool QuestionCountsHasBeenSet() const { return m_questionCountsHasBeenSet; }
104 template <typename QuestionCountsT = Aws::Map<Question, int>>
105 void SetQuestionCounts(QuestionCountsT&& value) {
106 m_questionCountsHasBeenSet = true;
107 m_questionCounts = std::forward<QuestionCountsT>(value);
108 }
109 template <typename QuestionCountsT = Aws::Map<Question, int>>
110 ReviewTemplate& WithQuestionCounts(QuestionCountsT&& value) {
111 SetQuestionCounts(std::forward<QuestionCountsT>(value));
112 return *this;
113 }
114 inline ReviewTemplate& AddQuestionCounts(Question key, int value) {
115 m_questionCountsHasBeenSet = true;
116 m_questionCounts.emplace(key, value);
117 return *this;
118 }
120
122
123 inline const Aws::String& GetOwner() const { return m_owner; }
124 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
125 template <typename OwnerT = Aws::String>
126 void SetOwner(OwnerT&& value) {
127 m_ownerHasBeenSet = true;
128 m_owner = std::forward<OwnerT>(value);
129 }
130 template <typename OwnerT = Aws::String>
131 ReviewTemplate& WithOwner(OwnerT&& value) {
132 SetOwner(std::forward<OwnerT>(value));
133 return *this;
134 }
136
138
139 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
140 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
141 template <typename UpdatedAtT = Aws::Utils::DateTime>
142 void SetUpdatedAt(UpdatedAtT&& value) {
143 m_updatedAtHasBeenSet = true;
144 m_updatedAt = std::forward<UpdatedAtT>(value);
145 }
146 template <typename UpdatedAtT = Aws::Utils::DateTime>
147 ReviewTemplate& WithUpdatedAt(UpdatedAtT&& value) {
148 SetUpdatedAt(std::forward<UpdatedAtT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::String& GetTemplateArn() const { return m_templateArn; }
158 inline bool TemplateArnHasBeenSet() const { return m_templateArnHasBeenSet; }
159 template <typename TemplateArnT = Aws::String>
160 void SetTemplateArn(TemplateArnT&& value) {
161 m_templateArnHasBeenSet = true;
162 m_templateArn = std::forward<TemplateArnT>(value);
163 }
164 template <typename TemplateArnT = Aws::String>
165 ReviewTemplate& WithTemplateArn(TemplateArnT&& value) {
166 SetTemplateArn(std::forward<TemplateArnT>(value));
167 return *this;
168 }
170
172
175 inline const Aws::String& GetTemplateName() const { return m_templateName; }
176 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
177 template <typename TemplateNameT = Aws::String>
178 void SetTemplateName(TemplateNameT&& value) {
179 m_templateNameHasBeenSet = true;
180 m_templateName = std::forward<TemplateNameT>(value);
181 }
182 template <typename TemplateNameT = Aws::String>
183 ReviewTemplate& WithTemplateName(TemplateNameT&& value) {
184 SetTemplateName(std::forward<TemplateNameT>(value));
185 return *this;
186 }
188
190
193 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
194 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
195 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
196 void SetTags(TagsT&& value) {
197 m_tagsHasBeenSet = true;
198 m_tags = std::forward<TagsT>(value);
199 }
200 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
201 ReviewTemplate& WithTags(TagsT&& value) {
202 SetTags(std::forward<TagsT>(value));
203 return *this;
204 }
205 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
206 ReviewTemplate& AddTags(TagsKeyT&& key, TagsValueT&& value) {
207 m_tagsHasBeenSet = true;
208 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
209 return *this;
210 }
212
214
217 inline ReviewTemplateUpdateStatus GetUpdateStatus() const { return m_updateStatus; }
218 inline bool UpdateStatusHasBeenSet() const { return m_updateStatusHasBeenSet; }
220 m_updateStatusHasBeenSet = true;
221 m_updateStatus = value;
222 }
224 SetUpdateStatus(value);
225 return *this;
226 }
228
230
233 inline const Aws::String& GetShareInvitationId() const { return m_shareInvitationId; }
234 inline bool ShareInvitationIdHasBeenSet() const { return m_shareInvitationIdHasBeenSet; }
235 template <typename ShareInvitationIdT = Aws::String>
236 void SetShareInvitationId(ShareInvitationIdT&& value) {
237 m_shareInvitationIdHasBeenSet = true;
238 m_shareInvitationId = std::forward<ShareInvitationIdT>(value);
239 }
240 template <typename ShareInvitationIdT = Aws::String>
241 ReviewTemplate& WithShareInvitationId(ShareInvitationIdT&& value) {
242 SetShareInvitationId(std::forward<ShareInvitationIdT>(value));
243 return *this;
244 }
246 private:
247 Aws::String m_description;
248 bool m_descriptionHasBeenSet = false;
249
251 bool m_lensesHasBeenSet = false;
252
253 Aws::String m_notes;
254 bool m_notesHasBeenSet = false;
255
256 Aws::Map<Question, int> m_questionCounts;
257 bool m_questionCountsHasBeenSet = false;
258
259 Aws::String m_owner;
260 bool m_ownerHasBeenSet = false;
261
262 Aws::Utils::DateTime m_updatedAt{};
263 bool m_updatedAtHasBeenSet = false;
264
265 Aws::String m_templateArn;
266 bool m_templateArnHasBeenSet = false;
267
268 Aws::String m_templateName;
269 bool m_templateNameHasBeenSet = false;
270
272 bool m_tagsHasBeenSet = false;
273
275 bool m_updateStatusHasBeenSet = false;
276
277 Aws::String m_shareInvitationId;
278 bool m_shareInvitationIdHasBeenSet = false;
279};
280
281} // namespace Model
282} // namespace WellArchitected
283} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ReviewTemplate & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Vector< Aws::String > & GetLenses() const
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
void SetShareInvitationId(ShareInvitationIdT &&value)
AWS_WELLARCHITECTED_API ReviewTemplate(Aws::Utils::Json::JsonView jsonValue)
ReviewTemplate & AddQuestionCounts(Question key, int value)
ReviewTemplate & WithUpdatedAt(UpdatedAtT &&value)
const Aws::String & GetTemplateName() const
ReviewTemplate & WithShareInvitationId(ShareInvitationIdT &&value)
void SetUpdateStatus(ReviewTemplateUpdateStatus value)
ReviewTemplate & WithDescription(DescriptionT &&value)
const Aws::String & GetShareInvitationId() const
ReviewTemplate & WithTemplateArn(TemplateArnT &&value)
ReviewTemplate & WithOwner(OwnerT &&value)
ReviewTemplate & WithTemplateName(TemplateNameT &&value)
AWS_WELLARCHITECTED_API ReviewTemplate()=default
const Aws::String & GetDescription() const
const Aws::String & GetTemplateArn() const
ReviewTemplateUpdateStatus GetUpdateStatus() const
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetQuestionCounts(QuestionCountsT &&value)
ReviewTemplate & AddLenses(LensesT &&value)
void SetDescription(DescriptionT &&value)
ReviewTemplate & WithUpdateStatus(ReviewTemplateUpdateStatus value)
ReviewTemplate & WithQuestionCounts(QuestionCountsT &&value)
ReviewTemplate & WithLenses(LensesT &&value)
ReviewTemplate & WithTags(TagsT &&value)
AWS_WELLARCHITECTED_API ReviewTemplate & operator=(Aws::Utils::Json::JsonView jsonValue)
ReviewTemplate & WithNotes(NotesT &&value)
void SetTemplateName(TemplateNameT &&value)
const Aws::Map< Question, int > & GetQuestionCounts() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue