AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
CreateSubscriptionTargetResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/datazone/DataZone_EXPORTS.h>
11#include <aws/datazone/model/SubscriptionGrantCreationMode.h>
12#include <aws/datazone/model/SubscriptionTargetForm.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace DataZone {
26namespace Model {
28 public:
29 AWS_DATAZONE_API CreateSubscriptionTargetResult() = default;
32
34
37 inline const Aws::String& GetId() const { return m_id; }
38 template <typename IdT = Aws::String>
39 void SetId(IdT&& value) {
40 m_idHasBeenSet = true;
41 m_id = std::forward<IdT>(value);
42 }
43 template <typename IdT = Aws::String>
45 SetId(std::forward<IdT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::Vector<Aws::String>& GetAuthorizedPrincipals() const { return m_authorizedPrincipals; }
55 template <typename AuthorizedPrincipalsT = Aws::Vector<Aws::String>>
56 void SetAuthorizedPrincipals(AuthorizedPrincipalsT&& value) {
57 m_authorizedPrincipalsHasBeenSet = true;
58 m_authorizedPrincipals = std::forward<AuthorizedPrincipalsT>(value);
59 }
60 template <typename AuthorizedPrincipalsT = Aws::Vector<Aws::String>>
62 SetAuthorizedPrincipals(std::forward<AuthorizedPrincipalsT>(value));
63 return *this;
64 }
65 template <typename AuthorizedPrincipalsT = Aws::String>
67 m_authorizedPrincipalsHasBeenSet = true;
68 m_authorizedPrincipals.emplace_back(std::forward<AuthorizedPrincipalsT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetDomainId() const { return m_domainId; }
79 template <typename DomainIdT = Aws::String>
80 void SetDomainId(DomainIdT&& value) {
81 m_domainIdHasBeenSet = true;
82 m_domainId = std::forward<DomainIdT>(value);
83 }
84 template <typename DomainIdT = Aws::String>
86 SetDomainId(std::forward<DomainIdT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetProjectId() const { return m_projectId; }
96 template <typename ProjectIdT = Aws::String>
97 void SetProjectId(ProjectIdT&& value) {
98 m_projectIdHasBeenSet = true;
99 m_projectId = std::forward<ProjectIdT>(value);
100 }
101 template <typename ProjectIdT = Aws::String>
103 SetProjectId(std::forward<ProjectIdT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
113 template <typename EnvironmentIdT = Aws::String>
114 void SetEnvironmentId(EnvironmentIdT&& value) {
115 m_environmentIdHasBeenSet = true;
116 m_environmentId = std::forward<EnvironmentIdT>(value);
117 }
118 template <typename EnvironmentIdT = Aws::String>
120 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetName() const { return m_name; }
130 template <typename NameT = Aws::String>
131 void SetName(NameT&& value) {
132 m_nameHasBeenSet = true;
133 m_name = std::forward<NameT>(value);
134 }
135 template <typename NameT = Aws::String>
137 SetName(std::forward<NameT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::String& GetType() const { return m_type; }
147 template <typename TypeT = Aws::String>
148 void SetType(TypeT&& value) {
149 m_typeHasBeenSet = true;
150 m_type = std::forward<TypeT>(value);
151 }
152 template <typename TypeT = Aws::String>
154 SetType(std::forward<TypeT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
164 template <typename CreatedByT = Aws::String>
165 void SetCreatedBy(CreatedByT&& value) {
166 m_createdByHasBeenSet = true;
167 m_createdBy = std::forward<CreatedByT>(value);
168 }
169 template <typename CreatedByT = Aws::String>
171 SetCreatedBy(std::forward<CreatedByT>(value));
172 return *this;
173 }
175
177
180 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
181 template <typename UpdatedByT = Aws::String>
182 void SetUpdatedBy(UpdatedByT&& value) {
183 m_updatedByHasBeenSet = true;
184 m_updatedBy = std::forward<UpdatedByT>(value);
185 }
186 template <typename UpdatedByT = Aws::String>
188 SetUpdatedBy(std::forward<UpdatedByT>(value));
189 return *this;
190 }
192
194
197 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
198 template <typename CreatedAtT = Aws::Utils::DateTime>
199 void SetCreatedAt(CreatedAtT&& value) {
200 m_createdAtHasBeenSet = true;
201 m_createdAt = std::forward<CreatedAtT>(value);
202 }
203 template <typename CreatedAtT = Aws::Utils::DateTime>
205 SetCreatedAt(std::forward<CreatedAtT>(value));
206 return *this;
207 }
209
211
214 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
215 template <typename UpdatedAtT = Aws::Utils::DateTime>
216 void SetUpdatedAt(UpdatedAtT&& value) {
217 m_updatedAtHasBeenSet = true;
218 m_updatedAt = std::forward<UpdatedAtT>(value);
219 }
220 template <typename UpdatedAtT = Aws::Utils::DateTime>
222 SetUpdatedAt(std::forward<UpdatedAtT>(value));
223 return *this;
224 }
226
228
231 inline const Aws::String& GetManageAccessRole() const { return m_manageAccessRole; }
232 template <typename ManageAccessRoleT = Aws::String>
233 void SetManageAccessRole(ManageAccessRoleT&& value) {
234 m_manageAccessRoleHasBeenSet = true;
235 m_manageAccessRole = std::forward<ManageAccessRoleT>(value);
236 }
237 template <typename ManageAccessRoleT = Aws::String>
239 SetManageAccessRole(std::forward<ManageAccessRoleT>(value));
240 return *this;
241 }
243
245
248 inline const Aws::Vector<Aws::String>& GetApplicableAssetTypes() const { return m_applicableAssetTypes; }
249 template <typename ApplicableAssetTypesT = Aws::Vector<Aws::String>>
250 void SetApplicableAssetTypes(ApplicableAssetTypesT&& value) {
251 m_applicableAssetTypesHasBeenSet = true;
252 m_applicableAssetTypes = std::forward<ApplicableAssetTypesT>(value);
253 }
254 template <typename ApplicableAssetTypesT = Aws::Vector<Aws::String>>
256 SetApplicableAssetTypes(std::forward<ApplicableAssetTypesT>(value));
257 return *this;
258 }
259 template <typename ApplicableAssetTypesT = Aws::String>
261 m_applicableAssetTypesHasBeenSet = true;
262 m_applicableAssetTypes.emplace_back(std::forward<ApplicableAssetTypesT>(value));
263 return *this;
264 }
266
268
271 inline const Aws::Vector<SubscriptionTargetForm>& GetSubscriptionTargetConfig() const { return m_subscriptionTargetConfig; }
272 template <typename SubscriptionTargetConfigT = Aws::Vector<SubscriptionTargetForm>>
273 void SetSubscriptionTargetConfig(SubscriptionTargetConfigT&& value) {
274 m_subscriptionTargetConfigHasBeenSet = true;
275 m_subscriptionTargetConfig = std::forward<SubscriptionTargetConfigT>(value);
276 }
277 template <typename SubscriptionTargetConfigT = Aws::Vector<SubscriptionTargetForm>>
279 SetSubscriptionTargetConfig(std::forward<SubscriptionTargetConfigT>(value));
280 return *this;
281 }
282 template <typename SubscriptionTargetConfigT = SubscriptionTargetForm>
284 m_subscriptionTargetConfigHasBeenSet = true;
285 m_subscriptionTargetConfig.emplace_back(std::forward<SubscriptionTargetConfigT>(value));
286 return *this;
287 }
289
291
294 inline const Aws::String& GetProvider() const { return m_provider; }
295 template <typename ProviderT = Aws::String>
296 void SetProvider(ProviderT&& value) {
297 m_providerHasBeenSet = true;
298 m_provider = std::forward<ProviderT>(value);
299 }
300 template <typename ProviderT = Aws::String>
302 SetProvider(std::forward<ProviderT>(value));
303 return *this;
304 }
306
308
312 inline SubscriptionGrantCreationMode GetSubscriptionGrantCreationMode() const { return m_subscriptionGrantCreationMode; }
314 m_subscriptionGrantCreationModeHasBeenSet = true;
315 m_subscriptionGrantCreationMode = value;
316 }
319 return *this;
320 }
322
324
325 inline const Aws::String& GetRequestId() const { return m_requestId; }
326 template <typename RequestIdT = Aws::String>
327 void SetRequestId(RequestIdT&& value) {
328 m_requestIdHasBeenSet = true;
329 m_requestId = std::forward<RequestIdT>(value);
330 }
331 template <typename RequestIdT = Aws::String>
333 SetRequestId(std::forward<RequestIdT>(value));
334 return *this;
335 }
337 private:
338 Aws::String m_id;
339
340 Aws::Vector<Aws::String> m_authorizedPrincipals;
341
342 Aws::String m_domainId;
343
344 Aws::String m_projectId;
345
346 Aws::String m_environmentId;
347
348 Aws::String m_name;
349
350 Aws::String m_type;
351
352 Aws::String m_createdBy;
353
354 Aws::String m_updatedBy;
355
356 Aws::Utils::DateTime m_createdAt{};
357
358 Aws::Utils::DateTime m_updatedAt{};
359
360 Aws::String m_manageAccessRole;
361
362 Aws::Vector<Aws::String> m_applicableAssetTypes;
363
364 Aws::Vector<SubscriptionTargetForm> m_subscriptionTargetConfig;
365
366 Aws::String m_provider;
367
369
370 Aws::String m_requestId;
371 bool m_idHasBeenSet = false;
372 bool m_authorizedPrincipalsHasBeenSet = false;
373 bool m_domainIdHasBeenSet = false;
374 bool m_projectIdHasBeenSet = false;
375 bool m_environmentIdHasBeenSet = false;
376 bool m_nameHasBeenSet = false;
377 bool m_typeHasBeenSet = false;
378 bool m_createdByHasBeenSet = false;
379 bool m_updatedByHasBeenSet = false;
380 bool m_createdAtHasBeenSet = false;
381 bool m_updatedAtHasBeenSet = false;
382 bool m_manageAccessRoleHasBeenSet = false;
383 bool m_applicableAssetTypesHasBeenSet = false;
384 bool m_subscriptionTargetConfigHasBeenSet = false;
385 bool m_providerHasBeenSet = false;
386 bool m_subscriptionGrantCreationModeHasBeenSet = false;
387 bool m_requestIdHasBeenSet = false;
388};
389
390} // namespace Model
391} // namespace DataZone
392} // namespace Aws
CreateSubscriptionTargetResult & WithCreatedAt(CreatedAtT &&value)
CreateSubscriptionTargetResult & WithSubscriptionTargetConfig(SubscriptionTargetConfigT &&value)
CreateSubscriptionTargetResult & WithCreatedBy(CreatedByT &&value)
const Aws::Vector< Aws::String > & GetAuthorizedPrincipals() const
CreateSubscriptionTargetResult & WithApplicableAssetTypes(ApplicableAssetTypesT &&value)
AWS_DATAZONE_API CreateSubscriptionTargetResult()=default
AWS_DATAZONE_API CreateSubscriptionTargetResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateSubscriptionTargetResult & WithProvider(ProviderT &&value)
CreateSubscriptionTargetResult & WithRequestId(RequestIdT &&value)
CreateSubscriptionTargetResult & WithManageAccessRole(ManageAccessRoleT &&value)
const Aws::Vector< Aws::String > & GetApplicableAssetTypes() const
CreateSubscriptionTargetResult & AddApplicableAssetTypes(ApplicableAssetTypesT &&value)
CreateSubscriptionTargetResult & WithUpdatedAt(UpdatedAtT &&value)
CreateSubscriptionTargetResult & AddSubscriptionTargetConfig(SubscriptionTargetConfigT &&value)
CreateSubscriptionTargetResult & WithType(TypeT &&value)
CreateSubscriptionTargetResult & AddAuthorizedPrincipals(AuthorizedPrincipalsT &&value)
void SetSubscriptionTargetConfig(SubscriptionTargetConfigT &&value)
CreateSubscriptionTargetResult & WithProjectId(ProjectIdT &&value)
void SetSubscriptionGrantCreationMode(SubscriptionGrantCreationMode value)
CreateSubscriptionTargetResult & WithSubscriptionGrantCreationMode(SubscriptionGrantCreationMode value)
CreateSubscriptionTargetResult & WithAuthorizedPrincipals(AuthorizedPrincipalsT &&value)
CreateSubscriptionTargetResult & WithUpdatedBy(UpdatedByT &&value)
CreateSubscriptionTargetResult & WithEnvironmentId(EnvironmentIdT &&value)
CreateSubscriptionTargetResult & WithDomainId(DomainIdT &&value)
CreateSubscriptionTargetResult & WithName(NameT &&value)
const Aws::Vector< SubscriptionTargetForm > & GetSubscriptionTargetConfig() const
AWS_DATAZONE_API CreateSubscriptionTargetResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue