AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
UpdateSubscriptionTargetResult.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 UpdateSubscriptionTargetResult() = 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
56 inline const Aws::Vector<Aws::String>& GetAuthorizedPrincipals() const { return m_authorizedPrincipals; }
57 template <typename AuthorizedPrincipalsT = Aws::Vector<Aws::String>>
58 void SetAuthorizedPrincipals(AuthorizedPrincipalsT&& value) {
59 m_authorizedPrincipalsHasBeenSet = true;
60 m_authorizedPrincipals = std::forward<AuthorizedPrincipalsT>(value);
61 }
62 template <typename AuthorizedPrincipalsT = Aws::Vector<Aws::String>>
64 SetAuthorizedPrincipals(std::forward<AuthorizedPrincipalsT>(value));
65 return *this;
66 }
67 template <typename AuthorizedPrincipalsT = Aws::String>
69 m_authorizedPrincipalsHasBeenSet = true;
70 m_authorizedPrincipals.emplace_back(std::forward<AuthorizedPrincipalsT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetDomainId() const { return m_domainId; }
81 template <typename DomainIdT = Aws::String>
82 void SetDomainId(DomainIdT&& value) {
83 m_domainIdHasBeenSet = true;
84 m_domainId = std::forward<DomainIdT>(value);
85 }
86 template <typename DomainIdT = Aws::String>
88 SetDomainId(std::forward<DomainIdT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::String& GetProjectId() const { return m_projectId; }
99 template <typename ProjectIdT = Aws::String>
100 void SetProjectId(ProjectIdT&& value) {
101 m_projectIdHasBeenSet = true;
102 m_projectId = std::forward<ProjectIdT>(value);
103 }
104 template <typename ProjectIdT = Aws::String>
106 SetProjectId(std::forward<ProjectIdT>(value));
107 return *this;
108 }
110
112
116 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
117 template <typename EnvironmentIdT = Aws::String>
118 void SetEnvironmentId(EnvironmentIdT&& value) {
119 m_environmentIdHasBeenSet = true;
120 m_environmentId = std::forward<EnvironmentIdT>(value);
121 }
122 template <typename EnvironmentIdT = Aws::String>
124 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::String& GetName() const { return m_name; }
135 template <typename NameT = Aws::String>
136 void SetName(NameT&& value) {
137 m_nameHasBeenSet = true;
138 m_name = std::forward<NameT>(value);
139 }
140 template <typename NameT = Aws::String>
142 SetName(std::forward<NameT>(value));
143 return *this;
144 }
146
148
152 inline const Aws::String& GetType() const { return m_type; }
153 template <typename TypeT = Aws::String>
154 void SetType(TypeT&& value) {
155 m_typeHasBeenSet = true;
156 m_type = std::forward<TypeT>(value);
157 }
158 template <typename TypeT = Aws::String>
160 SetType(std::forward<TypeT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
170 template <typename CreatedByT = Aws::String>
171 void SetCreatedBy(CreatedByT&& value) {
172 m_createdByHasBeenSet = true;
173 m_createdBy = std::forward<CreatedByT>(value);
174 }
175 template <typename CreatedByT = Aws::String>
177 SetCreatedBy(std::forward<CreatedByT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
187 template <typename UpdatedByT = Aws::String>
188 void SetUpdatedBy(UpdatedByT&& value) {
189 m_updatedByHasBeenSet = true;
190 m_updatedBy = std::forward<UpdatedByT>(value);
191 }
192 template <typename UpdatedByT = Aws::String>
194 SetUpdatedBy(std::forward<UpdatedByT>(value));
195 return *this;
196 }
198
200
203 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
204 template <typename CreatedAtT = Aws::Utils::DateTime>
205 void SetCreatedAt(CreatedAtT&& value) {
206 m_createdAtHasBeenSet = true;
207 m_createdAt = std::forward<CreatedAtT>(value);
208 }
209 template <typename CreatedAtT = Aws::Utils::DateTime>
211 SetCreatedAt(std::forward<CreatedAtT>(value));
212 return *this;
213 }
215
217
220 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
221 template <typename UpdatedAtT = Aws::Utils::DateTime>
222 void SetUpdatedAt(UpdatedAtT&& value) {
223 m_updatedAtHasBeenSet = true;
224 m_updatedAt = std::forward<UpdatedAtT>(value);
225 }
226 template <typename UpdatedAtT = Aws::Utils::DateTime>
228 SetUpdatedAt(std::forward<UpdatedAtT>(value));
229 return *this;
230 }
232
234
238 inline const Aws::String& GetManageAccessRole() const { return m_manageAccessRole; }
239 template <typename ManageAccessRoleT = Aws::String>
240 void SetManageAccessRole(ManageAccessRoleT&& value) {
241 m_manageAccessRoleHasBeenSet = true;
242 m_manageAccessRole = std::forward<ManageAccessRoleT>(value);
243 }
244 template <typename ManageAccessRoleT = Aws::String>
246 SetManageAccessRole(std::forward<ManageAccessRoleT>(value));
247 return *this;
248 }
250
252
256 inline const Aws::Vector<Aws::String>& GetApplicableAssetTypes() const { return m_applicableAssetTypes; }
257 template <typename ApplicableAssetTypesT = Aws::Vector<Aws::String>>
258 void SetApplicableAssetTypes(ApplicableAssetTypesT&& value) {
259 m_applicableAssetTypesHasBeenSet = true;
260 m_applicableAssetTypes = std::forward<ApplicableAssetTypesT>(value);
261 }
262 template <typename ApplicableAssetTypesT = Aws::Vector<Aws::String>>
264 SetApplicableAssetTypes(std::forward<ApplicableAssetTypesT>(value));
265 return *this;
266 }
267 template <typename ApplicableAssetTypesT = Aws::String>
269 m_applicableAssetTypesHasBeenSet = true;
270 m_applicableAssetTypes.emplace_back(std::forward<ApplicableAssetTypesT>(value));
271 return *this;
272 }
274
276
280 inline const Aws::Vector<SubscriptionTargetForm>& GetSubscriptionTargetConfig() const { return m_subscriptionTargetConfig; }
281 template <typename SubscriptionTargetConfigT = Aws::Vector<SubscriptionTargetForm>>
282 void SetSubscriptionTargetConfig(SubscriptionTargetConfigT&& value) {
283 m_subscriptionTargetConfigHasBeenSet = true;
284 m_subscriptionTargetConfig = std::forward<SubscriptionTargetConfigT>(value);
285 }
286 template <typename SubscriptionTargetConfigT = Aws::Vector<SubscriptionTargetForm>>
288 SetSubscriptionTargetConfig(std::forward<SubscriptionTargetConfigT>(value));
289 return *this;
290 }
291 template <typename SubscriptionTargetConfigT = SubscriptionTargetForm>
293 m_subscriptionTargetConfigHasBeenSet = true;
294 m_subscriptionTargetConfig.emplace_back(std::forward<SubscriptionTargetConfigT>(value));
295 return *this;
296 }
298
300
304 inline const Aws::String& GetProvider() const { return m_provider; }
305 template <typename ProviderT = Aws::String>
306 void SetProvider(ProviderT&& value) {
307 m_providerHasBeenSet = true;
308 m_provider = std::forward<ProviderT>(value);
309 }
310 template <typename ProviderT = Aws::String>
312 SetProvider(std::forward<ProviderT>(value));
313 return *this;
314 }
316
318
322 inline SubscriptionGrantCreationMode GetSubscriptionGrantCreationMode() const { return m_subscriptionGrantCreationMode; }
324 m_subscriptionGrantCreationModeHasBeenSet = true;
325 m_subscriptionGrantCreationMode = value;
326 }
329 return *this;
330 }
332
334
335 inline const Aws::String& GetRequestId() const { return m_requestId; }
336 template <typename RequestIdT = Aws::String>
337 void SetRequestId(RequestIdT&& value) {
338 m_requestIdHasBeenSet = true;
339 m_requestId = std::forward<RequestIdT>(value);
340 }
341 template <typename RequestIdT = Aws::String>
343 SetRequestId(std::forward<RequestIdT>(value));
344 return *this;
345 }
347 private:
348 Aws::String m_id;
349
350 Aws::Vector<Aws::String> m_authorizedPrincipals;
351
352 Aws::String m_domainId;
353
354 Aws::String m_projectId;
355
356 Aws::String m_environmentId;
357
358 Aws::String m_name;
359
360 Aws::String m_type;
361
362 Aws::String m_createdBy;
363
364 Aws::String m_updatedBy;
365
366 Aws::Utils::DateTime m_createdAt{};
367
368 Aws::Utils::DateTime m_updatedAt{};
369
370 Aws::String m_manageAccessRole;
371
372 Aws::Vector<Aws::String> m_applicableAssetTypes;
373
374 Aws::Vector<SubscriptionTargetForm> m_subscriptionTargetConfig;
375
376 Aws::String m_provider;
377
379
380 Aws::String m_requestId;
381 bool m_idHasBeenSet = false;
382 bool m_authorizedPrincipalsHasBeenSet = false;
383 bool m_domainIdHasBeenSet = false;
384 bool m_projectIdHasBeenSet = false;
385 bool m_environmentIdHasBeenSet = false;
386 bool m_nameHasBeenSet = false;
387 bool m_typeHasBeenSet = false;
388 bool m_createdByHasBeenSet = false;
389 bool m_updatedByHasBeenSet = false;
390 bool m_createdAtHasBeenSet = false;
391 bool m_updatedAtHasBeenSet = false;
392 bool m_manageAccessRoleHasBeenSet = false;
393 bool m_applicableAssetTypesHasBeenSet = false;
394 bool m_subscriptionTargetConfigHasBeenSet = false;
395 bool m_providerHasBeenSet = false;
396 bool m_subscriptionGrantCreationModeHasBeenSet = false;
397 bool m_requestIdHasBeenSet = false;
398};
399
400} // namespace Model
401} // namespace DataZone
402} // 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