AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
Profile.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/ProfileQuestion.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace WellArchitected {
24namespace Model {
25
31class Profile {
32 public:
33 AWS_WELLARCHITECTED_API Profile() = default;
34 AWS_WELLARCHITECTED_API Profile(Aws::Utils::Json::JsonView jsonValue);
35 AWS_WELLARCHITECTED_API Profile& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetProfileArn() const { return m_profileArn; }
43 inline bool ProfileArnHasBeenSet() const { return m_profileArnHasBeenSet; }
44 template <typename ProfileArnT = Aws::String>
45 void SetProfileArn(ProfileArnT&& value) {
46 m_profileArnHasBeenSet = true;
47 m_profileArn = std::forward<ProfileArnT>(value);
48 }
49 template <typename ProfileArnT = Aws::String>
50 Profile& WithProfileArn(ProfileArnT&& value) {
51 SetProfileArn(std::forward<ProfileArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetProfileVersion() const { return m_profileVersion; }
61 inline bool ProfileVersionHasBeenSet() const { return m_profileVersionHasBeenSet; }
62 template <typename ProfileVersionT = Aws::String>
63 void SetProfileVersion(ProfileVersionT&& value) {
64 m_profileVersionHasBeenSet = true;
65 m_profileVersion = std::forward<ProfileVersionT>(value);
66 }
67 template <typename ProfileVersionT = Aws::String>
68 Profile& WithProfileVersion(ProfileVersionT&& value) {
69 SetProfileVersion(std::forward<ProfileVersionT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetProfileName() const { return m_profileName; }
79 inline bool ProfileNameHasBeenSet() const { return m_profileNameHasBeenSet; }
80 template <typename ProfileNameT = Aws::String>
81 void SetProfileName(ProfileNameT&& value) {
82 m_profileNameHasBeenSet = true;
83 m_profileName = std::forward<ProfileNameT>(value);
84 }
85 template <typename ProfileNameT = Aws::String>
86 Profile& WithProfileName(ProfileNameT&& value) {
87 SetProfileName(std::forward<ProfileNameT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetProfileDescription() const { return m_profileDescription; }
97 inline bool ProfileDescriptionHasBeenSet() const { return m_profileDescriptionHasBeenSet; }
98 template <typename ProfileDescriptionT = Aws::String>
99 void SetProfileDescription(ProfileDescriptionT&& value) {
100 m_profileDescriptionHasBeenSet = true;
101 m_profileDescription = std::forward<ProfileDescriptionT>(value);
102 }
103 template <typename ProfileDescriptionT = Aws::String>
104 Profile& WithProfileDescription(ProfileDescriptionT&& value) {
105 SetProfileDescription(std::forward<ProfileDescriptionT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Vector<ProfileQuestion>& GetProfileQuestions() const { return m_profileQuestions; }
115 inline bool ProfileQuestionsHasBeenSet() const { return m_profileQuestionsHasBeenSet; }
116 template <typename ProfileQuestionsT = Aws::Vector<ProfileQuestion>>
117 void SetProfileQuestions(ProfileQuestionsT&& value) {
118 m_profileQuestionsHasBeenSet = true;
119 m_profileQuestions = std::forward<ProfileQuestionsT>(value);
120 }
121 template <typename ProfileQuestionsT = Aws::Vector<ProfileQuestion>>
122 Profile& WithProfileQuestions(ProfileQuestionsT&& value) {
123 SetProfileQuestions(std::forward<ProfileQuestionsT>(value));
124 return *this;
125 }
126 template <typename ProfileQuestionsT = ProfileQuestion>
127 Profile& AddProfileQuestions(ProfileQuestionsT&& value) {
128 m_profileQuestionsHasBeenSet = true;
129 m_profileQuestions.emplace_back(std::forward<ProfileQuestionsT>(value));
130 return *this;
131 }
133
135
136 inline const Aws::String& GetOwner() const { return m_owner; }
137 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
138 template <typename OwnerT = Aws::String>
139 void SetOwner(OwnerT&& value) {
140 m_ownerHasBeenSet = true;
141 m_owner = std::forward<OwnerT>(value);
142 }
143 template <typename OwnerT = Aws::String>
144 Profile& WithOwner(OwnerT&& value) {
145 SetOwner(std::forward<OwnerT>(value));
146 return *this;
147 }
149
151
152 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
153 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
154 template <typename CreatedAtT = Aws::Utils::DateTime>
155 void SetCreatedAt(CreatedAtT&& value) {
156 m_createdAtHasBeenSet = true;
157 m_createdAt = std::forward<CreatedAtT>(value);
158 }
159 template <typename CreatedAtT = Aws::Utils::DateTime>
160 Profile& WithCreatedAt(CreatedAtT&& value) {
161 SetCreatedAt(std::forward<CreatedAtT>(value));
162 return *this;
163 }
165
167
168 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
169 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
170 template <typename UpdatedAtT = Aws::Utils::DateTime>
171 void SetUpdatedAt(UpdatedAtT&& value) {
172 m_updatedAtHasBeenSet = true;
173 m_updatedAt = std::forward<UpdatedAtT>(value);
174 }
175 template <typename UpdatedAtT = Aws::Utils::DateTime>
176 Profile& WithUpdatedAt(UpdatedAtT&& value) {
177 SetUpdatedAt(std::forward<UpdatedAtT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::String& GetShareInvitationId() const { return m_shareInvitationId; }
187 inline bool ShareInvitationIdHasBeenSet() const { return m_shareInvitationIdHasBeenSet; }
188 template <typename ShareInvitationIdT = Aws::String>
189 void SetShareInvitationId(ShareInvitationIdT&& value) {
190 m_shareInvitationIdHasBeenSet = true;
191 m_shareInvitationId = std::forward<ShareInvitationIdT>(value);
192 }
193 template <typename ShareInvitationIdT = Aws::String>
194 Profile& WithShareInvitationId(ShareInvitationIdT&& value) {
195 SetShareInvitationId(std::forward<ShareInvitationIdT>(value));
196 return *this;
197 }
199
201
204 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
205 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
206 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
207 void SetTags(TagsT&& value) {
208 m_tagsHasBeenSet = true;
209 m_tags = std::forward<TagsT>(value);
210 }
211 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
212 Profile& WithTags(TagsT&& value) {
213 SetTags(std::forward<TagsT>(value));
214 return *this;
215 }
216 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
217 Profile& AddTags(TagsKeyT&& key, TagsValueT&& value) {
218 m_tagsHasBeenSet = true;
219 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
220 return *this;
221 }
223 private:
224 Aws::String m_profileArn;
225
226 Aws::String m_profileVersion;
227
228 Aws::String m_profileName;
229
230 Aws::String m_profileDescription;
231
232 Aws::Vector<ProfileQuestion> m_profileQuestions;
233
234 Aws::String m_owner;
235
236 Aws::Utils::DateTime m_createdAt{};
237
238 Aws::Utils::DateTime m_updatedAt{};
239
240 Aws::String m_shareInvitationId;
241
243 bool m_profileArnHasBeenSet = false;
244 bool m_profileVersionHasBeenSet = false;
245 bool m_profileNameHasBeenSet = false;
246 bool m_profileDescriptionHasBeenSet = false;
247 bool m_profileQuestionsHasBeenSet = false;
248 bool m_ownerHasBeenSet = false;
249 bool m_createdAtHasBeenSet = false;
250 bool m_updatedAtHasBeenSet = false;
251 bool m_shareInvitationIdHasBeenSet = false;
252 bool m_tagsHasBeenSet = false;
253};
254
255} // namespace Model
256} // namespace WellArchitected
257} // namespace Aws
void SetProfileArn(ProfileArnT &&value)
Definition Profile.h:45
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Profile.h:152
void SetUpdatedAt(UpdatedAtT &&value)
Definition Profile.h:171
Profile & WithCreatedAt(CreatedAtT &&value)
Definition Profile.h:160
AWS_WELLARCHITECTED_API Profile()=default
bool ProfileDescriptionHasBeenSet() const
Definition Profile.h:97
const Aws::String & GetProfileVersion() const
Definition Profile.h:60
const Aws::String & GetShareInvitationId() const
Definition Profile.h:186
Profile & WithProfileArn(ProfileArnT &&value)
Definition Profile.h:50
const Aws::String & GetProfileDescription() const
Definition Profile.h:96
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
void SetProfileDescription(ProfileDescriptionT &&value)
Definition Profile.h:99
void SetProfileVersion(ProfileVersionT &&value)
Definition Profile.h:63
Profile & WithProfileVersion(ProfileVersionT &&value)
Definition Profile.h:68
const Aws::String & GetProfileName() const
Definition Profile.h:78
void SetProfileQuestions(ProfileQuestionsT &&value)
Definition Profile.h:117
Profile & WithShareInvitationId(ShareInvitationIdT &&value)
Definition Profile.h:194
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Profile.h:168
void SetShareInvitationId(ShareInvitationIdT &&value)
Definition Profile.h:189
const Aws::String & GetOwner() const
Definition Profile.h:136
const Aws::String & GetProfileArn() const
Definition Profile.h:42
void SetOwner(OwnerT &&value)
Definition Profile.h:139
Profile & WithOwner(OwnerT &&value)
Definition Profile.h:144
void SetCreatedAt(CreatedAtT &&value)
Definition Profile.h:155
Profile & WithProfileName(ProfileNameT &&value)
Definition Profile.h:86
Profile & WithProfileDescription(ProfileDescriptionT &&value)
Definition Profile.h:104
AWS_WELLARCHITECTED_API Profile & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetProfileName(ProfileNameT &&value)
Definition Profile.h:81
Profile & WithTags(TagsT &&value)
Definition Profile.h:212
Profile & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Profile.h:217
Profile & AddProfileQuestions(ProfileQuestionsT &&value)
Definition Profile.h:127
const Aws::Vector< ProfileQuestion > & GetProfileQuestions() const
Definition Profile.h:114
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Profile.h:204
Profile & WithProfileQuestions(ProfileQuestionsT &&value)
Definition Profile.h:122
Profile & WithUpdatedAt(UpdatedAtT &&value)
Definition Profile.h:176
AWS_WELLARCHITECTED_API Profile(Aws::Utils::Json::JsonView jsonValue)
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