AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReviewTemplate.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/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/wellarchitected/model/ReviewTemplateUpdateStatus.h>
13#include <aws/wellarchitected/model/Question.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace WellArchitected
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_WELLARCHITECTED_API ReviewTemplate();
40 AWS_WELLARCHITECTED_API ReviewTemplate(Aws::Utils::Json::JsonView jsonValue);
41 AWS_WELLARCHITECTED_API ReviewTemplate& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetDescription() const{ return m_description; }
50 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
51 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
52 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
53 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
54 inline ReviewTemplate& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
55 inline ReviewTemplate& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
56 inline ReviewTemplate& WithDescription(const char* value) { SetDescription(value); return *this;}
58
60
63 inline const Aws::Vector<Aws::String>& GetLenses() const{ return m_lenses; }
64 inline bool LensesHasBeenSet() const { return m_lensesHasBeenSet; }
65 inline void SetLenses(const Aws::Vector<Aws::String>& value) { m_lensesHasBeenSet = true; m_lenses = value; }
66 inline void SetLenses(Aws::Vector<Aws::String>&& value) { m_lensesHasBeenSet = true; m_lenses = std::move(value); }
67 inline ReviewTemplate& WithLenses(const Aws::Vector<Aws::String>& value) { SetLenses(value); return *this;}
68 inline ReviewTemplate& WithLenses(Aws::Vector<Aws::String>&& value) { SetLenses(std::move(value)); return *this;}
69 inline ReviewTemplate& AddLenses(const Aws::String& value) { m_lensesHasBeenSet = true; m_lenses.push_back(value); return *this; }
70 inline ReviewTemplate& AddLenses(Aws::String&& value) { m_lensesHasBeenSet = true; m_lenses.push_back(std::move(value)); return *this; }
71 inline ReviewTemplate& AddLenses(const char* value) { m_lensesHasBeenSet = true; m_lenses.push_back(value); return *this; }
73
75
76 inline const Aws::String& GetNotes() const{ return m_notes; }
77 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
78 inline void SetNotes(const Aws::String& value) { m_notesHasBeenSet = true; m_notes = value; }
79 inline void SetNotes(Aws::String&& value) { m_notesHasBeenSet = true; m_notes = std::move(value); }
80 inline void SetNotes(const char* value) { m_notesHasBeenSet = true; m_notes.assign(value); }
81 inline ReviewTemplate& WithNotes(const Aws::String& value) { SetNotes(value); return *this;}
82 inline ReviewTemplate& WithNotes(Aws::String&& value) { SetNotes(std::move(value)); return *this;}
83 inline ReviewTemplate& WithNotes(const char* value) { SetNotes(value); return *this;}
85
87
91 inline const Aws::Map<Question, int>& GetQuestionCounts() const{ return m_questionCounts; }
92 inline bool QuestionCountsHasBeenSet() const { return m_questionCountsHasBeenSet; }
93 inline void SetQuestionCounts(const Aws::Map<Question, int>& value) { m_questionCountsHasBeenSet = true; m_questionCounts = value; }
94 inline void SetQuestionCounts(Aws::Map<Question, int>&& value) { m_questionCountsHasBeenSet = true; m_questionCounts = std::move(value); }
95 inline ReviewTemplate& WithQuestionCounts(const Aws::Map<Question, int>& value) { SetQuestionCounts(value); return *this;}
96 inline ReviewTemplate& WithQuestionCounts(Aws::Map<Question, int>&& value) { SetQuestionCounts(std::move(value)); return *this;}
97 inline ReviewTemplate& AddQuestionCounts(const Question& key, int value) { m_questionCountsHasBeenSet = true; m_questionCounts.emplace(key, value); return *this; }
98 inline ReviewTemplate& AddQuestionCounts(Question&& key, int value) { m_questionCountsHasBeenSet = true; m_questionCounts.emplace(std::move(key), value); return *this; }
100
102
103 inline const Aws::String& GetOwner() const{ return m_owner; }
104 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
105 inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; }
106 inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
107 inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); }
108 inline ReviewTemplate& WithOwner(const Aws::String& value) { SetOwner(value); return *this;}
109 inline ReviewTemplate& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;}
110 inline ReviewTemplate& WithOwner(const char* value) { SetOwner(value); return *this;}
112
114
115 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
116 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
117 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
118 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
119 inline ReviewTemplate& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
120 inline ReviewTemplate& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
122
124
127 inline const Aws::String& GetTemplateArn() const{ return m_templateArn; }
128 inline bool TemplateArnHasBeenSet() const { return m_templateArnHasBeenSet; }
129 inline void SetTemplateArn(const Aws::String& value) { m_templateArnHasBeenSet = true; m_templateArn = value; }
130 inline void SetTemplateArn(Aws::String&& value) { m_templateArnHasBeenSet = true; m_templateArn = std::move(value); }
131 inline void SetTemplateArn(const char* value) { m_templateArnHasBeenSet = true; m_templateArn.assign(value); }
132 inline ReviewTemplate& WithTemplateArn(const Aws::String& value) { SetTemplateArn(value); return *this;}
133 inline ReviewTemplate& WithTemplateArn(Aws::String&& value) { SetTemplateArn(std::move(value)); return *this;}
134 inline ReviewTemplate& WithTemplateArn(const char* value) { SetTemplateArn(value); return *this;}
136
138
141 inline const Aws::String& GetTemplateName() const{ return m_templateName; }
142 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
143 inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
144 inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
145 inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
146 inline ReviewTemplate& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
147 inline ReviewTemplate& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
148 inline ReviewTemplate& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
150
152
155 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
156 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
157 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
158 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
159 inline ReviewTemplate& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
160 inline ReviewTemplate& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
161 inline ReviewTemplate& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
162 inline ReviewTemplate& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
163 inline ReviewTemplate& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
164 inline ReviewTemplate& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
165 inline ReviewTemplate& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
166 inline ReviewTemplate& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
167 inline ReviewTemplate& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
169
171
174 inline const ReviewTemplateUpdateStatus& GetUpdateStatus() const{ return m_updateStatus; }
175 inline bool UpdateStatusHasBeenSet() const { return m_updateStatusHasBeenSet; }
176 inline void SetUpdateStatus(const ReviewTemplateUpdateStatus& value) { m_updateStatusHasBeenSet = true; m_updateStatus = value; }
177 inline void SetUpdateStatus(ReviewTemplateUpdateStatus&& value) { m_updateStatusHasBeenSet = true; m_updateStatus = std::move(value); }
178 inline ReviewTemplate& WithUpdateStatus(const ReviewTemplateUpdateStatus& value) { SetUpdateStatus(value); return *this;}
179 inline ReviewTemplate& WithUpdateStatus(ReviewTemplateUpdateStatus&& value) { SetUpdateStatus(std::move(value)); return *this;}
181
183
186 inline const Aws::String& GetShareInvitationId() const{ return m_shareInvitationId; }
187 inline bool ShareInvitationIdHasBeenSet() const { return m_shareInvitationIdHasBeenSet; }
188 inline void SetShareInvitationId(const Aws::String& value) { m_shareInvitationIdHasBeenSet = true; m_shareInvitationId = value; }
189 inline void SetShareInvitationId(Aws::String&& value) { m_shareInvitationIdHasBeenSet = true; m_shareInvitationId = std::move(value); }
190 inline void SetShareInvitationId(const char* value) { m_shareInvitationIdHasBeenSet = true; m_shareInvitationId.assign(value); }
191 inline ReviewTemplate& WithShareInvitationId(const Aws::String& value) { SetShareInvitationId(value); return *this;}
192 inline ReviewTemplate& WithShareInvitationId(Aws::String&& value) { SetShareInvitationId(std::move(value)); return *this;}
193 inline ReviewTemplate& WithShareInvitationId(const char* value) { SetShareInvitationId(value); return *this;}
195 private:
196
197 Aws::String m_description;
198 bool m_descriptionHasBeenSet = false;
199
201 bool m_lensesHasBeenSet = false;
202
203 Aws::String m_notes;
204 bool m_notesHasBeenSet = false;
205
206 Aws::Map<Question, int> m_questionCounts;
207 bool m_questionCountsHasBeenSet = false;
208
209 Aws::String m_owner;
210 bool m_ownerHasBeenSet = false;
211
212 Aws::Utils::DateTime m_updatedAt;
213 bool m_updatedAtHasBeenSet = false;
214
215 Aws::String m_templateArn;
216 bool m_templateArnHasBeenSet = false;
217
218 Aws::String m_templateName;
219 bool m_templateNameHasBeenSet = false;
220
222 bool m_tagsHasBeenSet = false;
223
224 ReviewTemplateUpdateStatus m_updateStatus;
225 bool m_updateStatusHasBeenSet = false;
226
227 Aws::String m_shareInvitationId;
228 bool m_shareInvitationIdHasBeenSet = false;
229 };
230
231} // namespace Model
232} // namespace WellArchitected
233} // namespace Aws
ReviewTemplate & WithLenses(Aws::Vector< Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ReviewTemplate & WithShareInvitationId(const Aws::String &value)
ReviewTemplate & WithOwner(const Aws::String &value)
ReviewTemplate & WithQuestionCounts(const Aws::Map< Question, int > &value)
AWS_WELLARCHITECTED_API ReviewTemplate()
const Aws::Vector< Aws::String > & GetLenses() const
void SetUpdateStatus(ReviewTemplateUpdateStatus &&value)
void SetTemplateName(const Aws::String &value)
void SetQuestionCounts(const Aws::Map< Question, int > &value)
void SetQuestionCounts(Aws::Map< Question, int > &&value)
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
ReviewTemplate & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_WELLARCHITECTED_API ReviewTemplate(Aws::Utils::Json::JsonView jsonValue)
ReviewTemplate & AddTags(const char *key, Aws::String &&value)
ReviewTemplate & WithDescription(Aws::String &&value)
void SetNotes(const Aws::String &value)
ReviewTemplate & WithOwner(Aws::String &&value)
ReviewTemplate & AddTags(Aws::String &&key, const Aws::String &value)
const Aws::String & GetTemplateName() const
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetDescription(const Aws::String &value)
ReviewTemplate & WithUpdateStatus(ReviewTemplateUpdateStatus &&value)
ReviewTemplate & WithLenses(const Aws::Vector< Aws::String > &value)
const Aws::String & GetShareInvitationId() const
void SetShareInvitationId(Aws::String &&value)
ReviewTemplate & WithShareInvitationId(const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
ReviewTemplate & WithNotes(const Aws::String &value)
const Aws::String & GetDescription() const
ReviewTemplate & WithTemplateArn(Aws::String &&value)
const Aws::String & GetTemplateArn() const
ReviewTemplate & WithTemplateName(Aws::String &&value)
void SetLenses(Aws::Vector< Aws::String > &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
ReviewTemplate & WithNotes(Aws::String &&value)
ReviewTemplate & WithUpdateStatus(const ReviewTemplateUpdateStatus &value)
ReviewTemplate & AddLenses(Aws::String &&value)
ReviewTemplate & WithTemplateArn(const Aws::String &value)
ReviewTemplate & WithTemplateName(const Aws::String &value)
ReviewTemplate & WithShareInvitationId(Aws::String &&value)
ReviewTemplate & AddTags(Aws::String &&key, Aws::String &&value)
ReviewTemplate & WithUpdatedAt(const Aws::Utils::DateTime &value)
ReviewTemplate & AddTags(Aws::String &&key, const char *value)
void SetOwner(const Aws::String &value)
void SetUpdatedAt(Aws::Utils::DateTime &&value)
ReviewTemplate & WithQuestionCounts(Aws::Map< Question, int > &&value)
ReviewTemplate & AddTags(const Aws::String &key, const Aws::String &value)
ReviewTemplate & WithTemplateName(const char *value)
ReviewTemplate & WithOwner(const char *value)
ReviewTemplate & WithUpdatedAt(Aws::Utils::DateTime &&value)
ReviewTemplate & AddTags(const Aws::String &key, Aws::String &&value)
ReviewTemplate & WithNotes(const char *value)
void SetTemplateArn(const Aws::String &value)
AWS_WELLARCHITECTED_API ReviewTemplate & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetShareInvitationId(const Aws::String &value)
ReviewTemplate & AddLenses(const Aws::String &value)
ReviewTemplate & AddLenses(const char *value)
ReviewTemplate & WithTemplateArn(const char *value)
ReviewTemplate & AddQuestionCounts(const Question &key, int value)
void SetLenses(const Aws::Vector< Aws::String > &value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
const ReviewTemplateUpdateStatus & GetUpdateStatus() const
void SetUpdateStatus(const ReviewTemplateUpdateStatus &value)
ReviewTemplate & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
ReviewTemplate & AddTags(const char *key, const char *value)
ReviewTemplate & WithDescription(const char *value)
ReviewTemplate & WithDescription(const Aws::String &value)
const Aws::Map< Question, int > & GetQuestionCounts() const
ReviewTemplate & AddQuestionCounts(Question &&key, int value)
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