AWS SDK for C++

AWS SDK for C++ Version 1.11.695

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
42 inline const Aws::Vector<AssetPermission>& GetAssetPermissions() const { return m_assetPermissions; }
43 inline bool AssetPermissionsHasBeenSet() const { return m_assetPermissionsHasBeenSet; }
44 template <typename AssetPermissionsT = Aws::Vector<AssetPermission>>
45 void SetAssetPermissions(AssetPermissionsT&& value) {
46 m_assetPermissionsHasBeenSet = true;
47 m_assetPermissions = std::forward<AssetPermissionsT>(value);
48 }
49 template <typename AssetPermissionsT = Aws::Vector<AssetPermission>>
51 SetAssetPermissions(std::forward<AssetPermissionsT>(value));
52 return *this;
53 }
54 template <typename AssetPermissionsT = AssetPermission>
56 m_assetPermissionsHasBeenSet = true;
57 m_assetPermissions.emplace_back(std::forward<AssetPermissionsT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::Vector<AcceptedAssetScope>& GetAssetScopes() const { return m_assetScopes; }
67 inline bool AssetScopesHasBeenSet() const { return m_assetScopesHasBeenSet; }
68 template <typename AssetScopesT = Aws::Vector<AcceptedAssetScope>>
69 void SetAssetScopes(AssetScopesT&& value) {
70 m_assetScopesHasBeenSet = true;
71 m_assetScopes = std::forward<AssetScopesT>(value);
72 }
73 template <typename AssetScopesT = Aws::Vector<AcceptedAssetScope>>
75 SetAssetScopes(std::forward<AssetScopesT>(value));
76 return *this;
77 }
78 template <typename AssetScopesT = AcceptedAssetScope>
80 m_assetScopesHasBeenSet = true;
81 m_assetScopes.emplace_back(std::forward<AssetScopesT>(value));
82 return *this;
83 }
85
87
91 inline const Aws::String& GetClientToken() const { return m_clientToken; }
92 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
93 template <typename ClientTokenT = Aws::String>
94 void SetClientToken(ClientTokenT&& value) {
95 m_clientTokenHasBeenSet = true;
96 m_clientToken = std::forward<ClientTokenT>(value);
97 }
98 template <typename ClientTokenT = Aws::String>
100 SetClientToken(std::forward<ClientTokenT>(value));
101 return *this;
102 }
104
106
110 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
111 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
112 template <typename DomainIdentifierT = Aws::String>
113 void SetDomainIdentifier(DomainIdentifierT&& value) {
114 m_domainIdentifierHasBeenSet = true;
115 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
116 }
117 template <typename DomainIdentifierT = Aws::String>
119 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::Vector<FormInput>& GetMetadataForms() const { return m_metadataForms; }
129 inline bool MetadataFormsHasBeenSet() const { return m_metadataFormsHasBeenSet; }
130 template <typename MetadataFormsT = Aws::Vector<FormInput>>
131 void SetMetadataForms(MetadataFormsT&& value) {
132 m_metadataFormsHasBeenSet = true;
133 m_metadataForms = std::forward<MetadataFormsT>(value);
134 }
135 template <typename MetadataFormsT = Aws::Vector<FormInput>>
137 SetMetadataForms(std::forward<MetadataFormsT>(value));
138 return *this;
139 }
140 template <typename MetadataFormsT = FormInput>
142 m_metadataFormsHasBeenSet = true;
143 m_metadataForms.emplace_back(std::forward<MetadataFormsT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::String& GetRequestReason() const { return m_requestReason; }
153 inline bool RequestReasonHasBeenSet() const { return m_requestReasonHasBeenSet; }
154 template <typename RequestReasonT = Aws::String>
155 void SetRequestReason(RequestReasonT&& value) {
156 m_requestReasonHasBeenSet = true;
157 m_requestReason = std::forward<RequestReasonT>(value);
158 }
159 template <typename RequestReasonT = Aws::String>
161 SetRequestReason(std::forward<RequestReasonT>(value));
162 return *this;
163 }
165
167
170 inline const Aws::Vector<SubscribedListingInput>& GetSubscribedListings() const { return m_subscribedListings; }
171 inline bool SubscribedListingsHasBeenSet() const { return m_subscribedListingsHasBeenSet; }
172 template <typename SubscribedListingsT = Aws::Vector<SubscribedListingInput>>
173 void SetSubscribedListings(SubscribedListingsT&& value) {
174 m_subscribedListingsHasBeenSet = true;
175 m_subscribedListings = std::forward<SubscribedListingsT>(value);
176 }
177 template <typename SubscribedListingsT = Aws::Vector<SubscribedListingInput>>
179 SetSubscribedListings(std::forward<SubscribedListingsT>(value));
180 return *this;
181 }
182 template <typename SubscribedListingsT = SubscribedListingInput>
184 m_subscribedListingsHasBeenSet = true;
185 m_subscribedListings.emplace_back(std::forward<SubscribedListingsT>(value));
186 return *this;
187 }
189
191
195 inline const Aws::Vector<SubscribedPrincipalInput>& GetSubscribedPrincipals() const { return m_subscribedPrincipals; }
196 inline bool SubscribedPrincipalsHasBeenSet() const { return m_subscribedPrincipalsHasBeenSet; }
197 template <typename SubscribedPrincipalsT = Aws::Vector<SubscribedPrincipalInput>>
198 void SetSubscribedPrincipals(SubscribedPrincipalsT&& value) {
199 m_subscribedPrincipalsHasBeenSet = true;
200 m_subscribedPrincipals = std::forward<SubscribedPrincipalsT>(value);
201 }
202 template <typename SubscribedPrincipalsT = Aws::Vector<SubscribedPrincipalInput>>
204 SetSubscribedPrincipals(std::forward<SubscribedPrincipalsT>(value));
205 return *this;
206 }
207 template <typename SubscribedPrincipalsT = SubscribedPrincipalInput>
209 m_subscribedPrincipalsHasBeenSet = true;
210 m_subscribedPrincipals.emplace_back(std::forward<SubscribedPrincipalsT>(value));
211 return *this;
212 }
214 private:
215 Aws::Vector<AssetPermission> m_assetPermissions;
216 bool m_assetPermissionsHasBeenSet = false;
217
219 bool m_assetScopesHasBeenSet = false;
220
222 bool m_clientTokenHasBeenSet = true;
223
224 Aws::String m_domainIdentifier;
225 bool m_domainIdentifierHasBeenSet = false;
226
227 Aws::Vector<FormInput> m_metadataForms;
228 bool m_metadataFormsHasBeenSet = false;
229
230 Aws::String m_requestReason;
231 bool m_requestReasonHasBeenSet = false;
232
233 Aws::Vector<SubscribedListingInput> m_subscribedListings;
234 bool m_subscribedListingsHasBeenSet = false;
235
236 Aws::Vector<SubscribedPrincipalInput> m_subscribedPrincipals;
237 bool m_subscribedPrincipalsHasBeenSet = 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