AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateBucketRequest.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/s3control/S3ControlRequest.h>
9#include <aws/s3control/model/BucketCannedACL.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/s3control/model/CreateBucketConfiguration.h>
12#include <utility>
13
14namespace Aws
15{
16namespace S3Control
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_S3CONTROL_API CreateBucketRequest();
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 "CreateBucket"; }
33
34 AWS_S3CONTROL_API Aws::String SerializePayload() const override;
35
37
38 AWS_S3CONTROL_API inline bool ShouldComputeContentMd5() const override { return true; }
39
43 AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override;
44
46
50 inline const BucketCannedACL& GetACL() const{ return m_aCL; }
51 inline bool ACLHasBeenSet() const { return m_aCLHasBeenSet; }
52 inline void SetACL(const BucketCannedACL& value) { m_aCLHasBeenSet = true; m_aCL = value; }
53 inline void SetACL(BucketCannedACL&& value) { m_aCLHasBeenSet = true; m_aCL = std::move(value); }
54 inline CreateBucketRequest& WithACL(const BucketCannedACL& value) { SetACL(value); return *this;}
55 inline CreateBucketRequest& WithACL(BucketCannedACL&& value) { SetACL(std::move(value)); return *this;}
57
59
62 inline const Aws::String& GetBucket() const{ return m_bucket; }
63 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
64 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
65 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
66 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
67 inline CreateBucketRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
68 inline CreateBucketRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
69 inline CreateBucketRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
71
73
77 inline const CreateBucketConfiguration& GetCreateBucketConfiguration() const{ return m_createBucketConfiguration; }
78 inline bool CreateBucketConfigurationHasBeenSet() const { return m_createBucketConfigurationHasBeenSet; }
79 inline void SetCreateBucketConfiguration(const CreateBucketConfiguration& value) { m_createBucketConfigurationHasBeenSet = true; m_createBucketConfiguration = value; }
80 inline void SetCreateBucketConfiguration(CreateBucketConfiguration&& value) { m_createBucketConfigurationHasBeenSet = true; m_createBucketConfiguration = std::move(value); }
84
86
91 inline const Aws::String& GetGrantFullControl() const{ return m_grantFullControl; }
92 inline bool GrantFullControlHasBeenSet() const { return m_grantFullControlHasBeenSet; }
93 inline void SetGrantFullControl(const Aws::String& value) { m_grantFullControlHasBeenSet = true; m_grantFullControl = value; }
94 inline void SetGrantFullControl(Aws::String&& value) { m_grantFullControlHasBeenSet = true; m_grantFullControl = std::move(value); }
95 inline void SetGrantFullControl(const char* value) { m_grantFullControlHasBeenSet = true; m_grantFullControl.assign(value); }
96 inline CreateBucketRequest& WithGrantFullControl(const Aws::String& value) { SetGrantFullControl(value); return *this;}
97 inline CreateBucketRequest& WithGrantFullControl(Aws::String&& value) { SetGrantFullControl(std::move(value)); return *this;}
98 inline CreateBucketRequest& WithGrantFullControl(const char* value) { SetGrantFullControl(value); return *this;}
100
102
106 inline const Aws::String& GetGrantRead() const{ return m_grantRead; }
107 inline bool GrantReadHasBeenSet() const { return m_grantReadHasBeenSet; }
108 inline void SetGrantRead(const Aws::String& value) { m_grantReadHasBeenSet = true; m_grantRead = value; }
109 inline void SetGrantRead(Aws::String&& value) { m_grantReadHasBeenSet = true; m_grantRead = std::move(value); }
110 inline void SetGrantRead(const char* value) { m_grantReadHasBeenSet = true; m_grantRead.assign(value); }
111 inline CreateBucketRequest& WithGrantRead(const Aws::String& value) { SetGrantRead(value); return *this;}
112 inline CreateBucketRequest& WithGrantRead(Aws::String&& value) { SetGrantRead(std::move(value)); return *this;}
113 inline CreateBucketRequest& WithGrantRead(const char* value) { SetGrantRead(value); return *this;}
115
117
121 inline const Aws::String& GetGrantReadACP() const{ return m_grantReadACP; }
122 inline bool GrantReadACPHasBeenSet() const { return m_grantReadACPHasBeenSet; }
123 inline void SetGrantReadACP(const Aws::String& value) { m_grantReadACPHasBeenSet = true; m_grantReadACP = value; }
124 inline void SetGrantReadACP(Aws::String&& value) { m_grantReadACPHasBeenSet = true; m_grantReadACP = std::move(value); }
125 inline void SetGrantReadACP(const char* value) { m_grantReadACPHasBeenSet = true; m_grantReadACP.assign(value); }
126 inline CreateBucketRequest& WithGrantReadACP(const Aws::String& value) { SetGrantReadACP(value); return *this;}
127 inline CreateBucketRequest& WithGrantReadACP(Aws::String&& value) { SetGrantReadACP(std::move(value)); return *this;}
128 inline CreateBucketRequest& WithGrantReadACP(const char* value) { SetGrantReadACP(value); return *this;}
130
132
136 inline const Aws::String& GetGrantWrite() const{ return m_grantWrite; }
137 inline bool GrantWriteHasBeenSet() const { return m_grantWriteHasBeenSet; }
138 inline void SetGrantWrite(const Aws::String& value) { m_grantWriteHasBeenSet = true; m_grantWrite = value; }
139 inline void SetGrantWrite(Aws::String&& value) { m_grantWriteHasBeenSet = true; m_grantWrite = std::move(value); }
140 inline void SetGrantWrite(const char* value) { m_grantWriteHasBeenSet = true; m_grantWrite.assign(value); }
141 inline CreateBucketRequest& WithGrantWrite(const Aws::String& value) { SetGrantWrite(value); return *this;}
142 inline CreateBucketRequest& WithGrantWrite(Aws::String&& value) { SetGrantWrite(std::move(value)); return *this;}
143 inline CreateBucketRequest& WithGrantWrite(const char* value) { SetGrantWrite(value); return *this;}
145
147
151 inline const Aws::String& GetGrantWriteACP() const{ return m_grantWriteACP; }
152 inline bool GrantWriteACPHasBeenSet() const { return m_grantWriteACPHasBeenSet; }
153 inline void SetGrantWriteACP(const Aws::String& value) { m_grantWriteACPHasBeenSet = true; m_grantWriteACP = value; }
154 inline void SetGrantWriteACP(Aws::String&& value) { m_grantWriteACPHasBeenSet = true; m_grantWriteACP = std::move(value); }
155 inline void SetGrantWriteACP(const char* value) { m_grantWriteACPHasBeenSet = true; m_grantWriteACP.assign(value); }
156 inline CreateBucketRequest& WithGrantWriteACP(const Aws::String& value) { SetGrantWriteACP(value); return *this;}
157 inline CreateBucketRequest& WithGrantWriteACP(Aws::String&& value) { SetGrantWriteACP(std::move(value)); return *this;}
158 inline CreateBucketRequest& WithGrantWriteACP(const char* value) { SetGrantWriteACP(value); return *this;}
160
162
167 inline bool GetObjectLockEnabledForBucket() const{ return m_objectLockEnabledForBucket; }
168 inline bool ObjectLockEnabledForBucketHasBeenSet() const { return m_objectLockEnabledForBucketHasBeenSet; }
169 inline void SetObjectLockEnabledForBucket(bool value) { m_objectLockEnabledForBucketHasBeenSet = true; m_objectLockEnabledForBucket = value; }
172
174
178 inline const Aws::String& GetOutpostId() const{ return m_outpostId; }
179 inline bool OutpostIdHasBeenSet() const { return m_outpostIdHasBeenSet; }
180 inline void SetOutpostId(const Aws::String& value) { m_outpostIdHasBeenSet = true; m_outpostId = value; }
181 inline void SetOutpostId(Aws::String&& value) { m_outpostIdHasBeenSet = true; m_outpostId = std::move(value); }
182 inline void SetOutpostId(const char* value) { m_outpostIdHasBeenSet = true; m_outpostId.assign(value); }
183 inline CreateBucketRequest& WithOutpostId(const Aws::String& value) { SetOutpostId(value); return *this;}
184 inline CreateBucketRequest& WithOutpostId(Aws::String&& value) { SetOutpostId(std::move(value)); return *this;}
185 inline CreateBucketRequest& WithOutpostId(const char* value) { SetOutpostId(value); return *this;}
187 private:
188
189 BucketCannedACL m_aCL;
190 bool m_aCLHasBeenSet = false;
191
192 Aws::String m_bucket;
193 bool m_bucketHasBeenSet = false;
194
195 CreateBucketConfiguration m_createBucketConfiguration;
196 bool m_createBucketConfigurationHasBeenSet = false;
197
198 Aws::String m_grantFullControl;
199 bool m_grantFullControlHasBeenSet = false;
200
201 Aws::String m_grantRead;
202 bool m_grantReadHasBeenSet = false;
203
204 Aws::String m_grantReadACP;
205 bool m_grantReadACPHasBeenSet = false;
206
207 Aws::String m_grantWrite;
208 bool m_grantWriteHasBeenSet = false;
209
210 Aws::String m_grantWriteACP;
211 bool m_grantWriteACPHasBeenSet = false;
212
213 bool m_objectLockEnabledForBucket;
214 bool m_objectLockEnabledForBucketHasBeenSet = false;
215
216 Aws::String m_outpostId;
217 bool m_outpostIdHasBeenSet = false;
218 };
219
220} // namespace Model
221} // namespace S3Control
222} // namespace Aws
CreateBucketRequest & WithOutpostId(const Aws::String &value)
void SetGrantReadACP(const Aws::String &value)
CreateBucketRequest & WithBucket(const Aws::String &value)
AWS_S3CONTROL_API bool ShouldComputeContentMd5() const override
void SetACL(const BucketCannedACL &value)
AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override
void SetGrantRead(const Aws::String &value)
CreateBucketRequest & WithOutpostId(const char *value)
CreateBucketRequest & WithGrantWrite(const Aws::String &value)
AWS_S3CONTROL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateBucketRequest & WithCreateBucketConfiguration(CreateBucketConfiguration &&value)
const Aws::String & GetGrantFullControl() const
void SetOutpostId(const Aws::String &value)
void SetGrantFullControl(const Aws::String &value)
CreateBucketRequest & WithOutpostId(Aws::String &&value)
void SetGrantWriteACP(const Aws::String &value)
CreateBucketRequest & WithGrantFullControl(const Aws::String &value)
AWS_S3CONTROL_API Aws::String SerializePayload() const override
void SetCreateBucketConfiguration(const CreateBucketConfiguration &value)
CreateBucketRequest & WithGrantWrite(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateBucketRequest & WithGrantWrite(const char *value)
CreateBucketRequest & WithCreateBucketConfiguration(const CreateBucketConfiguration &value)
CreateBucketRequest & WithACL(const BucketCannedACL &value)
CreateBucketRequest & WithGrantFullControl(Aws::String &&value)
void SetGrantWrite(const Aws::String &value)
CreateBucketRequest & WithGrantRead(const Aws::String &value)
CreateBucketRequest & WithGrantWriteACP(Aws::String &&value)
CreateBucketRequest & WithObjectLockEnabledForBucket(bool value)
CreateBucketRequest & WithACL(BucketCannedACL &&value)
CreateBucketRequest & WithGrantWriteACP(const Aws::String &value)
CreateBucketRequest & WithGrantRead(const char *value)
CreateBucketRequest & WithGrantReadACP(const Aws::String &value)
void SetCreateBucketConfiguration(CreateBucketConfiguration &&value)
CreateBucketRequest & WithBucket(Aws::String &&value)
CreateBucketRequest & WithGrantWriteACP(const char *value)
CreateBucketRequest & WithBucket(const char *value)
CreateBucketRequest & WithGrantReadACP(const char *value)
const CreateBucketConfiguration & GetCreateBucketConfiguration() const
CreateBucketRequest & WithGrantRead(Aws::String &&value)
CreateBucketRequest & WithGrantFullControl(const char *value)
CreateBucketRequest & WithGrantReadACP(Aws::String &&value)
Aws::Endpoint::EndpointParameters EndpointParameters
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String