AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
UpdateSubscriptionTargetRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/datazone/DataZoneRequest.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 DataZone {
18namespace Model {
19
23 public:
24 AWS_DATAZONE_API UpdateSubscriptionTargetRequest() = 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 "UpdateSubscriptionTarget"; }
31
32 AWS_DATAZONE_API Aws::String SerializePayload() const override;
33
35
39 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
40 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
41 template <typename DomainIdentifierT = Aws::String>
42 void SetDomainIdentifier(DomainIdentifierT&& value) {
43 m_domainIdentifierHasBeenSet = true;
44 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
45 }
46 template <typename DomainIdentifierT = Aws::String>
48 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
49 return *this;
50 }
52
54
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& GetIdentifier() const { return m_identifier; }
77 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
78 template <typename IdentifierT = Aws::String>
79 void SetIdentifier(IdentifierT&& value) {
80 m_identifierHasBeenSet = true;
81 m_identifier = std::forward<IdentifierT>(value);
82 }
83 template <typename IdentifierT = Aws::String>
85 SetIdentifier(std::forward<IdentifierT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetName() const { return m_name; }
96 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
97 template <typename NameT = Aws::String>
98 void SetName(NameT&& value) {
99 m_nameHasBeenSet = true;
100 m_name = std::forward<NameT>(value);
101 }
102 template <typename NameT = Aws::String>
104 SetName(std::forward<NameT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::Vector<Aws::String>& GetAuthorizedPrincipals() const { return m_authorizedPrincipals; }
115 inline bool AuthorizedPrincipalsHasBeenSet() const { return m_authorizedPrincipalsHasBeenSet; }
116 template <typename AuthorizedPrincipalsT = Aws::Vector<Aws::String>>
117 void SetAuthorizedPrincipals(AuthorizedPrincipalsT&& value) {
118 m_authorizedPrincipalsHasBeenSet = true;
119 m_authorizedPrincipals = std::forward<AuthorizedPrincipalsT>(value);
120 }
121 template <typename AuthorizedPrincipalsT = Aws::Vector<Aws::String>>
123 SetAuthorizedPrincipals(std::forward<AuthorizedPrincipalsT>(value));
124 return *this;
125 }
126 template <typename AuthorizedPrincipalsT = Aws::String>
128 m_authorizedPrincipalsHasBeenSet = true;
129 m_authorizedPrincipals.emplace_back(std::forward<AuthorizedPrincipalsT>(value));
130 return *this;
131 }
133
135
139 inline const Aws::Vector<Aws::String>& GetApplicableAssetTypes() const { return m_applicableAssetTypes; }
140 inline bool ApplicableAssetTypesHasBeenSet() const { return m_applicableAssetTypesHasBeenSet; }
141 template <typename ApplicableAssetTypesT = Aws::Vector<Aws::String>>
142 void SetApplicableAssetTypes(ApplicableAssetTypesT&& value) {
143 m_applicableAssetTypesHasBeenSet = true;
144 m_applicableAssetTypes = std::forward<ApplicableAssetTypesT>(value);
145 }
146 template <typename ApplicableAssetTypesT = Aws::Vector<Aws::String>>
148 SetApplicableAssetTypes(std::forward<ApplicableAssetTypesT>(value));
149 return *this;
150 }
151 template <typename ApplicableAssetTypesT = Aws::String>
153 m_applicableAssetTypesHasBeenSet = true;
154 m_applicableAssetTypes.emplace_back(std::forward<ApplicableAssetTypesT>(value));
155 return *this;
156 }
158
160
164 inline const Aws::Vector<SubscriptionTargetForm>& GetSubscriptionTargetConfig() const { return m_subscriptionTargetConfig; }
165 inline bool SubscriptionTargetConfigHasBeenSet() const { return m_subscriptionTargetConfigHasBeenSet; }
166 template <typename SubscriptionTargetConfigT = Aws::Vector<SubscriptionTargetForm>>
167 void SetSubscriptionTargetConfig(SubscriptionTargetConfigT&& value) {
168 m_subscriptionTargetConfigHasBeenSet = true;
169 m_subscriptionTargetConfig = std::forward<SubscriptionTargetConfigT>(value);
170 }
171 template <typename SubscriptionTargetConfigT = Aws::Vector<SubscriptionTargetForm>>
173 SetSubscriptionTargetConfig(std::forward<SubscriptionTargetConfigT>(value));
174 return *this;
175 }
176 template <typename SubscriptionTargetConfigT = SubscriptionTargetForm>
178 m_subscriptionTargetConfigHasBeenSet = true;
179 m_subscriptionTargetConfig.emplace_back(std::forward<SubscriptionTargetConfigT>(value));
180 return *this;
181 }
183
185
189 inline const Aws::String& GetManageAccessRole() const { return m_manageAccessRole; }
190 inline bool ManageAccessRoleHasBeenSet() const { return m_manageAccessRoleHasBeenSet; }
191 template <typename ManageAccessRoleT = Aws::String>
192 void SetManageAccessRole(ManageAccessRoleT&& value) {
193 m_manageAccessRoleHasBeenSet = true;
194 m_manageAccessRole = std::forward<ManageAccessRoleT>(value);
195 }
196 template <typename ManageAccessRoleT = Aws::String>
198 SetManageAccessRole(std::forward<ManageAccessRoleT>(value));
199 return *this;
200 }
202
204
208 inline const Aws::String& GetProvider() const { return m_provider; }
209 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
210 template <typename ProviderT = Aws::String>
211 void SetProvider(ProviderT&& value) {
212 m_providerHasBeenSet = true;
213 m_provider = std::forward<ProviderT>(value);
214 }
215 template <typename ProviderT = Aws::String>
217 SetProvider(std::forward<ProviderT>(value));
218 return *this;
219 }
221
223
227 inline SubscriptionGrantCreationMode GetSubscriptionGrantCreationMode() const { return m_subscriptionGrantCreationMode; }
228 inline bool SubscriptionGrantCreationModeHasBeenSet() const { return m_subscriptionGrantCreationModeHasBeenSet; }
230 m_subscriptionGrantCreationModeHasBeenSet = true;
231 m_subscriptionGrantCreationMode = value;
232 }
235 return *this;
236 }
238 private:
239 Aws::String m_domainIdentifier;
240
241 Aws::String m_environmentIdentifier;
242
243 Aws::String m_identifier;
244
245 Aws::String m_name;
246
247 Aws::Vector<Aws::String> m_authorizedPrincipals;
248
249 Aws::Vector<Aws::String> m_applicableAssetTypes;
250
251 Aws::Vector<SubscriptionTargetForm> m_subscriptionTargetConfig;
252
253 Aws::String m_manageAccessRole;
254
255 Aws::String m_provider;
256
258 bool m_domainIdentifierHasBeenSet = false;
259 bool m_environmentIdentifierHasBeenSet = false;
260 bool m_identifierHasBeenSet = false;
261 bool m_nameHasBeenSet = false;
262 bool m_authorizedPrincipalsHasBeenSet = false;
263 bool m_applicableAssetTypesHasBeenSet = false;
264 bool m_subscriptionTargetConfigHasBeenSet = false;
265 bool m_manageAccessRoleHasBeenSet = false;
266 bool m_providerHasBeenSet = false;
267 bool m_subscriptionGrantCreationModeHasBeenSet = false;
268};
269
270} // namespace Model
271} // namespace DataZone
272} // namespace Aws
UpdateSubscriptionTargetRequest & AddAuthorizedPrincipals(AuthorizedPrincipalsT &&value)
UpdateSubscriptionTargetRequest & WithSubscriptionGrantCreationMode(SubscriptionGrantCreationMode value)
UpdateSubscriptionTargetRequest & WithApplicableAssetTypes(ApplicableAssetTypesT &&value)
UpdateSubscriptionTargetRequest & WithDomainIdentifier(DomainIdentifierT &&value)
const Aws::Vector< Aws::String > & GetAuthorizedPrincipals() const
UpdateSubscriptionTargetRequest & WithIdentifier(IdentifierT &&value)
UpdateSubscriptionTargetRequest & WithManageAccessRole(ManageAccessRoleT &&value)
AWS_DATAZONE_API Aws::String SerializePayload() const override
UpdateSubscriptionTargetRequest & WithSubscriptionTargetConfig(SubscriptionTargetConfigT &&value)
const Aws::Vector< SubscriptionTargetForm > & GetSubscriptionTargetConfig() const
void SetSubscriptionGrantCreationMode(SubscriptionGrantCreationMode value)
UpdateSubscriptionTargetRequest & WithEnvironmentIdentifier(EnvironmentIdentifierT &&value)
UpdateSubscriptionTargetRequest & AddSubscriptionTargetConfig(SubscriptionTargetConfigT &&value)
UpdateSubscriptionTargetRequest & AddApplicableAssetTypes(ApplicableAssetTypesT &&value)
const Aws::Vector< Aws::String > & GetApplicableAssetTypes() const
UpdateSubscriptionTargetRequest & WithProvider(ProviderT &&value)
UpdateSubscriptionTargetRequest & WithName(NameT &&value)
UpdateSubscriptionTargetRequest & WithAuthorizedPrincipals(AuthorizedPrincipalsT &&value)
AWS_DATAZONE_API UpdateSubscriptionTargetRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector