AWS SDK for C++

AWS SDK for C++ Version 1.11.875

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
141 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
142 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
143 template <typename UpdatedAtT = Aws::Utils::DateTime>
144 void SetUpdatedAt(UpdatedAtT&& value) {
145 m_updatedAtHasBeenSet = true;
146 m_updatedAt = std::forward<UpdatedAtT>(value);
147 }
148 template <typename UpdatedAtT = Aws::Utils::DateTime>
149 ReviewTemplate& WithUpdatedAt(UpdatedAtT&& value) {
150 SetUpdatedAt(std::forward<UpdatedAtT>(value));
151 return *this;
152 }
154
156
159 inline const Aws::String& GetTemplateArn() const { return m_templateArn; }
160 inline bool TemplateArnHasBeenSet() const { return m_templateArnHasBeenSet; }
161 template <typename TemplateArnT = Aws::String>
162 void SetTemplateArn(TemplateArnT&& value) {
163 m_templateArnHasBeenSet = true;
164 m_templateArn = std::forward<TemplateArnT>(value);
165 }
166 template <typename TemplateArnT = Aws::String>
167 ReviewTemplate& WithTemplateArn(TemplateArnT&& value) {
168 SetTemplateArn(std::forward<TemplateArnT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::String& GetTemplateName() const { return m_templateName; }
178 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
179 template <typename TemplateNameT = Aws::String>
180 void SetTemplateName(TemplateNameT&& value) {
181 m_templateNameHasBeenSet = true;
182 m_templateName = std::forward<TemplateNameT>(value);
183 }
184 template <typename TemplateNameT = Aws::String>
185 ReviewTemplate& WithTemplateName(TemplateNameT&& value) {
186 SetTemplateName(std::forward<TemplateNameT>(value));
187 return *this;
188 }
190
192
195 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
196 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
197 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
198 void SetTags(TagsT&& value) {
199 m_tagsHasBeenSet = true;
200 m_tags = std::forward<TagsT>(value);
201 }
202 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
203 ReviewTemplate& WithTags(TagsT&& value) {
204 SetTags(std::forward<TagsT>(value));
205 return *this;
206 }
207 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
208 ReviewTemplate& AddTags(TagsKeyT&& key, TagsValueT&& value) {
209 m_tagsHasBeenSet = true;
210 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
211 return *this;
212 }
214
216
219 inline ReviewTemplateUpdateStatus GetUpdateStatus() const { return m_updateStatus; }
220 inline bool UpdateStatusHasBeenSet() const { return m_updateStatusHasBeenSet; }
222 m_updateStatusHasBeenSet = true;
223 m_updateStatus = value;
224 }
226 SetUpdateStatus(value);
227 return *this;
228 }
230
232
235 inline const Aws::String& GetShareInvitationId() const { return m_shareInvitationId; }
236 inline bool ShareInvitationIdHasBeenSet() const { return m_shareInvitationIdHasBeenSet; }
237 template <typename ShareInvitationIdT = Aws::String>
238 void SetShareInvitationId(ShareInvitationIdT&& value) {
239 m_shareInvitationIdHasBeenSet = true;
240 m_shareInvitationId = std::forward<ShareInvitationIdT>(value);
241 }
242 template <typename ShareInvitationIdT = Aws::String>
243 ReviewTemplate& WithShareInvitationId(ShareInvitationIdT&& value) {
244 SetShareInvitationId(std::forward<ShareInvitationIdT>(value));
245 return *this;
246 }
248 private:
249 Aws::String m_description;
250
252
253 Aws::String m_notes;
254
255 Aws::Map<Question, int> m_questionCounts;
256
257 Aws::String m_owner;
258
259 Aws::Utils::DateTime m_updatedAt{};
260
261 Aws::String m_templateArn;
262
263 Aws::String m_templateName;
264
266
268
269 Aws::String m_shareInvitationId;
270 bool m_descriptionHasBeenSet = false;
271 bool m_lensesHasBeenSet = false;
272 bool m_notesHasBeenSet = false;
273 bool m_questionCountsHasBeenSet = false;
274 bool m_ownerHasBeenSet = false;
275 bool m_updatedAtHasBeenSet = false;
276 bool m_templateArnHasBeenSet = false;
277 bool m_templateNameHasBeenSet = false;
278 bool m_tagsHasBeenSet = false;
279 bool m_updateStatusHasBeenSet = false;
280 bool m_shareInvitationIdHasBeenSet = false;
281};
282
283} // namespace Model
284} // namespace WellArchitected
285} // 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