AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateAccessPointRequest.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/s3control/S3ControlRequest.h>
10#include <aws/s3control/S3Control_EXPORTS.h>
11#include <aws/s3control/model/PublicAccessBlockConfiguration.h>
12#include <aws/s3control/model/Scope.h>
13#include <aws/s3control/model/Tag.h>
14#include <aws/s3control/model/VpcConfiguration.h>
15
16#include <utility>
17
18namespace Aws {
19namespace S3Control {
20namespace Model {
21
25 public:
26 AWS_S3CONTROL_API CreateAccessPointRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateAccessPoint"; }
33
34 AWS_S3CONTROL_API Aws::String SerializePayload() const override;
35
37
41 AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override;
42
44
48 inline const Aws::String& GetAccountId() const { return m_accountId; }
49 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
50 template <typename AccountIdT = Aws::String>
51 void SetAccountId(AccountIdT&& value) {
52 m_accountIdHasBeenSet = true;
53 m_accountId = std::forward<AccountIdT>(value);
54 }
55 template <typename AccountIdT = Aws::String>
57 SetAccountId(std::forward<AccountIdT>(value));
58 return *this;
59 }
61
63
73 inline const Aws::String& GetName() const { return m_name; }
74 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
75 template <typename NameT = Aws::String>
76 void SetName(NameT&& value) {
77 m_nameHasBeenSet = true;
78 m_name = std::forward<NameT>(value);
79 }
80 template <typename NameT = Aws::String>
82 SetName(std::forward<NameT>(value));
83 return *this;
84 }
86
88
101 inline const Aws::String& GetBucket() const { return m_bucket; }
102 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
103 template <typename BucketT = Aws::String>
104 void SetBucket(BucketT&& value) {
105 m_bucketHasBeenSet = true;
106 m_bucket = std::forward<BucketT>(value);
107 }
108 template <typename BucketT = Aws::String>
110 SetBucket(std::forward<BucketT>(value));
111 return *this;
112 }
114
116
122 inline const VpcConfiguration& GetVpcConfiguration() const { return m_vpcConfiguration; }
123 inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; }
124 template <typename VpcConfigurationT = VpcConfiguration>
125 void SetVpcConfiguration(VpcConfigurationT&& value) {
126 m_vpcConfigurationHasBeenSet = true;
127 m_vpcConfiguration = std::forward<VpcConfigurationT>(value);
128 }
129 template <typename VpcConfigurationT = VpcConfiguration>
130 CreateAccessPointRequest& WithVpcConfiguration(VpcConfigurationT&& value) {
131 SetVpcConfiguration(std::forward<VpcConfigurationT>(value));
132 return *this;
133 }
135
137
141 inline const PublicAccessBlockConfiguration& GetPublicAccessBlockConfiguration() const { return m_publicAccessBlockConfiguration; }
142 inline bool PublicAccessBlockConfigurationHasBeenSet() const { return m_publicAccessBlockConfigurationHasBeenSet; }
143 template <typename PublicAccessBlockConfigurationT = PublicAccessBlockConfiguration>
144 void SetPublicAccessBlockConfiguration(PublicAccessBlockConfigurationT&& value) {
145 m_publicAccessBlockConfigurationHasBeenSet = true;
146 m_publicAccessBlockConfiguration = std::forward<PublicAccessBlockConfigurationT>(value);
147 }
148 template <typename PublicAccessBlockConfigurationT = PublicAccessBlockConfiguration>
149 CreateAccessPointRequest& WithPublicAccessBlockConfiguration(PublicAccessBlockConfigurationT&& value) {
150 SetPublicAccessBlockConfiguration(std::forward<PublicAccessBlockConfigurationT>(value));
151 return *this;
152 }
154
156
164 inline const Aws::String& GetBucketAccountId() const { return m_bucketAccountId; }
165 inline bool BucketAccountIdHasBeenSet() const { return m_bucketAccountIdHasBeenSet; }
166 template <typename BucketAccountIdT = Aws::String>
167 void SetBucketAccountId(BucketAccountIdT&& value) {
168 m_bucketAccountIdHasBeenSet = true;
169 m_bucketAccountId = std::forward<BucketAccountIdT>(value);
170 }
171 template <typename BucketAccountIdT = Aws::String>
173 SetBucketAccountId(std::forward<BucketAccountIdT>(value));
174 return *this;
175 }
177
179
187 inline const Scope& GetScope() const { return m_scope; }
188 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
189 template <typename ScopeT = Scope>
190 void SetScope(ScopeT&& value) {
191 m_scopeHasBeenSet = true;
192 m_scope = std::forward<ScopeT>(value);
193 }
194 template <typename ScopeT = Scope>
196 SetScope(std::forward<ScopeT>(value));
197 return *this;
198 }
200
202
211 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
212 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
213 template <typename TagsT = Aws::Vector<Tag>>
214 void SetTags(TagsT&& value) {
215 m_tagsHasBeenSet = true;
216 m_tags = std::forward<TagsT>(value);
217 }
218 template <typename TagsT = Aws::Vector<Tag>>
220 SetTags(std::forward<TagsT>(value));
221 return *this;
222 }
223 template <typename TagsT = Tag>
225 m_tagsHasBeenSet = true;
226 m_tags.emplace_back(std::forward<TagsT>(value));
227 return *this;
228 }
230 private:
231 Aws::String m_accountId;
232
233 Aws::String m_name;
234
235 Aws::String m_bucket;
236
237 VpcConfiguration m_vpcConfiguration;
238
239 PublicAccessBlockConfiguration m_publicAccessBlockConfiguration;
240
241 Aws::String m_bucketAccountId;
242
243 Scope m_scope;
244
245 Aws::Vector<Tag> m_tags;
246 bool m_accountIdHasBeenSet = false;
247 bool m_nameHasBeenSet = false;
248 bool m_bucketHasBeenSet = false;
249 bool m_vpcConfigurationHasBeenSet = false;
250 bool m_publicAccessBlockConfigurationHasBeenSet = false;
251 bool m_bucketAccountIdHasBeenSet = false;
252 bool m_scopeHasBeenSet = false;
253 bool m_tagsHasBeenSet = false;
254};
255
256} // namespace Model
257} // namespace S3Control
258} // namespace Aws
CreateAccessPointRequest & WithVpcConfiguration(VpcConfigurationT &&value)
CreateAccessPointRequest & WithBucket(BucketT &&value)
CreateAccessPointRequest & WithName(NameT &&value)
CreateAccessPointRequest & WithPublicAccessBlockConfiguration(PublicAccessBlockConfigurationT &&value)
CreateAccessPointRequest & WithBucketAccountId(BucketAccountIdT &&value)
void SetPublicAccessBlockConfiguration(PublicAccessBlockConfigurationT &&value)
AWS_S3CONTROL_API Aws::String SerializePayload() const override
AWS_S3CONTROL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateAccessPointRequest & WithTags(TagsT &&value)
CreateAccessPointRequest & WithAccountId(AccountIdT &&value)
CreateAccessPointRequest & AddTags(TagsT &&value)
AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override
AWS_S3CONTROL_API CreateAccessPointRequest()=default
virtual const char * GetServiceRequestName() const override
CreateAccessPointRequest & WithScope(ScopeT &&value)
const PublicAccessBlockConfiguration & GetPublicAccessBlockConfiguration() const
Aws::Endpoint::EndpointParameters EndpointParameters
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector