AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreateSubscriptionTargetRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/datazone/DataZoneRequest.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 {
18namespace DataZone {
19namespace Model {
20
24 public:
25 AWS_DATAZONE_API CreateSubscriptionTargetRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateSubscriptionTarget"; }
32
33 AWS_DATAZONE_API Aws::String SerializePayload() const override;
34
36
40 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
41 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
42 template <typename DomainIdentifierT = Aws::String>
43 void SetDomainIdentifier(DomainIdentifierT&& value) {
44 m_domainIdentifierHasBeenSet = true;
45 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
46 }
47 template <typename DomainIdentifierT = Aws::String>
49 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetEnvironmentIdentifier() const { return m_environmentIdentifier; }
59 inline bool EnvironmentIdentifierHasBeenSet() const { return m_environmentIdentifierHasBeenSet; }
60 template <typename EnvironmentIdentifierT = Aws::String>
61 void SetEnvironmentIdentifier(EnvironmentIdentifierT&& value) {
62 m_environmentIdentifierHasBeenSet = true;
63 m_environmentIdentifier = std::forward<EnvironmentIdentifierT>(value);
64 }
65 template <typename EnvironmentIdentifierT = Aws::String>
67 SetEnvironmentIdentifier(std::forward<EnvironmentIdentifierT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetName() const { return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 template <typename NameT = Aws::String>
79 void SetName(NameT&& value) {
80 m_nameHasBeenSet = true;
81 m_name = std::forward<NameT>(value);
82 }
83 template <typename NameT = Aws::String>
85 SetName(std::forward<NameT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetType() const { return m_type; }
95 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
96 template <typename TypeT = Aws::String>
97 void SetType(TypeT&& value) {
98 m_typeHasBeenSet = true;
99 m_type = std::forward<TypeT>(value);
100 }
101 template <typename TypeT = Aws::String>
103 SetType(std::forward<TypeT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Vector<SubscriptionTargetForm>& GetSubscriptionTargetConfig() const { return m_subscriptionTargetConfig; }
113 inline bool SubscriptionTargetConfigHasBeenSet() const { return m_subscriptionTargetConfigHasBeenSet; }
114 template <typename SubscriptionTargetConfigT = Aws::Vector<SubscriptionTargetForm>>
115 void SetSubscriptionTargetConfig(SubscriptionTargetConfigT&& value) {
116 m_subscriptionTargetConfigHasBeenSet = true;
117 m_subscriptionTargetConfig = std::forward<SubscriptionTargetConfigT>(value);
118 }
119 template <typename SubscriptionTargetConfigT = Aws::Vector<SubscriptionTargetForm>>
121 SetSubscriptionTargetConfig(std::forward<SubscriptionTargetConfigT>(value));
122 return *this;
123 }
124 template <typename SubscriptionTargetConfigT = SubscriptionTargetForm>
126 m_subscriptionTargetConfigHasBeenSet = true;
127 m_subscriptionTargetConfig.emplace_back(std::forward<SubscriptionTargetConfigT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::Vector<Aws::String>& GetAuthorizedPrincipals() const { return m_authorizedPrincipals; }
137 inline bool AuthorizedPrincipalsHasBeenSet() const { return m_authorizedPrincipalsHasBeenSet; }
138 template <typename AuthorizedPrincipalsT = Aws::Vector<Aws::String>>
139 void SetAuthorizedPrincipals(AuthorizedPrincipalsT&& value) {
140 m_authorizedPrincipalsHasBeenSet = true;
141 m_authorizedPrincipals = std::forward<AuthorizedPrincipalsT>(value);
142 }
143 template <typename AuthorizedPrincipalsT = Aws::Vector<Aws::String>>
145 SetAuthorizedPrincipals(std::forward<AuthorizedPrincipalsT>(value));
146 return *this;
147 }
148 template <typename AuthorizedPrincipalsT = Aws::String>
150 m_authorizedPrincipalsHasBeenSet = true;
151 m_authorizedPrincipals.emplace_back(std::forward<AuthorizedPrincipalsT>(value));
152 return *this;
153 }
155
157
160 inline const Aws::String& GetManageAccessRole() const { return m_manageAccessRole; }
161 inline bool ManageAccessRoleHasBeenSet() const { return m_manageAccessRoleHasBeenSet; }
162 template <typename ManageAccessRoleT = Aws::String>
163 void SetManageAccessRole(ManageAccessRoleT&& value) {
164 m_manageAccessRoleHasBeenSet = true;
165 m_manageAccessRole = std::forward<ManageAccessRoleT>(value);
166 }
167 template <typename ManageAccessRoleT = Aws::String>
169 SetManageAccessRole(std::forward<ManageAccessRoleT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::Vector<Aws::String>& GetApplicableAssetTypes() const { return m_applicableAssetTypes; }
179 inline bool ApplicableAssetTypesHasBeenSet() const { return m_applicableAssetTypesHasBeenSet; }
180 template <typename ApplicableAssetTypesT = Aws::Vector<Aws::String>>
181 void SetApplicableAssetTypes(ApplicableAssetTypesT&& value) {
182 m_applicableAssetTypesHasBeenSet = true;
183 m_applicableAssetTypes = std::forward<ApplicableAssetTypesT>(value);
184 }
185 template <typename ApplicableAssetTypesT = Aws::Vector<Aws::String>>
187 SetApplicableAssetTypes(std::forward<ApplicableAssetTypesT>(value));
188 return *this;
189 }
190 template <typename ApplicableAssetTypesT = Aws::String>
192 m_applicableAssetTypesHasBeenSet = true;
193 m_applicableAssetTypes.emplace_back(std::forward<ApplicableAssetTypesT>(value));
194 return *this;
195 }
197
199
202 inline const Aws::String& GetProvider() const { return m_provider; }
203 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
204 template <typename ProviderT = Aws::String>
205 void SetProvider(ProviderT&& value) {
206 m_providerHasBeenSet = true;
207 m_provider = std::forward<ProviderT>(value);
208 }
209 template <typename ProviderT = Aws::String>
211 SetProvider(std::forward<ProviderT>(value));
212 return *this;
213 }
215
217
221 inline const Aws::String& GetClientToken() const { return m_clientToken; }
222 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
223 template <typename ClientTokenT = Aws::String>
224 void SetClientToken(ClientTokenT&& value) {
225 m_clientTokenHasBeenSet = true;
226 m_clientToken = std::forward<ClientTokenT>(value);
227 }
228 template <typename ClientTokenT = Aws::String>
230 SetClientToken(std::forward<ClientTokenT>(value));
231 return *this;
232 }
234
236
240 inline SubscriptionGrantCreationMode GetSubscriptionGrantCreationMode() const { return m_subscriptionGrantCreationMode; }
241 inline bool SubscriptionGrantCreationModeHasBeenSet() const { return m_subscriptionGrantCreationModeHasBeenSet; }
243 m_subscriptionGrantCreationModeHasBeenSet = true;
244 m_subscriptionGrantCreationMode = value;
245 }
248 return *this;
249 }
251 private:
252 Aws::String m_domainIdentifier;
253
254 Aws::String m_environmentIdentifier;
255
256 Aws::String m_name;
257
258 Aws::String m_type;
259
260 Aws::Vector<SubscriptionTargetForm> m_subscriptionTargetConfig;
261
262 Aws::Vector<Aws::String> m_authorizedPrincipals;
263
264 Aws::String m_manageAccessRole;
265
266 Aws::Vector<Aws::String> m_applicableAssetTypes;
267
268 Aws::String m_provider;
269
271
273 bool m_domainIdentifierHasBeenSet = false;
274 bool m_environmentIdentifierHasBeenSet = false;
275 bool m_nameHasBeenSet = false;
276 bool m_typeHasBeenSet = false;
277 bool m_subscriptionTargetConfigHasBeenSet = false;
278 bool m_authorizedPrincipalsHasBeenSet = false;
279 bool m_manageAccessRoleHasBeenSet = false;
280 bool m_applicableAssetTypesHasBeenSet = false;
281 bool m_providerHasBeenSet = false;
282 bool m_clientTokenHasBeenSet = true;
283 bool m_subscriptionGrantCreationModeHasBeenSet = false;
284};
285
286} // namespace Model
287} // namespace DataZone
288} // namespace Aws
void SetSubscriptionGrantCreationMode(SubscriptionGrantCreationMode value)
CreateSubscriptionTargetRequest & WithSubscriptionTargetConfig(SubscriptionTargetConfigT &&value)
CreateSubscriptionTargetRequest & WithName(NameT &&value)
CreateSubscriptionTargetRequest & WithSubscriptionGrantCreationMode(SubscriptionGrantCreationMode value)
CreateSubscriptionTargetRequest & WithManageAccessRole(ManageAccessRoleT &&value)
CreateSubscriptionTargetRequest & WithType(TypeT &&value)
const Aws::Vector< Aws::String > & GetAuthorizedPrincipals() const
CreateSubscriptionTargetRequest & WithDomainIdentifier(DomainIdentifierT &&value)
CreateSubscriptionTargetRequest & WithEnvironmentIdentifier(EnvironmentIdentifierT &&value)
const Aws::Vector< SubscriptionTargetForm > & GetSubscriptionTargetConfig() const
const Aws::Vector< Aws::String > & GetApplicableAssetTypes() const
AWS_DATAZONE_API Aws::String SerializePayload() const override
CreateSubscriptionTargetRequest & WithProvider(ProviderT &&value)
CreateSubscriptionTargetRequest & AddSubscriptionTargetConfig(SubscriptionTargetConfigT &&value)
CreateSubscriptionTargetRequest & WithAuthorizedPrincipals(AuthorizedPrincipalsT &&value)
CreateSubscriptionTargetRequest & WithApplicableAssetTypes(ApplicableAssetTypesT &&value)
CreateSubscriptionTargetRequest & AddAuthorizedPrincipals(AuthorizedPrincipalsT &&value)
CreateSubscriptionTargetRequest & AddApplicableAssetTypes(ApplicableAssetTypesT &&value)
CreateSubscriptionTargetRequest & WithClientToken(ClientTokenT &&value)
AWS_DATAZONE_API CreateSubscriptionTargetRequest()=default
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector