AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
SubscriptionTargetSummary.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 {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DataZone {
24namespace Model {
25
32 public:
33 AWS_DATAZONE_API SubscriptionTargetSummary() = default;
36 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetId() const { return m_id; }
43 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
44 template <typename IdT = Aws::String>
45 void SetId(IdT&& value) {
46 m_idHasBeenSet = true;
47 m_id = std::forward<IdT>(value);
48 }
49 template <typename IdT = Aws::String>
51 SetId(std::forward<IdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<Aws::String>& GetAuthorizedPrincipals() const { return m_authorizedPrincipals; }
61 inline bool AuthorizedPrincipalsHasBeenSet() const { return m_authorizedPrincipalsHasBeenSet; }
62 template <typename AuthorizedPrincipalsT = Aws::Vector<Aws::String>>
63 void SetAuthorizedPrincipals(AuthorizedPrincipalsT&& value) {
64 m_authorizedPrincipalsHasBeenSet = true;
65 m_authorizedPrincipals = std::forward<AuthorizedPrincipalsT>(value);
66 }
67 template <typename AuthorizedPrincipalsT = Aws::Vector<Aws::String>>
68 SubscriptionTargetSummary& WithAuthorizedPrincipals(AuthorizedPrincipalsT&& value) {
69 SetAuthorizedPrincipals(std::forward<AuthorizedPrincipalsT>(value));
70 return *this;
71 }
72 template <typename AuthorizedPrincipalsT = Aws::String>
73 SubscriptionTargetSummary& AddAuthorizedPrincipals(AuthorizedPrincipalsT&& value) {
74 m_authorizedPrincipalsHasBeenSet = true;
75 m_authorizedPrincipals.emplace_back(std::forward<AuthorizedPrincipalsT>(value));
76 return *this;
77 }
79
81
85 inline const Aws::String& GetDomainId() const { return m_domainId; }
86 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
87 template <typename DomainIdT = Aws::String>
88 void SetDomainId(DomainIdT&& value) {
89 m_domainIdHasBeenSet = true;
90 m_domainId = std::forward<DomainIdT>(value);
91 }
92 template <typename DomainIdT = Aws::String>
94 SetDomainId(std::forward<DomainIdT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::String& GetProjectId() const { return m_projectId; }
104 inline bool ProjectIdHasBeenSet() const { return m_projectIdHasBeenSet; }
105 template <typename ProjectIdT = Aws::String>
106 void SetProjectId(ProjectIdT&& value) {
107 m_projectIdHasBeenSet = true;
108 m_projectId = std::forward<ProjectIdT>(value);
109 }
110 template <typename ProjectIdT = Aws::String>
112 SetProjectId(std::forward<ProjectIdT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
122 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
123 template <typename EnvironmentIdT = Aws::String>
124 void SetEnvironmentId(EnvironmentIdT&& value) {
125 m_environmentIdHasBeenSet = true;
126 m_environmentId = std::forward<EnvironmentIdT>(value);
127 }
128 template <typename EnvironmentIdT = Aws::String>
130 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::String& GetName() const { return m_name; }
140 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
141 template <typename NameT = Aws::String>
142 void SetName(NameT&& value) {
143 m_nameHasBeenSet = true;
144 m_name = std::forward<NameT>(value);
145 }
146 template <typename NameT = Aws::String>
148 SetName(std::forward<NameT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::String& GetType() const { return m_type; }
158 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
159 template <typename TypeT = Aws::String>
160 void SetType(TypeT&& value) {
161 m_typeHasBeenSet = true;
162 m_type = std::forward<TypeT>(value);
163 }
164 template <typename TypeT = Aws::String>
166 SetType(std::forward<TypeT>(value));
167 return *this;
168 }
170
172
175 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
176 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
177 template <typename CreatedByT = Aws::String>
178 void SetCreatedBy(CreatedByT&& value) {
179 m_createdByHasBeenSet = true;
180 m_createdBy = std::forward<CreatedByT>(value);
181 }
182 template <typename CreatedByT = Aws::String>
184 SetCreatedBy(std::forward<CreatedByT>(value));
185 return *this;
186 }
188
190
193 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
194 inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; }
195 template <typename UpdatedByT = Aws::String>
196 void SetUpdatedBy(UpdatedByT&& value) {
197 m_updatedByHasBeenSet = true;
198 m_updatedBy = std::forward<UpdatedByT>(value);
199 }
200 template <typename UpdatedByT = Aws::String>
202 SetUpdatedBy(std::forward<UpdatedByT>(value));
203 return *this;
204 }
206
208
211 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
212 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
213 template <typename CreatedAtT = Aws::Utils::DateTime>
214 void SetCreatedAt(CreatedAtT&& value) {
215 m_createdAtHasBeenSet = true;
216 m_createdAt = std::forward<CreatedAtT>(value);
217 }
218 template <typename CreatedAtT = Aws::Utils::DateTime>
220 SetCreatedAt(std::forward<CreatedAtT>(value));
221 return *this;
222 }
224
226
229 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
230 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
231 template <typename UpdatedAtT = Aws::Utils::DateTime>
232 void SetUpdatedAt(UpdatedAtT&& value) {
233 m_updatedAtHasBeenSet = true;
234 m_updatedAt = std::forward<UpdatedAtT>(value);
235 }
236 template <typename UpdatedAtT = Aws::Utils::DateTime>
238 SetUpdatedAt(std::forward<UpdatedAtT>(value));
239 return *this;
240 }
242
244
247 inline const Aws::String& GetManageAccessRole() const { return m_manageAccessRole; }
248 inline bool ManageAccessRoleHasBeenSet() const { return m_manageAccessRoleHasBeenSet; }
249 template <typename ManageAccessRoleT = Aws::String>
250 void SetManageAccessRole(ManageAccessRoleT&& value) {
251 m_manageAccessRoleHasBeenSet = true;
252 m_manageAccessRole = std::forward<ManageAccessRoleT>(value);
253 }
254 template <typename ManageAccessRoleT = Aws::String>
256 SetManageAccessRole(std::forward<ManageAccessRoleT>(value));
257 return *this;
258 }
260
262
265 inline const Aws::Vector<Aws::String>& GetApplicableAssetTypes() const { return m_applicableAssetTypes; }
266 inline bool ApplicableAssetTypesHasBeenSet() const { return m_applicableAssetTypesHasBeenSet; }
267 template <typename ApplicableAssetTypesT = Aws::Vector<Aws::String>>
268 void SetApplicableAssetTypes(ApplicableAssetTypesT&& value) {
269 m_applicableAssetTypesHasBeenSet = true;
270 m_applicableAssetTypes = std::forward<ApplicableAssetTypesT>(value);
271 }
272 template <typename ApplicableAssetTypesT = Aws::Vector<Aws::String>>
273 SubscriptionTargetSummary& WithApplicableAssetTypes(ApplicableAssetTypesT&& value) {
274 SetApplicableAssetTypes(std::forward<ApplicableAssetTypesT>(value));
275 return *this;
276 }
277 template <typename ApplicableAssetTypesT = Aws::String>
278 SubscriptionTargetSummary& AddApplicableAssetTypes(ApplicableAssetTypesT&& value) {
279 m_applicableAssetTypesHasBeenSet = true;
280 m_applicableAssetTypes.emplace_back(std::forward<ApplicableAssetTypesT>(value));
281 return *this;
282 }
284
286
289 inline const Aws::Vector<SubscriptionTargetForm>& GetSubscriptionTargetConfig() const { return m_subscriptionTargetConfig; }
290 inline bool SubscriptionTargetConfigHasBeenSet() const { return m_subscriptionTargetConfigHasBeenSet; }
291 template <typename SubscriptionTargetConfigT = Aws::Vector<SubscriptionTargetForm>>
292 void SetSubscriptionTargetConfig(SubscriptionTargetConfigT&& value) {
293 m_subscriptionTargetConfigHasBeenSet = true;
294 m_subscriptionTargetConfig = std::forward<SubscriptionTargetConfigT>(value);
295 }
296 template <typename SubscriptionTargetConfigT = Aws::Vector<SubscriptionTargetForm>>
297 SubscriptionTargetSummary& WithSubscriptionTargetConfig(SubscriptionTargetConfigT&& value) {
298 SetSubscriptionTargetConfig(std::forward<SubscriptionTargetConfigT>(value));
299 return *this;
300 }
301 template <typename SubscriptionTargetConfigT = SubscriptionTargetForm>
302 SubscriptionTargetSummary& AddSubscriptionTargetConfig(SubscriptionTargetConfigT&& value) {
303 m_subscriptionTargetConfigHasBeenSet = true;
304 m_subscriptionTargetConfig.emplace_back(std::forward<SubscriptionTargetConfigT>(value));
305 return *this;
306 }
308
310
313 inline const Aws::String& GetProvider() const { return m_provider; }
314 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
315 template <typename ProviderT = Aws::String>
316 void SetProvider(ProviderT&& value) {
317 m_providerHasBeenSet = true;
318 m_provider = std::forward<ProviderT>(value);
319 }
320 template <typename ProviderT = Aws::String>
322 SetProvider(std::forward<ProviderT>(value));
323 return *this;
324 }
326
328
332 inline SubscriptionGrantCreationMode GetSubscriptionGrantCreationMode() const { return m_subscriptionGrantCreationMode; }
333 inline bool SubscriptionGrantCreationModeHasBeenSet() const { return m_subscriptionGrantCreationModeHasBeenSet; }
335 m_subscriptionGrantCreationModeHasBeenSet = true;
336 m_subscriptionGrantCreationMode = value;
337 }
340 return *this;
341 }
343 private:
344 Aws::String m_id;
345
346 Aws::Vector<Aws::String> m_authorizedPrincipals;
347
348 Aws::String m_domainId;
349
350 Aws::String m_projectId;
351
352 Aws::String m_environmentId;
353
354 Aws::String m_name;
355
356 Aws::String m_type;
357
358 Aws::String m_createdBy;
359
360 Aws::String m_updatedBy;
361
362 Aws::Utils::DateTime m_createdAt{};
363
364 Aws::Utils::DateTime m_updatedAt{};
365
366 Aws::String m_manageAccessRole;
367
368 Aws::Vector<Aws::String> m_applicableAssetTypes;
369
370 Aws::Vector<SubscriptionTargetForm> m_subscriptionTargetConfig;
371
372 Aws::String m_provider;
373
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};
392
393} // namespace Model
394} // namespace DataZone
395} // namespace Aws
void SetAuthorizedPrincipals(AuthorizedPrincipalsT &&value)
SubscriptionTargetSummary & WithType(TypeT &&value)
SubscriptionTargetSummary & WithSubscriptionTargetConfig(SubscriptionTargetConfigT &&value)
SubscriptionTargetSummary & AddApplicableAssetTypes(ApplicableAssetTypesT &&value)
void SetApplicableAssetTypes(ApplicableAssetTypesT &&value)
SubscriptionTargetSummary & WithApplicableAssetTypes(ApplicableAssetTypesT &&value)
SubscriptionTargetSummary & WithId(IdT &&value)
SubscriptionTargetSummary & WithName(NameT &&value)
SubscriptionTargetSummary & WithProvider(ProviderT &&value)
SubscriptionTargetSummary & WithEnvironmentId(EnvironmentIdT &&value)
const Aws::Vector< Aws::String > & GetApplicableAssetTypes() const
SubscriptionGrantCreationMode GetSubscriptionGrantCreationMode() const
SubscriptionTargetSummary & WithSubscriptionGrantCreationMode(SubscriptionGrantCreationMode value)
SubscriptionTargetSummary & WithUpdatedBy(UpdatedByT &&value)
AWS_DATAZONE_API SubscriptionTargetSummary(Aws::Utils::Json::JsonView jsonValue)
SubscriptionTargetSummary & WithCreatedBy(CreatedByT &&value)
SubscriptionTargetSummary & AddSubscriptionTargetConfig(SubscriptionTargetConfigT &&value)
SubscriptionTargetSummary & WithDomainId(DomainIdT &&value)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
SubscriptionTargetSummary & WithAuthorizedPrincipals(AuthorizedPrincipalsT &&value)
SubscriptionTargetSummary & WithManageAccessRole(ManageAccessRoleT &&value)
SubscriptionTargetSummary & WithCreatedAt(CreatedAtT &&value)
SubscriptionTargetSummary & WithUpdatedAt(UpdatedAtT &&value)
AWS_DATAZONE_API SubscriptionTargetSummary()=default
const Aws::Vector< Aws::String > & GetAuthorizedPrincipals() const
void SetSubscriptionTargetConfig(SubscriptionTargetConfigT &&value)
void SetSubscriptionGrantCreationMode(SubscriptionGrantCreationMode value)
AWS_DATAZONE_API SubscriptionTargetSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
SubscriptionTargetSummary & WithProjectId(ProjectIdT &&value)
const Aws::Vector< SubscriptionTargetForm > & GetSubscriptionTargetConfig() const
SubscriptionTargetSummary & AddAuthorizedPrincipals(AuthorizedPrincipalsT &&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