AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateAccessPointRequest.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/s3control/S3ControlRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3control/model/VpcConfiguration.h>
11#include <aws/s3control/model/PublicAccessBlockConfiguration.h>
12#include <utility>
13
14namespace Aws
15{
16namespace S3Control
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_S3CONTROL_API CreateAccessPointRequest();
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 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
51 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
52 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
53 inline CreateAccessPointRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
54 inline CreateAccessPointRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
55 inline CreateAccessPointRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
57
59
62 inline const Aws::String& GetName() const{ return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
65 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
66 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
67 inline CreateAccessPointRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
68 inline CreateAccessPointRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
69 inline CreateAccessPointRequest& WithName(const char* value) { SetName(value); return *this;}
71
73
86 inline const Aws::String& GetBucket() const{ return m_bucket; }
87 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
88 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
89 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
90 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
91 inline CreateAccessPointRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
92 inline CreateAccessPointRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
93 inline CreateAccessPointRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
95
97
103 inline const VpcConfiguration& GetVpcConfiguration() const{ return m_vpcConfiguration; }
104 inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; }
105 inline void SetVpcConfiguration(const VpcConfiguration& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = value; }
106 inline void SetVpcConfiguration(VpcConfiguration&& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = std::move(value); }
108 inline CreateAccessPointRequest& WithVpcConfiguration(VpcConfiguration&& value) { SetVpcConfiguration(std::move(value)); return *this;}
110
112
116 inline const PublicAccessBlockConfiguration& GetPublicAccessBlockConfiguration() const{ return m_publicAccessBlockConfiguration; }
117 inline bool PublicAccessBlockConfigurationHasBeenSet() const { return m_publicAccessBlockConfigurationHasBeenSet; }
118 inline void SetPublicAccessBlockConfiguration(const PublicAccessBlockConfiguration& value) { m_publicAccessBlockConfigurationHasBeenSet = true; m_publicAccessBlockConfiguration = value; }
119 inline void SetPublicAccessBlockConfiguration(PublicAccessBlockConfiguration&& value) { m_publicAccessBlockConfigurationHasBeenSet = true; m_publicAccessBlockConfiguration = std::move(value); }
123
125
133 inline const Aws::String& GetBucketAccountId() const{ return m_bucketAccountId; }
134 inline bool BucketAccountIdHasBeenSet() const { return m_bucketAccountIdHasBeenSet; }
135 inline void SetBucketAccountId(const Aws::String& value) { m_bucketAccountIdHasBeenSet = true; m_bucketAccountId = value; }
136 inline void SetBucketAccountId(Aws::String&& value) { m_bucketAccountIdHasBeenSet = true; m_bucketAccountId = std::move(value); }
137 inline void SetBucketAccountId(const char* value) { m_bucketAccountIdHasBeenSet = true; m_bucketAccountId.assign(value); }
138 inline CreateAccessPointRequest& WithBucketAccountId(const Aws::String& value) { SetBucketAccountId(value); return *this;}
139 inline CreateAccessPointRequest& WithBucketAccountId(Aws::String&& value) { SetBucketAccountId(std::move(value)); return *this;}
140 inline CreateAccessPointRequest& WithBucketAccountId(const char* value) { SetBucketAccountId(value); return *this;}
142 private:
143
144 Aws::String m_accountId;
145 bool m_accountIdHasBeenSet = false;
146
147 Aws::String m_name;
148 bool m_nameHasBeenSet = false;
149
150 Aws::String m_bucket;
151 bool m_bucketHasBeenSet = false;
152
153 VpcConfiguration m_vpcConfiguration;
154 bool m_vpcConfigurationHasBeenSet = false;
155
156 PublicAccessBlockConfiguration m_publicAccessBlockConfiguration;
157 bool m_publicAccessBlockConfigurationHasBeenSet = false;
158
159 Aws::String m_bucketAccountId;
160 bool m_bucketAccountIdHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace S3Control
165} // namespace Aws
CreateAccessPointRequest & WithPublicAccessBlockConfiguration(const PublicAccessBlockConfiguration &value)
CreateAccessPointRequest & WithName(const char *value)
void SetPublicAccessBlockConfiguration(PublicAccessBlockConfiguration &&value)
CreateAccessPointRequest & WithVpcConfiguration(VpcConfiguration &&value)
CreateAccessPointRequest & WithBucket(const char *value)
CreateAccessPointRequest & WithBucketAccountId(Aws::String &&value)
CreateAccessPointRequest & WithName(Aws::String &&value)
void SetPublicAccessBlockConfiguration(const PublicAccessBlockConfiguration &value)
CreateAccessPointRequest & WithBucket(const Aws::String &value)
AWS_S3CONTROL_API Aws::String SerializePayload() const override
CreateAccessPointRequest & WithPublicAccessBlockConfiguration(PublicAccessBlockConfiguration &&value)
AWS_S3CONTROL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetVpcConfiguration(const VpcConfiguration &value)
CreateAccessPointRequest & WithBucketAccountId(const char *value)
CreateAccessPointRequest & WithBucketAccountId(const Aws::String &value)
AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override
CreateAccessPointRequest & WithName(const Aws::String &value)
CreateAccessPointRequest & WithAccountId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateAccessPointRequest & WithAccountId(const Aws::String &value)
CreateAccessPointRequest & WithVpcConfiguration(const VpcConfiguration &value)
CreateAccessPointRequest & WithBucket(Aws::String &&value)
const PublicAccessBlockConfiguration & GetPublicAccessBlockConfiguration() const
CreateAccessPointRequest & WithAccountId(const char *value)
Aws::Endpoint::EndpointParameters EndpointParameters
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String