AWS SDK for C++

AWS SDK for C++ Version 1.11.695

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/SubscriptionTargetForm.h>
13
14#include <utility>
15
16namespace Aws {
17namespace DataZone {
18namespace Model {
19
23 public:
24 AWS_DATAZONE_API CreateSubscriptionTargetRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateSubscriptionTarget"; }
31
32 AWS_DATAZONE_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::Vector<Aws::String>& GetApplicableAssetTypes() const { return m_applicableAssetTypes; }
39 inline bool ApplicableAssetTypesHasBeenSet() const { return m_applicableAssetTypesHasBeenSet; }
40 template <typename ApplicableAssetTypesT = Aws::Vector<Aws::String>>
41 void SetApplicableAssetTypes(ApplicableAssetTypesT&& value) {
42 m_applicableAssetTypesHasBeenSet = true;
43 m_applicableAssetTypes = std::forward<ApplicableAssetTypesT>(value);
44 }
45 template <typename ApplicableAssetTypesT = Aws::Vector<Aws::String>>
47 SetApplicableAssetTypes(std::forward<ApplicableAssetTypesT>(value));
48 return *this;
49 }
50 template <typename ApplicableAssetTypesT = Aws::String>
52 m_applicableAssetTypesHasBeenSet = true;
53 m_applicableAssetTypes.emplace_back(std::forward<ApplicableAssetTypesT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::Vector<Aws::String>& GetAuthorizedPrincipals() const { return m_authorizedPrincipals; }
63 inline bool AuthorizedPrincipalsHasBeenSet() const { return m_authorizedPrincipalsHasBeenSet; }
64 template <typename AuthorizedPrincipalsT = Aws::Vector<Aws::String>>
65 void SetAuthorizedPrincipals(AuthorizedPrincipalsT&& value) {
66 m_authorizedPrincipalsHasBeenSet = true;
67 m_authorizedPrincipals = std::forward<AuthorizedPrincipalsT>(value);
68 }
69 template <typename AuthorizedPrincipalsT = Aws::Vector<Aws::String>>
71 SetAuthorizedPrincipals(std::forward<AuthorizedPrincipalsT>(value));
72 return *this;
73 }
74 template <typename AuthorizedPrincipalsT = Aws::String>
76 m_authorizedPrincipalsHasBeenSet = true;
77 m_authorizedPrincipals.emplace_back(std::forward<AuthorizedPrincipalsT>(value));
78 return *this;
79 }
81
83
87 inline const Aws::String& GetClientToken() const { return m_clientToken; }
88 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
89 template <typename ClientTokenT = Aws::String>
90 void SetClientToken(ClientTokenT&& value) {
91 m_clientTokenHasBeenSet = true;
92 m_clientToken = std::forward<ClientTokenT>(value);
93 }
94 template <typename ClientTokenT = Aws::String>
96 SetClientToken(std::forward<ClientTokenT>(value));
97 return *this;
98 }
100
102
106 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
107 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
108 template <typename DomainIdentifierT = Aws::String>
109 void SetDomainIdentifier(DomainIdentifierT&& value) {
110 m_domainIdentifierHasBeenSet = true;
111 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
112 }
113 template <typename DomainIdentifierT = Aws::String>
115 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
116 return *this;
117 }
119
121
124 inline const Aws::String& GetEnvironmentIdentifier() const { return m_environmentIdentifier; }
125 inline bool EnvironmentIdentifierHasBeenSet() const { return m_environmentIdentifierHasBeenSet; }
126 template <typename EnvironmentIdentifierT = Aws::String>
127 void SetEnvironmentIdentifier(EnvironmentIdentifierT&& value) {
128 m_environmentIdentifierHasBeenSet = true;
129 m_environmentIdentifier = std::forward<EnvironmentIdentifierT>(value);
130 }
131 template <typename EnvironmentIdentifierT = Aws::String>
133 SetEnvironmentIdentifier(std::forward<EnvironmentIdentifierT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::String& GetManageAccessRole() const { return m_manageAccessRole; }
143 inline bool ManageAccessRoleHasBeenSet() const { return m_manageAccessRoleHasBeenSet; }
144 template <typename ManageAccessRoleT = Aws::String>
145 void SetManageAccessRole(ManageAccessRoleT&& value) {
146 m_manageAccessRoleHasBeenSet = true;
147 m_manageAccessRole = std::forward<ManageAccessRoleT>(value);
148 }
149 template <typename ManageAccessRoleT = Aws::String>
151 SetManageAccessRole(std::forward<ManageAccessRoleT>(value));
152 return *this;
153 }
155
157
160 inline const Aws::String& GetName() const { return m_name; }
161 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
162 template <typename NameT = Aws::String>
163 void SetName(NameT&& value) {
164 m_nameHasBeenSet = true;
165 m_name = std::forward<NameT>(value);
166 }
167 template <typename NameT = Aws::String>
169 SetName(std::forward<NameT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::String& GetProvider() const { return m_provider; }
179 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
180 template <typename ProviderT = Aws::String>
181 void SetProvider(ProviderT&& value) {
182 m_providerHasBeenSet = true;
183 m_provider = std::forward<ProviderT>(value);
184 }
185 template <typename ProviderT = Aws::String>
187 SetProvider(std::forward<ProviderT>(value));
188 return *this;
189 }
191
193
196 inline const Aws::Vector<SubscriptionTargetForm>& GetSubscriptionTargetConfig() const { return m_subscriptionTargetConfig; }
197 inline bool SubscriptionTargetConfigHasBeenSet() const { return m_subscriptionTargetConfigHasBeenSet; }
198 template <typename SubscriptionTargetConfigT = Aws::Vector<SubscriptionTargetForm>>
199 void SetSubscriptionTargetConfig(SubscriptionTargetConfigT&& value) {
200 m_subscriptionTargetConfigHasBeenSet = true;
201 m_subscriptionTargetConfig = std::forward<SubscriptionTargetConfigT>(value);
202 }
203 template <typename SubscriptionTargetConfigT = Aws::Vector<SubscriptionTargetForm>>
205 SetSubscriptionTargetConfig(std::forward<SubscriptionTargetConfigT>(value));
206 return *this;
207 }
208 template <typename SubscriptionTargetConfigT = SubscriptionTargetForm>
210 m_subscriptionTargetConfigHasBeenSet = true;
211 m_subscriptionTargetConfig.emplace_back(std::forward<SubscriptionTargetConfigT>(value));
212 return *this;
213 }
215
217
220 inline const Aws::String& GetType() const { return m_type; }
221 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
222 template <typename TypeT = Aws::String>
223 void SetType(TypeT&& value) {
224 m_typeHasBeenSet = true;
225 m_type = std::forward<TypeT>(value);
226 }
227 template <typename TypeT = Aws::String>
229 SetType(std::forward<TypeT>(value));
230 return *this;
231 }
233 private:
234 Aws::Vector<Aws::String> m_applicableAssetTypes;
235 bool m_applicableAssetTypesHasBeenSet = false;
236
237 Aws::Vector<Aws::String> m_authorizedPrincipals;
238 bool m_authorizedPrincipalsHasBeenSet = false;
239
241 bool m_clientTokenHasBeenSet = true;
242
243 Aws::String m_domainIdentifier;
244 bool m_domainIdentifierHasBeenSet = false;
245
246 Aws::String m_environmentIdentifier;
247 bool m_environmentIdentifierHasBeenSet = false;
248
249 Aws::String m_manageAccessRole;
250 bool m_manageAccessRoleHasBeenSet = false;
251
252 Aws::String m_name;
253 bool m_nameHasBeenSet = false;
254
255 Aws::String m_provider;
256 bool m_providerHasBeenSet = false;
257
258 Aws::Vector<SubscriptionTargetForm> m_subscriptionTargetConfig;
259 bool m_subscriptionTargetConfigHasBeenSet = false;
260
261 Aws::String m_type;
262 bool m_typeHasBeenSet = false;
263};
264
265} // namespace Model
266} // namespace DataZone
267} // namespace Aws
CreateSubscriptionTargetRequest & WithSubscriptionTargetConfig(SubscriptionTargetConfigT &&value)
CreateSubscriptionTargetRequest & WithName(NameT &&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