AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
UpdateSubscriptionTargetResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/datazone/DataZone_EXPORTS.h>
12#include <aws/datazone/model/SubscriptionGrantCreationMode.h>
13#include <aws/datazone/model/SubscriptionTargetForm.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace DataZone {
27namespace Model {
29 public:
30 AWS_DATAZONE_API UpdateSubscriptionTargetResult() = default;
33
35
38 inline const Aws::String& GetId() const { return m_id; }
39 template <typename IdT = Aws::String>
40 void SetId(IdT&& value) {
41 m_idHasBeenSet = true;
42 m_id = std::forward<IdT>(value);
43 }
44 template <typename IdT = Aws::String>
46 SetId(std::forward<IdT>(value));
47 return *this;
48 }
50
52
57 inline const Aws::Vector<Aws::String>& GetAuthorizedPrincipals() const { return m_authorizedPrincipals; }
58 template <typename AuthorizedPrincipalsT = Aws::Vector<Aws::String>>
59 void SetAuthorizedPrincipals(AuthorizedPrincipalsT&& value) {
60 m_authorizedPrincipalsHasBeenSet = true;
61 m_authorizedPrincipals = std::forward<AuthorizedPrincipalsT>(value);
62 }
63 template <typename AuthorizedPrincipalsT = Aws::Vector<Aws::String>>
65 SetAuthorizedPrincipals(std::forward<AuthorizedPrincipalsT>(value));
66 return *this;
67 }
68 template <typename AuthorizedPrincipalsT = Aws::String>
70 m_authorizedPrincipalsHasBeenSet = true;
71 m_authorizedPrincipals.emplace_back(std::forward<AuthorizedPrincipalsT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetDomainId() const { return m_domainId; }
82 template <typename DomainIdT = Aws::String>
83 void SetDomainId(DomainIdT&& value) {
84 m_domainIdHasBeenSet = true;
85 m_domainId = std::forward<DomainIdT>(value);
86 }
87 template <typename DomainIdT = Aws::String>
89 SetDomainId(std::forward<DomainIdT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetProjectId() const { return m_projectId; }
100 template <typename ProjectIdT = Aws::String>
101 void SetProjectId(ProjectIdT&& value) {
102 m_projectIdHasBeenSet = true;
103 m_projectId = std::forward<ProjectIdT>(value);
104 }
105 template <typename ProjectIdT = Aws::String>
107 SetProjectId(std::forward<ProjectIdT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
118 template <typename EnvironmentIdT = Aws::String>
119 void SetEnvironmentId(EnvironmentIdT&& value) {
120 m_environmentIdHasBeenSet = true;
121 m_environmentId = std::forward<EnvironmentIdT>(value);
122 }
123 template <typename EnvironmentIdT = Aws::String>
125 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
126 return *this;
127 }
129
131
135 inline const Aws::String& GetName() const { return m_name; }
136 template <typename NameT = Aws::String>
137 void SetName(NameT&& value) {
138 m_nameHasBeenSet = true;
139 m_name = std::forward<NameT>(value);
140 }
141 template <typename NameT = Aws::String>
143 SetName(std::forward<NameT>(value));
144 return *this;
145 }
147
149
153 inline const Aws::String& GetType() const { return m_type; }
154 template <typename TypeT = Aws::String>
155 void SetType(TypeT&& value) {
156 m_typeHasBeenSet = true;
157 m_type = std::forward<TypeT>(value);
158 }
159 template <typename TypeT = Aws::String>
161 SetType(std::forward<TypeT>(value));
162 return *this;
163 }
165
167
170 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
171 template <typename CreatedByT = Aws::String>
172 void SetCreatedBy(CreatedByT&& value) {
173 m_createdByHasBeenSet = true;
174 m_createdBy = std::forward<CreatedByT>(value);
175 }
176 template <typename CreatedByT = Aws::String>
178 SetCreatedBy(std::forward<CreatedByT>(value));
179 return *this;
180 }
182
184
187 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
188 template <typename UpdatedByT = Aws::String>
189 void SetUpdatedBy(UpdatedByT&& value) {
190 m_updatedByHasBeenSet = true;
191 m_updatedBy = std::forward<UpdatedByT>(value);
192 }
193 template <typename UpdatedByT = Aws::String>
195 SetUpdatedBy(std::forward<UpdatedByT>(value));
196 return *this;
197 }
199
201
204 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
205 template <typename CreatedAtT = Aws::Utils::DateTime>
206 void SetCreatedAt(CreatedAtT&& value) {
207 m_createdAtHasBeenSet = true;
208 m_createdAt = std::forward<CreatedAtT>(value);
209 }
210 template <typename CreatedAtT = Aws::Utils::DateTime>
212 SetCreatedAt(std::forward<CreatedAtT>(value));
213 return *this;
214 }
216
218
221 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
222 template <typename UpdatedAtT = Aws::Utils::DateTime>
223 void SetUpdatedAt(UpdatedAtT&& value) {
224 m_updatedAtHasBeenSet = true;
225 m_updatedAt = std::forward<UpdatedAtT>(value);
226 }
227 template <typename UpdatedAtT = Aws::Utils::DateTime>
229 SetUpdatedAt(std::forward<UpdatedAtT>(value));
230 return *this;
231 }
233
235
239 inline const Aws::String& GetManageAccessRole() const { return m_manageAccessRole; }
240 template <typename ManageAccessRoleT = Aws::String>
241 void SetManageAccessRole(ManageAccessRoleT&& value) {
242 m_manageAccessRoleHasBeenSet = true;
243 m_manageAccessRole = std::forward<ManageAccessRoleT>(value);
244 }
245 template <typename ManageAccessRoleT = Aws::String>
247 SetManageAccessRole(std::forward<ManageAccessRoleT>(value));
248 return *this;
249 }
251
253
257 inline const Aws::Vector<Aws::String>& GetApplicableAssetTypes() const { return m_applicableAssetTypes; }
258 template <typename ApplicableAssetTypesT = Aws::Vector<Aws::String>>
259 void SetApplicableAssetTypes(ApplicableAssetTypesT&& value) {
260 m_applicableAssetTypesHasBeenSet = true;
261 m_applicableAssetTypes = std::forward<ApplicableAssetTypesT>(value);
262 }
263 template <typename ApplicableAssetTypesT = Aws::Vector<Aws::String>>
265 SetApplicableAssetTypes(std::forward<ApplicableAssetTypesT>(value));
266 return *this;
267 }
268 template <typename ApplicableAssetTypesT = Aws::String>
270 m_applicableAssetTypesHasBeenSet = true;
271 m_applicableAssetTypes.emplace_back(std::forward<ApplicableAssetTypesT>(value));
272 return *this;
273 }
275
277
281 inline const Aws::Vector<SubscriptionTargetForm>& GetSubscriptionTargetConfig() const { return m_subscriptionTargetConfig; }
282 template <typename SubscriptionTargetConfigT = Aws::Vector<SubscriptionTargetForm>>
283 void SetSubscriptionTargetConfig(SubscriptionTargetConfigT&& value) {
284 m_subscriptionTargetConfigHasBeenSet = true;
285 m_subscriptionTargetConfig = std::forward<SubscriptionTargetConfigT>(value);
286 }
287 template <typename SubscriptionTargetConfigT = Aws::Vector<SubscriptionTargetForm>>
289 SetSubscriptionTargetConfig(std::forward<SubscriptionTargetConfigT>(value));
290 return *this;
291 }
292 template <typename SubscriptionTargetConfigT = SubscriptionTargetForm>
294 m_subscriptionTargetConfigHasBeenSet = true;
295 m_subscriptionTargetConfig.emplace_back(std::forward<SubscriptionTargetConfigT>(value));
296 return *this;
297 }
299
301
305 inline const Aws::String& GetProvider() const { return m_provider; }
306 template <typename ProviderT = Aws::String>
307 void SetProvider(ProviderT&& value) {
308 m_providerHasBeenSet = true;
309 m_provider = std::forward<ProviderT>(value);
310 }
311 template <typename ProviderT = Aws::String>
313 SetProvider(std::forward<ProviderT>(value));
314 return *this;
315 }
317
319
323 inline SubscriptionGrantCreationMode GetSubscriptionGrantCreationMode() const { return m_subscriptionGrantCreationMode; }
325 m_subscriptionGrantCreationModeHasBeenSet = true;
326 m_subscriptionGrantCreationMode = value;
327 }
330 return *this;
331 }
333
335
336 inline const Aws::String& GetRequestId() const { return m_requestId; }
337 template <typename RequestIdT = Aws::String>
338 void SetRequestId(RequestIdT&& value) {
339 m_requestIdHasBeenSet = true;
340 m_requestId = std::forward<RequestIdT>(value);
341 }
342 template <typename RequestIdT = Aws::String>
344 SetRequestId(std::forward<RequestIdT>(value));
345 return *this;
346 }
348 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
349
350 private:
351 Aws::String m_id;
352
353 Aws::Vector<Aws::String> m_authorizedPrincipals;
354
355 Aws::String m_domainId;
356
357 Aws::String m_projectId;
358
359 Aws::String m_environmentId;
360
361 Aws::String m_name;
362
363 Aws::String m_type;
364
365 Aws::String m_createdBy;
366
367 Aws::String m_updatedBy;
368
369 Aws::Utils::DateTime m_createdAt{};
370
371 Aws::Utils::DateTime m_updatedAt{};
372
373 Aws::String m_manageAccessRole;
374
375 Aws::Vector<Aws::String> m_applicableAssetTypes;
376
377 Aws::Vector<SubscriptionTargetForm> m_subscriptionTargetConfig;
378
379 Aws::String m_provider;
380
382
383 Aws::String m_requestId;
384 Aws::Http::HttpResponseCode m_HttpResponseCode;
385 bool m_idHasBeenSet = false;
386 bool m_authorizedPrincipalsHasBeenSet = false;
387 bool m_domainIdHasBeenSet = false;
388 bool m_projectIdHasBeenSet = false;
389 bool m_environmentIdHasBeenSet = false;
390 bool m_nameHasBeenSet = false;
391 bool m_typeHasBeenSet = false;
392 bool m_createdByHasBeenSet = false;
393 bool m_updatedByHasBeenSet = false;
394 bool m_createdAtHasBeenSet = false;
395 bool m_updatedAtHasBeenSet = false;
396 bool m_manageAccessRoleHasBeenSet = false;
397 bool m_applicableAssetTypesHasBeenSet = false;
398 bool m_subscriptionTargetConfigHasBeenSet = false;
399 bool m_providerHasBeenSet = false;
400 bool m_subscriptionGrantCreationModeHasBeenSet = false;
401 bool m_requestIdHasBeenSet = false;
402};
403
404} // namespace Model
405} // namespace DataZone
406} // namespace Aws
UpdateSubscriptionTargetResult & AddAuthorizedPrincipals(AuthorizedPrincipalsT &&value)
UpdateSubscriptionTargetResult & AddSubscriptionTargetConfig(SubscriptionTargetConfigT &&value)
UpdateSubscriptionTargetResult & WithType(TypeT &&value)
AWS_DATAZONE_API UpdateSubscriptionTargetResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateSubscriptionTargetResult & WithCreatedAt(CreatedAtT &&value)
const Aws::Vector< Aws::String > & GetApplicableAssetTypes() const
UpdateSubscriptionTargetResult & WithDomainId(DomainIdT &&value)
UpdateSubscriptionTargetResult & WithApplicableAssetTypes(ApplicableAssetTypesT &&value)
void SetSubscriptionGrantCreationMode(SubscriptionGrantCreationMode value)
UpdateSubscriptionTargetResult & WithRequestId(RequestIdT &&value)
UpdateSubscriptionTargetResult & WithEnvironmentId(EnvironmentIdT &&value)
UpdateSubscriptionTargetResult & WithName(NameT &&value)
UpdateSubscriptionTargetResult & WithManageAccessRole(ManageAccessRoleT &&value)
UpdateSubscriptionTargetResult & WithSubscriptionGrantCreationMode(SubscriptionGrantCreationMode value)
const Aws::Vector< Aws::String > & GetAuthorizedPrincipals() const
UpdateSubscriptionTargetResult & WithUpdatedBy(UpdatedByT &&value)
UpdateSubscriptionTargetResult & WithProvider(ProviderT &&value)
UpdateSubscriptionTargetResult & WithUpdatedAt(UpdatedAtT &&value)
AWS_DATAZONE_API UpdateSubscriptionTargetResult()=default
const Aws::Vector< SubscriptionTargetForm > & GetSubscriptionTargetConfig() const
AWS_DATAZONE_API UpdateSubscriptionTargetResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetSubscriptionTargetConfig(SubscriptionTargetConfigT &&value)
UpdateSubscriptionTargetResult & AddApplicableAssetTypes(ApplicableAssetTypesT &&value)
UpdateSubscriptionTargetResult & WithProjectId(ProjectIdT &&value)
UpdateSubscriptionTargetResult & WithCreatedBy(CreatedByT &&value)
UpdateSubscriptionTargetResult & WithAuthorizedPrincipals(AuthorizedPrincipalsT &&value)
UpdateSubscriptionTargetResult & WithSubscriptionTargetConfig(SubscriptionTargetConfigT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue