AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateSubscriptionRequestRequest.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/AcceptedAssetScope.h>
13#include <aws/datazone/model/AssetPermission.h>
14#include <aws/datazone/model/FormInput.h>
15#include <aws/datazone/model/SubscribedListingInput.h>
16#include <aws/datazone/model/SubscribedPrincipalInput.h>
17
18#include <utility>
19
20namespace Aws {
21namespace DataZone {
22namespace Model {
23
27 public:
28 AWS_DATAZONE_API CreateSubscriptionRequestRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateSubscriptionRequest"; }
35
36 AWS_DATAZONE_API Aws::String SerializePayload() const override;
37
39
43 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
44 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
45 template <typename DomainIdentifierT = Aws::String>
46 void SetDomainIdentifier(DomainIdentifierT&& value) {
47 m_domainIdentifierHasBeenSet = true;
48 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
49 }
50 template <typename DomainIdentifierT = Aws::String>
52 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::Vector<SubscribedPrincipalInput>& GetSubscribedPrincipals() const { return m_subscribedPrincipals; }
63 inline bool SubscribedPrincipalsHasBeenSet() const { return m_subscribedPrincipalsHasBeenSet; }
64 template <typename SubscribedPrincipalsT = Aws::Vector<SubscribedPrincipalInput>>
65 void SetSubscribedPrincipals(SubscribedPrincipalsT&& value) {
66 m_subscribedPrincipalsHasBeenSet = true;
67 m_subscribedPrincipals = std::forward<SubscribedPrincipalsT>(value);
68 }
69 template <typename SubscribedPrincipalsT = Aws::Vector<SubscribedPrincipalInput>>
71 SetSubscribedPrincipals(std::forward<SubscribedPrincipalsT>(value));
72 return *this;
73 }
74 template <typename SubscribedPrincipalsT = SubscribedPrincipalInput>
76 m_subscribedPrincipalsHasBeenSet = true;
77 m_subscribedPrincipals.emplace_back(std::forward<SubscribedPrincipalsT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::Vector<SubscribedListingInput>& GetSubscribedListings() const { return m_subscribedListings; }
87 inline bool SubscribedListingsHasBeenSet() const { return m_subscribedListingsHasBeenSet; }
88 template <typename SubscribedListingsT = Aws::Vector<SubscribedListingInput>>
89 void SetSubscribedListings(SubscribedListingsT&& value) {
90 m_subscribedListingsHasBeenSet = true;
91 m_subscribedListings = std::forward<SubscribedListingsT>(value);
92 }
93 template <typename SubscribedListingsT = Aws::Vector<SubscribedListingInput>>
95 SetSubscribedListings(std::forward<SubscribedListingsT>(value));
96 return *this;
97 }
98 template <typename SubscribedListingsT = SubscribedListingInput>
100 m_subscribedListingsHasBeenSet = true;
101 m_subscribedListings.emplace_back(std::forward<SubscribedListingsT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetRequestReason() const { return m_requestReason; }
111 inline bool RequestReasonHasBeenSet() const { return m_requestReasonHasBeenSet; }
112 template <typename RequestReasonT = Aws::String>
113 void SetRequestReason(RequestReasonT&& value) {
114 m_requestReasonHasBeenSet = true;
115 m_requestReason = std::forward<RequestReasonT>(value);
116 }
117 template <typename RequestReasonT = Aws::String>
119 SetRequestReason(std::forward<RequestReasonT>(value));
120 return *this;
121 }
123
125
129 inline const Aws::String& GetClientToken() const { return m_clientToken; }
130 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
131 template <typename ClientTokenT = Aws::String>
132 void SetClientToken(ClientTokenT&& value) {
133 m_clientTokenHasBeenSet = true;
134 m_clientToken = std::forward<ClientTokenT>(value);
135 }
136 template <typename ClientTokenT = Aws::String>
138 SetClientToken(std::forward<ClientTokenT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::Vector<FormInput>& GetMetadataForms() const { return m_metadataForms; }
148 inline bool MetadataFormsHasBeenSet() const { return m_metadataFormsHasBeenSet; }
149 template <typename MetadataFormsT = Aws::Vector<FormInput>>
150 void SetMetadataForms(MetadataFormsT&& value) {
151 m_metadataFormsHasBeenSet = true;
152 m_metadataForms = std::forward<MetadataFormsT>(value);
153 }
154 template <typename MetadataFormsT = Aws::Vector<FormInput>>
156 SetMetadataForms(std::forward<MetadataFormsT>(value));
157 return *this;
158 }
159 template <typename MetadataFormsT = FormInput>
161 m_metadataFormsHasBeenSet = true;
162 m_metadataForms.emplace_back(std::forward<MetadataFormsT>(value));
163 return *this;
164 }
166
168
171 inline const Aws::Vector<AssetPermission>& GetAssetPermissions() const { return m_assetPermissions; }
172 inline bool AssetPermissionsHasBeenSet() const { return m_assetPermissionsHasBeenSet; }
173 template <typename AssetPermissionsT = Aws::Vector<AssetPermission>>
174 void SetAssetPermissions(AssetPermissionsT&& value) {
175 m_assetPermissionsHasBeenSet = true;
176 m_assetPermissions = std::forward<AssetPermissionsT>(value);
177 }
178 template <typename AssetPermissionsT = Aws::Vector<AssetPermission>>
180 SetAssetPermissions(std::forward<AssetPermissionsT>(value));
181 return *this;
182 }
183 template <typename AssetPermissionsT = AssetPermission>
185 m_assetPermissionsHasBeenSet = true;
186 m_assetPermissions.emplace_back(std::forward<AssetPermissionsT>(value));
187 return *this;
188 }
190
192
195 inline const Aws::Vector<AcceptedAssetScope>& GetAssetScopes() const { return m_assetScopes; }
196 inline bool AssetScopesHasBeenSet() const { return m_assetScopesHasBeenSet; }
197 template <typename AssetScopesT = Aws::Vector<AcceptedAssetScope>>
198 void SetAssetScopes(AssetScopesT&& value) {
199 m_assetScopesHasBeenSet = true;
200 m_assetScopes = std::forward<AssetScopesT>(value);
201 }
202 template <typename AssetScopesT = Aws::Vector<AcceptedAssetScope>>
204 SetAssetScopes(std::forward<AssetScopesT>(value));
205 return *this;
206 }
207 template <typename AssetScopesT = AcceptedAssetScope>
209 m_assetScopesHasBeenSet = true;
210 m_assetScopes.emplace_back(std::forward<AssetScopesT>(value));
211 return *this;
212 }
214 private:
215 Aws::String m_domainIdentifier;
216
217 Aws::Vector<SubscribedPrincipalInput> m_subscribedPrincipals;
218
219 Aws::Vector<SubscribedListingInput> m_subscribedListings;
220
221 Aws::String m_requestReason;
222
224
225 Aws::Vector<FormInput> m_metadataForms;
226
227 Aws::Vector<AssetPermission> m_assetPermissions;
228
230 bool m_domainIdentifierHasBeenSet = false;
231 bool m_subscribedPrincipalsHasBeenSet = false;
232 bool m_subscribedListingsHasBeenSet = false;
233 bool m_requestReasonHasBeenSet = false;
234 bool m_clientTokenHasBeenSet = true;
235 bool m_metadataFormsHasBeenSet = false;
236 bool m_assetPermissionsHasBeenSet = false;
237 bool m_assetScopesHasBeenSet = false;
238};
239
240} // namespace Model
241} // namespace DataZone
242} // namespace Aws
CreateSubscriptionRequestRequest & WithSubscribedPrincipals(SubscribedPrincipalsT &&value)
CreateSubscriptionRequestRequest & AddSubscribedPrincipals(SubscribedPrincipalsT &&value)
CreateSubscriptionRequestRequest & WithMetadataForms(MetadataFormsT &&value)
const Aws::Vector< SubscribedListingInput > & GetSubscribedListings() const
CreateSubscriptionRequestRequest & WithRequestReason(RequestReasonT &&value)
CreateSubscriptionRequestRequest & WithClientToken(ClientTokenT &&value)
CreateSubscriptionRequestRequest & WithAssetScopes(AssetScopesT &&value)
const Aws::Vector< AssetPermission > & GetAssetPermissions() const
AWS_DATAZONE_API CreateSubscriptionRequestRequest()=default
CreateSubscriptionRequestRequest & AddMetadataForms(MetadataFormsT &&value)
CreateSubscriptionRequestRequest & WithAssetPermissions(AssetPermissionsT &&value)
const Aws::Vector< AcceptedAssetScope > & GetAssetScopes() const
CreateSubscriptionRequestRequest & WithDomainIdentifier(DomainIdentifierT &&value)
AWS_DATAZONE_API Aws::String SerializePayload() const override
CreateSubscriptionRequestRequest & AddAssetScopes(AssetScopesT &&value)
CreateSubscriptionRequestRequest & AddSubscribedListings(SubscribedListingsT &&value)
const Aws::Vector< SubscribedPrincipalInput > & GetSubscribedPrincipals() const
CreateSubscriptionRequestRequest & AddAssetPermissions(AssetPermissionsT &&value)
CreateSubscriptionRequestRequest & WithSubscribedListings(SubscribedListingsT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector