AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename DescriptionT = Aws::String>
52 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
53 template<typename DescriptionT = Aws::String>
54 ReviewTemplate& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
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) { m_lensesHasBeenSet = true; m_lenses = std::forward<LensesT>(value); }
65 template<typename LensesT = Aws::Vector<Aws::String>>
66 ReviewTemplate& WithLenses(LensesT&& value) { SetLenses(std::forward<LensesT>(value)); return *this;}
67 template<typename LensesT = Aws::String>
68 ReviewTemplate& AddLenses(LensesT&& value) { m_lensesHasBeenSet = true; m_lenses.emplace_back(std::forward<LensesT>(value)); return *this; }
70
72
73 inline const Aws::String& GetNotes() const { return m_notes; }
74 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
75 template<typename NotesT = Aws::String>
76 void SetNotes(NotesT&& value) { m_notesHasBeenSet = true; m_notes = std::forward<NotesT>(value); }
77 template<typename NotesT = Aws::String>
78 ReviewTemplate& WithNotes(NotesT&& value) { SetNotes(std::forward<NotesT>(value)); return *this;}
80
82
86 inline const Aws::Map<Question, int>& GetQuestionCounts() const { return m_questionCounts; }
87 inline bool QuestionCountsHasBeenSet() const { return m_questionCountsHasBeenSet; }
88 template<typename QuestionCountsT = Aws::Map<Question, int>>
89 void SetQuestionCounts(QuestionCountsT&& value) { m_questionCountsHasBeenSet = true; m_questionCounts = std::forward<QuestionCountsT>(value); }
90 template<typename QuestionCountsT = Aws::Map<Question, int>>
91 ReviewTemplate& WithQuestionCounts(QuestionCountsT&& value) { SetQuestionCounts(std::forward<QuestionCountsT>(value)); return *this;}
92 inline ReviewTemplate& AddQuestionCounts(Question key, int value) {
93 m_questionCountsHasBeenSet = true; m_questionCounts.emplace(key, value); return *this;
94 }
96
98
99 inline const Aws::String& GetOwner() const { return m_owner; }
100 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
101 template<typename OwnerT = Aws::String>
102 void SetOwner(OwnerT&& value) { m_ownerHasBeenSet = true; m_owner = std::forward<OwnerT>(value); }
103 template<typename OwnerT = Aws::String>
104 ReviewTemplate& WithOwner(OwnerT&& value) { SetOwner(std::forward<OwnerT>(value)); return *this;}
106
108
109 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
110 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
111 template<typename UpdatedAtT = Aws::Utils::DateTime>
112 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
113 template<typename UpdatedAtT = Aws::Utils::DateTime>
114 ReviewTemplate& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
116
118
121 inline const Aws::String& GetTemplateArn() const { return m_templateArn; }
122 inline bool TemplateArnHasBeenSet() const { return m_templateArnHasBeenSet; }
123 template<typename TemplateArnT = Aws::String>
124 void SetTemplateArn(TemplateArnT&& value) { m_templateArnHasBeenSet = true; m_templateArn = std::forward<TemplateArnT>(value); }
125 template<typename TemplateArnT = Aws::String>
126 ReviewTemplate& WithTemplateArn(TemplateArnT&& value) { SetTemplateArn(std::forward<TemplateArnT>(value)); return *this;}
128
130
133 inline const Aws::String& GetTemplateName() const { return m_templateName; }
134 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
135 template<typename TemplateNameT = Aws::String>
136 void SetTemplateName(TemplateNameT&& value) { m_templateNameHasBeenSet = true; m_templateName = std::forward<TemplateNameT>(value); }
137 template<typename TemplateNameT = Aws::String>
138 ReviewTemplate& WithTemplateName(TemplateNameT&& value) { SetTemplateName(std::forward<TemplateNameT>(value)); return *this;}
140
142
145 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
146 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
147 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
148 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
149 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
150 ReviewTemplate& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
151 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
152 ReviewTemplate& AddTags(TagsKeyT&& key, TagsValueT&& value) {
153 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
154 }
156
158
161 inline ReviewTemplateUpdateStatus GetUpdateStatus() const { return m_updateStatus; }
162 inline bool UpdateStatusHasBeenSet() const { return m_updateStatusHasBeenSet; }
163 inline void SetUpdateStatus(ReviewTemplateUpdateStatus value) { m_updateStatusHasBeenSet = true; m_updateStatus = value; }
166
168
171 inline const Aws::String& GetShareInvitationId() const { return m_shareInvitationId; }
172 inline bool ShareInvitationIdHasBeenSet() const { return m_shareInvitationIdHasBeenSet; }
173 template<typename ShareInvitationIdT = Aws::String>
174 void SetShareInvitationId(ShareInvitationIdT&& value) { m_shareInvitationIdHasBeenSet = true; m_shareInvitationId = std::forward<ShareInvitationIdT>(value); }
175 template<typename ShareInvitationIdT = Aws::String>
176 ReviewTemplate& WithShareInvitationId(ShareInvitationIdT&& value) { SetShareInvitationId(std::forward<ShareInvitationIdT>(value)); return *this;}
178 private:
179
180 Aws::String m_description;
181 bool m_descriptionHasBeenSet = false;
182
184 bool m_lensesHasBeenSet = false;
185
186 Aws::String m_notes;
187 bool m_notesHasBeenSet = false;
188
189 Aws::Map<Question, int> m_questionCounts;
190 bool m_questionCountsHasBeenSet = false;
191
192 Aws::String m_owner;
193 bool m_ownerHasBeenSet = false;
194
195 Aws::Utils::DateTime m_updatedAt{};
196 bool m_updatedAtHasBeenSet = false;
197
198 Aws::String m_templateArn;
199 bool m_templateArnHasBeenSet = false;
200
201 Aws::String m_templateName;
202 bool m_templateNameHasBeenSet = false;
203
205 bool m_tagsHasBeenSet = false;
206
208 bool m_updateStatusHasBeenSet = false;
209
210 Aws::String m_shareInvitationId;
211 bool m_shareInvitationIdHasBeenSet = false;
212 };
213
214} // namespace Model
215} // namespace WellArchitected
216} // 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