AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
GetSubscriptionTargetResult.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 GetSubscriptionTargetResult() = 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
55 inline const Aws::Vector<Aws::String>& GetAuthorizedPrincipals() const { return m_authorizedPrincipals; }
56 template <typename AuthorizedPrincipalsT = Aws::Vector<Aws::String>>
57 void SetAuthorizedPrincipals(AuthorizedPrincipalsT&& value) {
58 m_authorizedPrincipalsHasBeenSet = true;
59 m_authorizedPrincipals = std::forward<AuthorizedPrincipalsT>(value);
60 }
61 template <typename AuthorizedPrincipalsT = Aws::Vector<Aws::String>>
62 GetSubscriptionTargetResult& WithAuthorizedPrincipals(AuthorizedPrincipalsT&& value) {
63 SetAuthorizedPrincipals(std::forward<AuthorizedPrincipalsT>(value));
64 return *this;
65 }
66 template <typename AuthorizedPrincipalsT = Aws::String>
67 GetSubscriptionTargetResult& AddAuthorizedPrincipals(AuthorizedPrincipalsT&& value) {
68 m_authorizedPrincipalsHasBeenSet = true;
69 m_authorizedPrincipals.emplace_back(std::forward<AuthorizedPrincipalsT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetDomainId() const { return m_domainId; }
80 template <typename DomainIdT = Aws::String>
81 void SetDomainId(DomainIdT&& value) {
82 m_domainIdHasBeenSet = true;
83 m_domainId = std::forward<DomainIdT>(value);
84 }
85 template <typename DomainIdT = Aws::String>
87 SetDomainId(std::forward<DomainIdT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetProjectId() const { return m_projectId; }
97 template <typename ProjectIdT = Aws::String>
98 void SetProjectId(ProjectIdT&& value) {
99 m_projectIdHasBeenSet = true;
100 m_projectId = std::forward<ProjectIdT>(value);
101 }
102 template <typename ProjectIdT = Aws::String>
104 SetProjectId(std::forward<ProjectIdT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
114 template <typename EnvironmentIdT = Aws::String>
115 void SetEnvironmentId(EnvironmentIdT&& value) {
116 m_environmentIdHasBeenSet = true;
117 m_environmentId = std::forward<EnvironmentIdT>(value);
118 }
119 template <typename EnvironmentIdT = Aws::String>
121 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetName() const { return m_name; }
131 template <typename NameT = Aws::String>
132 void SetName(NameT&& value) {
133 m_nameHasBeenSet = true;
134 m_name = std::forward<NameT>(value);
135 }
136 template <typename NameT = Aws::String>
138 SetName(std::forward<NameT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::String& GetType() const { return m_type; }
148 template <typename TypeT = Aws::String>
149 void SetType(TypeT&& value) {
150 m_typeHasBeenSet = true;
151 m_type = std::forward<TypeT>(value);
152 }
153 template <typename TypeT = Aws::String>
155 SetType(std::forward<TypeT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
165 template <typename CreatedByT = Aws::String>
166 void SetCreatedBy(CreatedByT&& value) {
167 m_createdByHasBeenSet = true;
168 m_createdBy = std::forward<CreatedByT>(value);
169 }
170 template <typename CreatedByT = Aws::String>
172 SetCreatedBy(std::forward<CreatedByT>(value));
173 return *this;
174 }
176
178
181 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
182 template <typename UpdatedByT = Aws::String>
183 void SetUpdatedBy(UpdatedByT&& value) {
184 m_updatedByHasBeenSet = true;
185 m_updatedBy = std::forward<UpdatedByT>(value);
186 }
187 template <typename UpdatedByT = Aws::String>
189 SetUpdatedBy(std::forward<UpdatedByT>(value));
190 return *this;
191 }
193
195
198 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
199 template <typename CreatedAtT = Aws::Utils::DateTime>
200 void SetCreatedAt(CreatedAtT&& value) {
201 m_createdAtHasBeenSet = true;
202 m_createdAt = std::forward<CreatedAtT>(value);
203 }
204 template <typename CreatedAtT = Aws::Utils::DateTime>
206 SetCreatedAt(std::forward<CreatedAtT>(value));
207 return *this;
208 }
210
212
215 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
216 template <typename UpdatedAtT = Aws::Utils::DateTime>
217 void SetUpdatedAt(UpdatedAtT&& value) {
218 m_updatedAtHasBeenSet = true;
219 m_updatedAt = std::forward<UpdatedAtT>(value);
220 }
221 template <typename UpdatedAtT = Aws::Utils::DateTime>
223 SetUpdatedAt(std::forward<UpdatedAtT>(value));
224 return *this;
225 }
227
229
232 inline const Aws::String& GetManageAccessRole() const { return m_manageAccessRole; }
233 template <typename ManageAccessRoleT = Aws::String>
234 void SetManageAccessRole(ManageAccessRoleT&& value) {
235 m_manageAccessRoleHasBeenSet = true;
236 m_manageAccessRole = std::forward<ManageAccessRoleT>(value);
237 }
238 template <typename ManageAccessRoleT = Aws::String>
240 SetManageAccessRole(std::forward<ManageAccessRoleT>(value));
241 return *this;
242 }
244
246
249 inline const Aws::Vector<Aws::String>& GetApplicableAssetTypes() const { return m_applicableAssetTypes; }
250 template <typename ApplicableAssetTypesT = Aws::Vector<Aws::String>>
251 void SetApplicableAssetTypes(ApplicableAssetTypesT&& value) {
252 m_applicableAssetTypesHasBeenSet = true;
253 m_applicableAssetTypes = std::forward<ApplicableAssetTypesT>(value);
254 }
255 template <typename ApplicableAssetTypesT = Aws::Vector<Aws::String>>
257 SetApplicableAssetTypes(std::forward<ApplicableAssetTypesT>(value));
258 return *this;
259 }
260 template <typename ApplicableAssetTypesT = Aws::String>
261 GetSubscriptionTargetResult& AddApplicableAssetTypes(ApplicableAssetTypesT&& value) {
262 m_applicableAssetTypesHasBeenSet = true;
263 m_applicableAssetTypes.emplace_back(std::forward<ApplicableAssetTypesT>(value));
264 return *this;
265 }
267
269
272 inline const Aws::Vector<SubscriptionTargetForm>& GetSubscriptionTargetConfig() const { return m_subscriptionTargetConfig; }
273 template <typename SubscriptionTargetConfigT = Aws::Vector<SubscriptionTargetForm>>
274 void SetSubscriptionTargetConfig(SubscriptionTargetConfigT&& value) {
275 m_subscriptionTargetConfigHasBeenSet = true;
276 m_subscriptionTargetConfig = std::forward<SubscriptionTargetConfigT>(value);
277 }
278 template <typename SubscriptionTargetConfigT = Aws::Vector<SubscriptionTargetForm>>
279 GetSubscriptionTargetResult& WithSubscriptionTargetConfig(SubscriptionTargetConfigT&& value) {
280 SetSubscriptionTargetConfig(std::forward<SubscriptionTargetConfigT>(value));
281 return *this;
282 }
283 template <typename SubscriptionTargetConfigT = SubscriptionTargetForm>
284 GetSubscriptionTargetResult& AddSubscriptionTargetConfig(SubscriptionTargetConfigT&& value) {
285 m_subscriptionTargetConfigHasBeenSet = true;
286 m_subscriptionTargetConfig.emplace_back(std::forward<SubscriptionTargetConfigT>(value));
287 return *this;
288 }
290
292
295 inline const Aws::String& GetProvider() const { return m_provider; }
296 template <typename ProviderT = Aws::String>
297 void SetProvider(ProviderT&& value) {
298 m_providerHasBeenSet = true;
299 m_provider = std::forward<ProviderT>(value);
300 }
301 template <typename ProviderT = Aws::String>
303 SetProvider(std::forward<ProviderT>(value));
304 return *this;
305 }
307
309
313 inline SubscriptionGrantCreationMode GetSubscriptionGrantCreationMode() const { return m_subscriptionGrantCreationMode; }
315 m_subscriptionGrantCreationModeHasBeenSet = true;
316 m_subscriptionGrantCreationMode = value;
317 }
320 return *this;
321 }
323
325
326 inline const Aws::String& GetRequestId() const { return m_requestId; }
327 template <typename RequestIdT = Aws::String>
328 void SetRequestId(RequestIdT&& value) {
329 m_requestIdHasBeenSet = true;
330 m_requestId = std::forward<RequestIdT>(value);
331 }
332 template <typename RequestIdT = Aws::String>
334 SetRequestId(std::forward<RequestIdT>(value));
335 return *this;
336 }
338 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
339
340 private:
341 Aws::String m_id;
342
343 Aws::Vector<Aws::String> m_authorizedPrincipals;
344
345 Aws::String m_domainId;
346
347 Aws::String m_projectId;
348
349 Aws::String m_environmentId;
350
351 Aws::String m_name;
352
353 Aws::String m_type;
354
355 Aws::String m_createdBy;
356
357 Aws::String m_updatedBy;
358
359 Aws::Utils::DateTime m_createdAt{};
360
361 Aws::Utils::DateTime m_updatedAt{};
362
363 Aws::String m_manageAccessRole;
364
365 Aws::Vector<Aws::String> m_applicableAssetTypes;
366
367 Aws::Vector<SubscriptionTargetForm> m_subscriptionTargetConfig;
368
369 Aws::String m_provider;
370
372
373 Aws::String m_requestId;
374 Aws::Http::HttpResponseCode m_HttpResponseCode;
375 bool m_idHasBeenSet = false;
376 bool m_authorizedPrincipalsHasBeenSet = false;
377 bool m_domainIdHasBeenSet = false;
378 bool m_projectIdHasBeenSet = false;
379 bool m_environmentIdHasBeenSet = false;
380 bool m_nameHasBeenSet = false;
381 bool m_typeHasBeenSet = false;
382 bool m_createdByHasBeenSet = false;
383 bool m_updatedByHasBeenSet = false;
384 bool m_createdAtHasBeenSet = false;
385 bool m_updatedAtHasBeenSet = false;
386 bool m_manageAccessRoleHasBeenSet = false;
387 bool m_applicableAssetTypesHasBeenSet = false;
388 bool m_subscriptionTargetConfigHasBeenSet = false;
389 bool m_providerHasBeenSet = false;
390 bool m_subscriptionGrantCreationModeHasBeenSet = false;
391 bool m_requestIdHasBeenSet = false;
392};
393
394} // namespace Model
395} // namespace DataZone
396} // namespace Aws
GetSubscriptionTargetResult & WithProvider(ProviderT &&value)
GetSubscriptionTargetResult & WithEnvironmentId(EnvironmentIdT &&value)
const Aws::Vector< Aws::String > & GetApplicableAssetTypes() const
GetSubscriptionTargetResult & WithUpdatedAt(UpdatedAtT &&value)
GetSubscriptionTargetResult & WithSubscriptionGrantCreationMode(SubscriptionGrantCreationMode value)
GetSubscriptionTargetResult & WithApplicableAssetTypes(ApplicableAssetTypesT &&value)
GetSubscriptionTargetResult & WithCreatedBy(CreatedByT &&value)
GetSubscriptionTargetResult & WithProjectId(ProjectIdT &&value)
GetSubscriptionTargetResult & WithType(TypeT &&value)
GetSubscriptionTargetResult & AddAuthorizedPrincipals(AuthorizedPrincipalsT &&value)
const Aws::Vector< Aws::String > & GetAuthorizedPrincipals() const
SubscriptionGrantCreationMode GetSubscriptionGrantCreationMode() const
GetSubscriptionTargetResult & AddApplicableAssetTypes(ApplicableAssetTypesT &&value)
GetSubscriptionTargetResult & WithId(IdT &&value)
GetSubscriptionTargetResult & WithManageAccessRole(ManageAccessRoleT &&value)
GetSubscriptionTargetResult & WithDomainId(DomainIdT &&value)
GetSubscriptionTargetResult & WithCreatedAt(CreatedAtT &&value)
GetSubscriptionTargetResult & WithRequestId(RequestIdT &&value)
GetSubscriptionTargetResult & WithAuthorizedPrincipals(AuthorizedPrincipalsT &&value)
AWS_DATAZONE_API GetSubscriptionTargetResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetSubscriptionTargetResult & WithName(NameT &&value)
AWS_DATAZONE_API GetSubscriptionTargetResult()=default
void SetSubscriptionTargetConfig(SubscriptionTargetConfigT &&value)
GetSubscriptionTargetResult & WithUpdatedBy(UpdatedByT &&value)
GetSubscriptionTargetResult & AddSubscriptionTargetConfig(SubscriptionTargetConfigT &&value)
AWS_DATAZONE_API GetSubscriptionTargetResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetSubscriptionTargetResult & WithSubscriptionTargetConfig(SubscriptionTargetConfigT &&value)
void SetSubscriptionGrantCreationMode(SubscriptionGrantCreationMode value)
const Aws::Vector< SubscriptionTargetForm > & GetSubscriptionTargetConfig() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue