AWS SDK for C++  1.8.182
AWS SDK for C++
CreateAccessPointRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace S3Control
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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::String SerializePayload() const override;
35 
37 
38 
43  inline const Aws::String& GetAccountId() const{ return m_accountId; }
44 
49  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
50 
55  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
56 
61  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
62 
67  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
68 
73  inline CreateAccessPointRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
74 
79  inline CreateAccessPointRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
80 
85  inline CreateAccessPointRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
86 
87 
91  inline const Aws::String& GetName() const{ return m_name; }
92 
96  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
97 
101  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
102 
106  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
107 
111  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
112 
116  inline CreateAccessPointRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
117 
121  inline CreateAccessPointRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
122 
126  inline CreateAccessPointRequest& WithName(const char* value) { SetName(value); return *this;}
127 
128 
142  inline const Aws::String& GetBucket() const{ return m_bucket; }
143 
157  inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
158 
172  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
173 
187  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
188 
202  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
203 
217  inline CreateAccessPointRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
218 
232  inline CreateAccessPointRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
233 
247  inline CreateAccessPointRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
248 
249 
256  inline const VpcConfiguration& GetVpcConfiguration() const{ return m_vpcConfiguration; }
257 
264  inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; }
265 
272  inline void SetVpcConfiguration(const VpcConfiguration& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = value; }
273 
280  inline void SetVpcConfiguration(VpcConfiguration&& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = std::move(value); }
281 
288  inline CreateAccessPointRequest& WithVpcConfiguration(const VpcConfiguration& value) { SetVpcConfiguration(value); return *this;}
289 
296  inline CreateAccessPointRequest& WithVpcConfiguration(VpcConfiguration&& value) { SetVpcConfiguration(std::move(value)); return *this;}
297 
298 
303  inline const PublicAccessBlockConfiguration& GetPublicAccessBlockConfiguration() const{ return m_publicAccessBlockConfiguration; }
304 
309  inline bool PublicAccessBlockConfigurationHasBeenSet() const { return m_publicAccessBlockConfigurationHasBeenSet; }
310 
315  inline void SetPublicAccessBlockConfiguration(const PublicAccessBlockConfiguration& value) { m_publicAccessBlockConfigurationHasBeenSet = true; m_publicAccessBlockConfiguration = value; }
316 
321  inline void SetPublicAccessBlockConfiguration(PublicAccessBlockConfiguration&& value) { m_publicAccessBlockConfigurationHasBeenSet = true; m_publicAccessBlockConfiguration = std::move(value); }
322 
327  inline CreateAccessPointRequest& WithPublicAccessBlockConfiguration(const PublicAccessBlockConfiguration& value) { SetPublicAccessBlockConfiguration(value); return *this;}
328 
333  inline CreateAccessPointRequest& WithPublicAccessBlockConfiguration(PublicAccessBlockConfiguration&& value) { SetPublicAccessBlockConfiguration(std::move(value)); return *this;}
334 
335  private:
336 
337  Aws::String m_accountId;
338  bool m_accountIdHasBeenSet;
339 
340  Aws::String m_name;
341  bool m_nameHasBeenSet;
342 
343  Aws::String m_bucket;
344  bool m_bucketHasBeenSet;
345 
346  VpcConfiguration m_vpcConfiguration;
347  bool m_vpcConfigurationHasBeenSet;
348 
349  PublicAccessBlockConfiguration m_publicAccessBlockConfiguration;
350  bool m_publicAccessBlockConfigurationHasBeenSet;
351  };
352 
353 } // namespace Model
354 } // namespace S3Control
355 } // namespace Aws
Aws::S3Control::Model::CreateAccessPointRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateAccessPointRequest.h:101
Aws::S3Control::Model::CreateAccessPointRequest::WithBucket
CreateAccessPointRequest & WithBucket(const Aws::String &value)
Definition: CreateAccessPointRequest.h:217
Aws::S3Control::S3ControlRequest
Definition: S3ControlRequest.h:17
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::S3Control::Model::CreateAccessPointRequest::WithBucket
CreateAccessPointRequest & WithBucket(const char *value)
Definition: CreateAccessPointRequest.h:247
Aws::S3Control::Model::VpcConfiguration
Definition: VpcConfiguration.h:32
Aws::S3Control::Model::CreateAccessPointRequest::WithName
CreateAccessPointRequest & WithName(const char *value)
Definition: CreateAccessPointRequest.h:126
Aws::S3Control::Model::CreateAccessPointRequest::GetBucket
const Aws::String & GetBucket() const
Definition: CreateAccessPointRequest.h:142
Aws::S3Control::Model::CreateAccessPointRequest::WithName
CreateAccessPointRequest & WithName(const Aws::String &value)
Definition: CreateAccessPointRequest.h:116
Aws::S3Control::Model::CreateAccessPointRequest::VpcConfigurationHasBeenSet
bool VpcConfigurationHasBeenSet() const
Definition: CreateAccessPointRequest.h:264
VpcConfiguration.h
Aws::S3Control::Model::CreateAccessPointRequest::SetName
void SetName(const char *value)
Definition: CreateAccessPointRequest.h:111
Aws::S3Control::Model::CreateAccessPointRequest::GetVpcConfiguration
const VpcConfiguration & GetVpcConfiguration() const
Definition: CreateAccessPointRequest.h:256
S3Control_EXPORTS.h
Aws::S3Control::Model::CreateAccessPointRequest::GetAccountId
const Aws::String & GetAccountId() const
Definition: CreateAccessPointRequest.h:43
Aws::S3Control::Model::CreateAccessPointRequest::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: CreateAccessPointRequest.h:61
Aws::S3Control::Model::CreateAccessPointRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateAccessPointRequest.h:96
Aws::S3Control::Model::CreateAccessPointRequest::WithAccountId
CreateAccessPointRequest & WithAccountId(Aws::String &&value)
Definition: CreateAccessPointRequest.h:79
Aws::S3Control::Model::CreateAccessPointRequest::WithPublicAccessBlockConfiguration
CreateAccessPointRequest & WithPublicAccessBlockConfiguration(PublicAccessBlockConfiguration &&value)
Definition: CreateAccessPointRequest.h:333
Aws::S3Control::Model::CreateAccessPointRequest::WithName
CreateAccessPointRequest & WithName(Aws::String &&value)
Definition: CreateAccessPointRequest.h:121
Aws::S3Control::Model::CreateAccessPointRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
Aws::S3Control::Model::CreateAccessPointRequest::SetPublicAccessBlockConfiguration
void SetPublicAccessBlockConfiguration(PublicAccessBlockConfiguration &&value)
Definition: CreateAccessPointRequest.h:321
Aws::S3Control::Model::CreateAccessPointRequest::SetVpcConfiguration
void SetVpcConfiguration(const VpcConfiguration &value)
Definition: CreateAccessPointRequest.h:272
Aws::S3Control::Model::PublicAccessBlockConfiguration
Definition: PublicAccessBlockConfiguration.h:36
Aws::S3Control::Model::CreateAccessPointRequest::WithPublicAccessBlockConfiguration
CreateAccessPointRequest & WithPublicAccessBlockConfiguration(const PublicAccessBlockConfiguration &value)
Definition: CreateAccessPointRequest.h:327
Aws::S3Control::Model::CreateAccessPointRequest::PublicAccessBlockConfigurationHasBeenSet
bool PublicAccessBlockConfigurationHasBeenSet() const
Definition: CreateAccessPointRequest.h:309
AWSString.h
PublicAccessBlockConfiguration.h
Aws::S3Control::Model::CreateAccessPointRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateAccessPointRequest.h:106
Aws::S3Control::Model::CreateAccessPointRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::S3Control::Model::CreateAccessPointRequest::WithAccountId
CreateAccessPointRequest & WithAccountId(const Aws::String &value)
Definition: CreateAccessPointRequest.h:73
Aws::S3Control::Model::CreateAccessPointRequest::WithBucket
CreateAccessPointRequest & WithBucket(Aws::String &&value)
Definition: CreateAccessPointRequest.h:232
Aws::S3Control::Model::CreateAccessPointRequest::SetAccountId
void SetAccountId(const char *value)
Definition: CreateAccessPointRequest.h:67
Aws::S3Control::Model::CreateAccessPointRequest::SetBucket
void SetBucket(const char *value)
Definition: CreateAccessPointRequest.h:202
Aws::S3Control::Model::CreateAccessPointRequest::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: CreateAccessPointRequest.h:55
Aws::S3Control::Model::CreateAccessPointRequest::CreateAccessPointRequest
CreateAccessPointRequest()
Aws::S3Control::Model::CreateAccessPointRequest::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: CreateAccessPointRequest.h:49
Aws
Definition: AccessManagementClient.h:15
Aws::S3Control::Model::CreateAccessPointRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateAccessPointRequest.h:32
Aws::S3Control::Model::CreateAccessPointRequest::SetVpcConfiguration
void SetVpcConfiguration(VpcConfiguration &&value)
Definition: CreateAccessPointRequest.h:280
Aws::S3Control::Model::CreateAccessPointRequest::WithVpcConfiguration
CreateAccessPointRequest & WithVpcConfiguration(const VpcConfiguration &value)
Definition: CreateAccessPointRequest.h:288
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
S3ControlRequest.h
Aws::S3Control::Model::CreateAccessPointRequest::BucketHasBeenSet
bool BucketHasBeenSet() const
Definition: CreateAccessPointRequest.h:157
Aws::S3Control::Model::CreateAccessPointRequest::SetBucket
void SetBucket(const Aws::String &value)
Definition: CreateAccessPointRequest.h:172
Aws::S3Control::Model::CreateAccessPointRequest::WithAccountId
CreateAccessPointRequest & WithAccountId(const char *value)
Definition: CreateAccessPointRequest.h:85
Aws::S3Control::Model::CreateAccessPointRequest::WithVpcConfiguration
CreateAccessPointRequest & WithVpcConfiguration(VpcConfiguration &&value)
Definition: CreateAccessPointRequest.h:296
Aws::S3Control::Model::CreateAccessPointRequest::SetPublicAccessBlockConfiguration
void SetPublicAccessBlockConfiguration(const PublicAccessBlockConfiguration &value)
Definition: CreateAccessPointRequest.h:315
Aws::S3Control::Model::CreateAccessPointRequest::GetName
const Aws::String & GetName() const
Definition: CreateAccessPointRequest.h:91
Aws::S3Control::Model::CreateAccessPointRequest::SetBucket
void SetBucket(Aws::String &&value)
Definition: CreateAccessPointRequest.h:187
Aws::S3Control::Model::CreateAccessPointRequest::GetPublicAccessBlockConfiguration
const PublicAccessBlockConfiguration & GetPublicAccessBlockConfiguration() const
Definition: CreateAccessPointRequest.h:303
Aws::S3Control::Model::CreateAccessPointRequest
Definition: CreateAccessPointRequest.h:24