AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SubscriptionTargetSummary.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/datazone/model/SubscriptionTargetForm.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DataZone
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_DATAZONE_API SubscriptionTargetSummary() = default;
40 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<Aws::String>& GetApplicableAssetTypes() const { return m_applicableAssetTypes; }
48 inline bool ApplicableAssetTypesHasBeenSet() const { return m_applicableAssetTypesHasBeenSet; }
49 template<typename ApplicableAssetTypesT = Aws::Vector<Aws::String>>
50 void SetApplicableAssetTypes(ApplicableAssetTypesT&& value) { m_applicableAssetTypesHasBeenSet = true; m_applicableAssetTypes = std::forward<ApplicableAssetTypesT>(value); }
51 template<typename ApplicableAssetTypesT = Aws::Vector<Aws::String>>
52 SubscriptionTargetSummary& WithApplicableAssetTypes(ApplicableAssetTypesT&& value) { SetApplicableAssetTypes(std::forward<ApplicableAssetTypesT>(value)); return *this;}
53 template<typename ApplicableAssetTypesT = Aws::String>
54 SubscriptionTargetSummary& AddApplicableAssetTypes(ApplicableAssetTypesT&& value) { m_applicableAssetTypesHasBeenSet = true; m_applicableAssetTypes.emplace_back(std::forward<ApplicableAssetTypesT>(value)); return *this; }
56
58
61 inline const Aws::Vector<Aws::String>& GetAuthorizedPrincipals() const { return m_authorizedPrincipals; }
62 inline bool AuthorizedPrincipalsHasBeenSet() const { return m_authorizedPrincipalsHasBeenSet; }
63 template<typename AuthorizedPrincipalsT = Aws::Vector<Aws::String>>
64 void SetAuthorizedPrincipals(AuthorizedPrincipalsT&& value) { m_authorizedPrincipalsHasBeenSet = true; m_authorizedPrincipals = std::forward<AuthorizedPrincipalsT>(value); }
65 template<typename AuthorizedPrincipalsT = Aws::Vector<Aws::String>>
66 SubscriptionTargetSummary& WithAuthorizedPrincipals(AuthorizedPrincipalsT&& value) { SetAuthorizedPrincipals(std::forward<AuthorizedPrincipalsT>(value)); return *this;}
67 template<typename AuthorizedPrincipalsT = Aws::String>
68 SubscriptionTargetSummary& AddAuthorizedPrincipals(AuthorizedPrincipalsT&& value) { m_authorizedPrincipalsHasBeenSet = true; m_authorizedPrincipals.emplace_back(std::forward<AuthorizedPrincipalsT>(value)); return *this; }
70
72
75 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
76 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
77 template<typename CreatedAtT = Aws::Utils::DateTime>
78 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
79 template<typename CreatedAtT = Aws::Utils::DateTime>
80 SubscriptionTargetSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
82
84
87 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
88 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
89 template<typename CreatedByT = Aws::String>
90 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
91 template<typename CreatedByT = Aws::String>
92 SubscriptionTargetSummary& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
94
96
100 inline const Aws::String& GetDomainId() const { return m_domainId; }
101 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
102 template<typename DomainIdT = Aws::String>
103 void SetDomainId(DomainIdT&& value) { m_domainIdHasBeenSet = true; m_domainId = std::forward<DomainIdT>(value); }
104 template<typename DomainIdT = Aws::String>
105 SubscriptionTargetSummary& WithDomainId(DomainIdT&& value) { SetDomainId(std::forward<DomainIdT>(value)); return *this;}
107
109
112 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
113 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
114 template<typename EnvironmentIdT = Aws::String>
115 void SetEnvironmentId(EnvironmentIdT&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::forward<EnvironmentIdT>(value); }
116 template<typename EnvironmentIdT = Aws::String>
117 SubscriptionTargetSummary& WithEnvironmentId(EnvironmentIdT&& value) { SetEnvironmentId(std::forward<EnvironmentIdT>(value)); return *this;}
119
121
124 inline const Aws::String& GetId() const { return m_id; }
125 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
126 template<typename IdT = Aws::String>
127 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
128 template<typename IdT = Aws::String>
129 SubscriptionTargetSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
131
133
136 inline const Aws::String& GetManageAccessRole() const { return m_manageAccessRole; }
137 inline bool ManageAccessRoleHasBeenSet() const { return m_manageAccessRoleHasBeenSet; }
138 template<typename ManageAccessRoleT = Aws::String>
139 void SetManageAccessRole(ManageAccessRoleT&& value) { m_manageAccessRoleHasBeenSet = true; m_manageAccessRole = std::forward<ManageAccessRoleT>(value); }
140 template<typename ManageAccessRoleT = Aws::String>
141 SubscriptionTargetSummary& WithManageAccessRole(ManageAccessRoleT&& value) { SetManageAccessRole(std::forward<ManageAccessRoleT>(value)); return *this;}
143
145
148 inline const Aws::String& GetName() const { return m_name; }
149 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
150 template<typename NameT = Aws::String>
151 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
152 template<typename NameT = Aws::String>
153 SubscriptionTargetSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
155
157
160 inline const Aws::String& GetProjectId() const { return m_projectId; }
161 inline bool ProjectIdHasBeenSet() const { return m_projectIdHasBeenSet; }
162 template<typename ProjectIdT = Aws::String>
163 void SetProjectId(ProjectIdT&& value) { m_projectIdHasBeenSet = true; m_projectId = std::forward<ProjectIdT>(value); }
164 template<typename ProjectIdT = Aws::String>
165 SubscriptionTargetSummary& WithProjectId(ProjectIdT&& value) { SetProjectId(std::forward<ProjectIdT>(value)); return *this;}
167
169
172 inline const Aws::String& GetProvider() const { return m_provider; }
173 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
174 template<typename ProviderT = Aws::String>
175 void SetProvider(ProviderT&& value) { m_providerHasBeenSet = true; m_provider = std::forward<ProviderT>(value); }
176 template<typename ProviderT = Aws::String>
177 SubscriptionTargetSummary& WithProvider(ProviderT&& value) { SetProvider(std::forward<ProviderT>(value)); return *this;}
179
181
184 inline const Aws::Vector<SubscriptionTargetForm>& GetSubscriptionTargetConfig() const { return m_subscriptionTargetConfig; }
185 inline bool SubscriptionTargetConfigHasBeenSet() const { return m_subscriptionTargetConfigHasBeenSet; }
186 template<typename SubscriptionTargetConfigT = Aws::Vector<SubscriptionTargetForm>>
187 void SetSubscriptionTargetConfig(SubscriptionTargetConfigT&& value) { m_subscriptionTargetConfigHasBeenSet = true; m_subscriptionTargetConfig = std::forward<SubscriptionTargetConfigT>(value); }
188 template<typename SubscriptionTargetConfigT = Aws::Vector<SubscriptionTargetForm>>
189 SubscriptionTargetSummary& WithSubscriptionTargetConfig(SubscriptionTargetConfigT&& value) { SetSubscriptionTargetConfig(std::forward<SubscriptionTargetConfigT>(value)); return *this;}
190 template<typename SubscriptionTargetConfigT = SubscriptionTargetForm>
191 SubscriptionTargetSummary& AddSubscriptionTargetConfig(SubscriptionTargetConfigT&& value) { m_subscriptionTargetConfigHasBeenSet = true; m_subscriptionTargetConfig.emplace_back(std::forward<SubscriptionTargetConfigT>(value)); return *this; }
193
195
198 inline const Aws::String& GetType() const { return m_type; }
199 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
200 template<typename TypeT = Aws::String>
201 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
202 template<typename TypeT = Aws::String>
203 SubscriptionTargetSummary& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
205
207
210 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
211 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
212 template<typename UpdatedAtT = Aws::Utils::DateTime>
213 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
214 template<typename UpdatedAtT = Aws::Utils::DateTime>
215 SubscriptionTargetSummary& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
217
219
222 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
223 inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; }
224 template<typename UpdatedByT = Aws::String>
225 void SetUpdatedBy(UpdatedByT&& value) { m_updatedByHasBeenSet = true; m_updatedBy = std::forward<UpdatedByT>(value); }
226 template<typename UpdatedByT = Aws::String>
227 SubscriptionTargetSummary& WithUpdatedBy(UpdatedByT&& value) { SetUpdatedBy(std::forward<UpdatedByT>(value)); return *this;}
229 private:
230
231 Aws::Vector<Aws::String> m_applicableAssetTypes;
232 bool m_applicableAssetTypesHasBeenSet = false;
233
234 Aws::Vector<Aws::String> m_authorizedPrincipals;
235 bool m_authorizedPrincipalsHasBeenSet = false;
236
237 Aws::Utils::DateTime m_createdAt{};
238 bool m_createdAtHasBeenSet = false;
239
240 Aws::String m_createdBy;
241 bool m_createdByHasBeenSet = false;
242
243 Aws::String m_domainId;
244 bool m_domainIdHasBeenSet = false;
245
246 Aws::String m_environmentId;
247 bool m_environmentIdHasBeenSet = false;
248
249 Aws::String m_id;
250 bool m_idHasBeenSet = false;
251
252 Aws::String m_manageAccessRole;
253 bool m_manageAccessRoleHasBeenSet = false;
254
255 Aws::String m_name;
256 bool m_nameHasBeenSet = false;
257
258 Aws::String m_projectId;
259 bool m_projectIdHasBeenSet = false;
260
261 Aws::String m_provider;
262 bool m_providerHasBeenSet = false;
263
264 Aws::Vector<SubscriptionTargetForm> m_subscriptionTargetConfig;
265 bool m_subscriptionTargetConfigHasBeenSet = false;
266
267 Aws::String m_type;
268 bool m_typeHasBeenSet = false;
269
270 Aws::Utils::DateTime m_updatedAt{};
271 bool m_updatedAtHasBeenSet = false;
272
273 Aws::String m_updatedBy;
274 bool m_updatedByHasBeenSet = false;
275 };
276
277} // namespace Model
278} // namespace DataZone
279} // 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
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)
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