AWS SDK for C++

AWS SDK for C++ Version 1.11.875

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
154 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
155 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
156 template <typename CreatedAtT = Aws::Utils::DateTime>
157 void SetCreatedAt(CreatedAtT&& value) {
158 m_createdAtHasBeenSet = true;
159 m_createdAt = std::forward<CreatedAtT>(value);
160 }
161 template <typename CreatedAtT = Aws::Utils::DateTime>
162 Profile& WithCreatedAt(CreatedAtT&& value) {
163 SetCreatedAt(std::forward<CreatedAtT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
173 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
174 template <typename UpdatedAtT = Aws::Utils::DateTime>
175 void SetUpdatedAt(UpdatedAtT&& value) {
176 m_updatedAtHasBeenSet = true;
177 m_updatedAt = std::forward<UpdatedAtT>(value);
178 }
179 template <typename UpdatedAtT = Aws::Utils::DateTime>
180 Profile& WithUpdatedAt(UpdatedAtT&& value) {
181 SetUpdatedAt(std::forward<UpdatedAtT>(value));
182 return *this;
183 }
185
187
190 inline const Aws::String& GetShareInvitationId() const { return m_shareInvitationId; }
191 inline bool ShareInvitationIdHasBeenSet() const { return m_shareInvitationIdHasBeenSet; }
192 template <typename ShareInvitationIdT = Aws::String>
193 void SetShareInvitationId(ShareInvitationIdT&& value) {
194 m_shareInvitationIdHasBeenSet = true;
195 m_shareInvitationId = std::forward<ShareInvitationIdT>(value);
196 }
197 template <typename ShareInvitationIdT = Aws::String>
198 Profile& WithShareInvitationId(ShareInvitationIdT&& value) {
199 SetShareInvitationId(std::forward<ShareInvitationIdT>(value));
200 return *this;
201 }
203
205
208 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
209 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
210 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
211 void SetTags(TagsT&& value) {
212 m_tagsHasBeenSet = true;
213 m_tags = std::forward<TagsT>(value);
214 }
215 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
216 Profile& WithTags(TagsT&& value) {
217 SetTags(std::forward<TagsT>(value));
218 return *this;
219 }
220 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
221 Profile& AddTags(TagsKeyT&& key, TagsValueT&& value) {
222 m_tagsHasBeenSet = true;
223 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
224 return *this;
225 }
227 private:
228 Aws::String m_profileArn;
229
230 Aws::String m_profileVersion;
231
232 Aws::String m_profileName;
233
234 Aws::String m_profileDescription;
235
236 Aws::Vector<ProfileQuestion> m_profileQuestions;
237
238 Aws::String m_owner;
239
240 Aws::Utils::DateTime m_createdAt{};
241
242 Aws::Utils::DateTime m_updatedAt{};
243
244 Aws::String m_shareInvitationId;
245
247 bool m_profileArnHasBeenSet = false;
248 bool m_profileVersionHasBeenSet = false;
249 bool m_profileNameHasBeenSet = false;
250 bool m_profileDescriptionHasBeenSet = false;
251 bool m_profileQuestionsHasBeenSet = false;
252 bool m_ownerHasBeenSet = false;
253 bool m_createdAtHasBeenSet = false;
254 bool m_updatedAtHasBeenSet = false;
255 bool m_shareInvitationIdHasBeenSet = false;
256 bool m_tagsHasBeenSet = false;
257};
258
259} // namespace Model
260} // namespace WellArchitected
261} // namespace Aws
void SetProfileArn(ProfileArnT &&value)
Definition Profile.h:45
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Profile.h:154
void SetUpdatedAt(UpdatedAtT &&value)
Definition Profile.h:175
Profile & WithCreatedAt(CreatedAtT &&value)
Definition Profile.h:162
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:190
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:198
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Profile.h:172
void SetShareInvitationId(ShareInvitationIdT &&value)
Definition Profile.h:193
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:157
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:216
Profile & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Profile.h:221
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:208
Profile & WithProfileQuestions(ProfileQuestionsT &&value)
Definition Profile.h:122
Profile & WithUpdatedAt(UpdatedAtT &&value)
Definition Profile.h:180
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