AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutBucketAclRequest.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/S3Request.h>
9#include <aws/s3/model/BucketCannedACL.h>
10#include <aws/s3/model/AccessControlPolicy.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/s3/model/ChecksumAlgorithm.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Http
19{
20 class URI;
21} //namespace Http
22namespace S3
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_S3_API PutBucketAclRequest();
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "PutBucketAcl"; }
39
40 AWS_S3_API Aws::String SerializePayload() const override;
41
42 AWS_S3_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43
45
46 AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override;
47 AWS_S3_API Aws::String GetChecksumAlgorithmName() const override;
48
52 AWS_S3_API EndpointParameters GetEndpointContextParams() const override;
53
55
58 inline const BucketCannedACL& GetACL() const{ return m_aCL; }
59 inline bool ACLHasBeenSet() const { return m_aCLHasBeenSet; }
60 inline void SetACL(const BucketCannedACL& value) { m_aCLHasBeenSet = true; m_aCL = value; }
61 inline void SetACL(BucketCannedACL&& value) { m_aCLHasBeenSet = true; m_aCL = std::move(value); }
62 inline PutBucketAclRequest& WithACL(const BucketCannedACL& value) { SetACL(value); return *this;}
63 inline PutBucketAclRequest& WithACL(BucketCannedACL&& value) { SetACL(std::move(value)); return *this;}
65
67
71 inline const AccessControlPolicy& GetAccessControlPolicy() const{ return m_accessControlPolicy; }
72 inline bool AccessControlPolicyHasBeenSet() const { return m_accessControlPolicyHasBeenSet; }
73 inline void SetAccessControlPolicy(const AccessControlPolicy& value) { m_accessControlPolicyHasBeenSet = true; m_accessControlPolicy = value; }
74 inline void SetAccessControlPolicy(AccessControlPolicy&& value) { m_accessControlPolicyHasBeenSet = true; m_accessControlPolicy = std::move(value); }
78
80
83 inline const Aws::String& GetBucket() const{ return m_bucket; }
84 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
85 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
86 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
87 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
88 inline PutBucketAclRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
89 inline PutBucketAclRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
90 inline PutBucketAclRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
92
94
102 inline const Aws::String& GetContentMD5() const{ return m_contentMD5; }
103 inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
104 inline void SetContentMD5(const Aws::String& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = value; }
105 inline void SetContentMD5(Aws::String&& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = std::move(value); }
106 inline void SetContentMD5(const char* value) { m_contentMD5HasBeenSet = true; m_contentMD5.assign(value); }
107 inline PutBucketAclRequest& WithContentMD5(const Aws::String& value) { SetContentMD5(value); return *this;}
108 inline PutBucketAclRequest& WithContentMD5(Aws::String&& value) { SetContentMD5(std::move(value)); return *this;}
109 inline PutBucketAclRequest& WithContentMD5(const char* value) { SetContentMD5(value); return *this;}
111
113
125 inline const ChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; }
126 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
127 inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
128 inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = std::move(value); }
130 inline PutBucketAclRequest& WithChecksumAlgorithm(ChecksumAlgorithm&& value) { SetChecksumAlgorithm(std::move(value)); return *this;}
132
134
138 inline const Aws::String& GetGrantFullControl() const{ return m_grantFullControl; }
139 inline bool GrantFullControlHasBeenSet() const { return m_grantFullControlHasBeenSet; }
140 inline void SetGrantFullControl(const Aws::String& value) { m_grantFullControlHasBeenSet = true; m_grantFullControl = value; }
141 inline void SetGrantFullControl(Aws::String&& value) { m_grantFullControlHasBeenSet = true; m_grantFullControl = std::move(value); }
142 inline void SetGrantFullControl(const char* value) { m_grantFullControlHasBeenSet = true; m_grantFullControl.assign(value); }
143 inline PutBucketAclRequest& WithGrantFullControl(const Aws::String& value) { SetGrantFullControl(value); return *this;}
144 inline PutBucketAclRequest& WithGrantFullControl(Aws::String&& value) { SetGrantFullControl(std::move(value)); return *this;}
145 inline PutBucketAclRequest& WithGrantFullControl(const char* value) { SetGrantFullControl(value); return *this;}
147
149
152 inline const Aws::String& GetGrantRead() const{ return m_grantRead; }
153 inline bool GrantReadHasBeenSet() const { return m_grantReadHasBeenSet; }
154 inline void SetGrantRead(const Aws::String& value) { m_grantReadHasBeenSet = true; m_grantRead = value; }
155 inline void SetGrantRead(Aws::String&& value) { m_grantReadHasBeenSet = true; m_grantRead = std::move(value); }
156 inline void SetGrantRead(const char* value) { m_grantReadHasBeenSet = true; m_grantRead.assign(value); }
157 inline PutBucketAclRequest& WithGrantRead(const Aws::String& value) { SetGrantRead(value); return *this;}
158 inline PutBucketAclRequest& WithGrantRead(Aws::String&& value) { SetGrantRead(std::move(value)); return *this;}
159 inline PutBucketAclRequest& WithGrantRead(const char* value) { SetGrantRead(value); return *this;}
161
163
166 inline const Aws::String& GetGrantReadACP() const{ return m_grantReadACP; }
167 inline bool GrantReadACPHasBeenSet() const { return m_grantReadACPHasBeenSet; }
168 inline void SetGrantReadACP(const Aws::String& value) { m_grantReadACPHasBeenSet = true; m_grantReadACP = value; }
169 inline void SetGrantReadACP(Aws::String&& value) { m_grantReadACPHasBeenSet = true; m_grantReadACP = std::move(value); }
170 inline void SetGrantReadACP(const char* value) { m_grantReadACPHasBeenSet = true; m_grantReadACP.assign(value); }
171 inline PutBucketAclRequest& WithGrantReadACP(const Aws::String& value) { SetGrantReadACP(value); return *this;}
172 inline PutBucketAclRequest& WithGrantReadACP(Aws::String&& value) { SetGrantReadACP(std::move(value)); return *this;}
173 inline PutBucketAclRequest& WithGrantReadACP(const char* value) { SetGrantReadACP(value); return *this;}
175
177
182 inline const Aws::String& GetGrantWrite() const{ return m_grantWrite; }
183 inline bool GrantWriteHasBeenSet() const { return m_grantWriteHasBeenSet; }
184 inline void SetGrantWrite(const Aws::String& value) { m_grantWriteHasBeenSet = true; m_grantWrite = value; }
185 inline void SetGrantWrite(Aws::String&& value) { m_grantWriteHasBeenSet = true; m_grantWrite = std::move(value); }
186 inline void SetGrantWrite(const char* value) { m_grantWriteHasBeenSet = true; m_grantWrite.assign(value); }
187 inline PutBucketAclRequest& WithGrantWrite(const Aws::String& value) { SetGrantWrite(value); return *this;}
188 inline PutBucketAclRequest& WithGrantWrite(Aws::String&& value) { SetGrantWrite(std::move(value)); return *this;}
189 inline PutBucketAclRequest& WithGrantWrite(const char* value) { SetGrantWrite(value); return *this;}
191
193
196 inline const Aws::String& GetGrantWriteACP() const{ return m_grantWriteACP; }
197 inline bool GrantWriteACPHasBeenSet() const { return m_grantWriteACPHasBeenSet; }
198 inline void SetGrantWriteACP(const Aws::String& value) { m_grantWriteACPHasBeenSet = true; m_grantWriteACP = value; }
199 inline void SetGrantWriteACP(Aws::String&& value) { m_grantWriteACPHasBeenSet = true; m_grantWriteACP = std::move(value); }
200 inline void SetGrantWriteACP(const char* value) { m_grantWriteACPHasBeenSet = true; m_grantWriteACP.assign(value); }
201 inline PutBucketAclRequest& WithGrantWriteACP(const Aws::String& value) { SetGrantWriteACP(value); return *this;}
202 inline PutBucketAclRequest& WithGrantWriteACP(Aws::String&& value) { SetGrantWriteACP(std::move(value)); return *this;}
203 inline PutBucketAclRequest& WithGrantWriteACP(const char* value) { SetGrantWriteACP(value); return *this;}
205
207
212 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
213 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
214 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
215 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
216 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
218 inline PutBucketAclRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
219 inline PutBucketAclRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
221
223
224 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
225 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
226 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
227 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
230 inline PutBucketAclRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
231 inline PutBucketAclRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
232 inline PutBucketAclRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
233 inline PutBucketAclRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
234 inline PutBucketAclRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
235 inline PutBucketAclRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
236 inline PutBucketAclRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
238 private:
239
240 BucketCannedACL m_aCL;
241 bool m_aCLHasBeenSet = false;
242
243 AccessControlPolicy m_accessControlPolicy;
244 bool m_accessControlPolicyHasBeenSet = false;
245
246 Aws::String m_bucket;
247 bool m_bucketHasBeenSet = false;
248
249 Aws::String m_contentMD5;
250 bool m_contentMD5HasBeenSet = false;
251
252 ChecksumAlgorithm m_checksumAlgorithm;
253 bool m_checksumAlgorithmHasBeenSet = false;
254
255 Aws::String m_grantFullControl;
256 bool m_grantFullControlHasBeenSet = false;
257
258 Aws::String m_grantRead;
259 bool m_grantReadHasBeenSet = false;
260
261 Aws::String m_grantReadACP;
262 bool m_grantReadACPHasBeenSet = false;
263
264 Aws::String m_grantWrite;
265 bool m_grantWriteHasBeenSet = false;
266
267 Aws::String m_grantWriteACP;
268 bool m_grantWriteACPHasBeenSet = false;
269
270 Aws::String m_expectedBucketOwner;
271 bool m_expectedBucketOwnerHasBeenSet = false;
272
273 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
274 bool m_customizedAccessLogTagHasBeenSet = false;
275 };
276
277} // namespace Model
278} // namespace S3
279} // namespace Aws
void SetBucket(const Aws::String &value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetGrantFullControl(const Aws::String &value)
PutBucketAclRequest & WithGrantFullControl(const char *value)
PutBucketAclRequest & WithBucket(const char *value)
PutBucketAclRequest & WithChecksumAlgorithm(ChecksumAlgorithm &&value)
void SetContentMD5(const Aws::String &value)
PutBucketAclRequest & WithGrantRead(const char *value)
virtual const char * GetServiceRequestName() const override
void SetChecksumAlgorithm(ChecksumAlgorithm &&value)
PutBucketAclRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
AWS_S3_API Aws::String SerializePayload() const override
const Aws::String & GetContentMD5() const
PutBucketAclRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
const Aws::String & GetBucket() const
const AccessControlPolicy & GetAccessControlPolicy() const
PutBucketAclRequest & WithExpectedBucketOwner(const Aws::String &value)
PutBucketAclRequest & WithBucket(Aws::String &&value)
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::String & GetGrantWrite() const
PutBucketAclRequest & WithAccessControlPolicy(const AccessControlPolicy &value)
void SetGrantFullControl(const char *value)
PutBucketAclRequest & WithBucket(const Aws::String &value)
PutBucketAclRequest & WithGrantFullControl(const Aws::String &value)
PutBucketAclRequest & WithACL(BucketCannedACL &&value)
PutBucketAclRequest & WithGrantRead(Aws::String &&value)
void SetContentMD5(Aws::String &&value)
PutBucketAclRequest & WithGrantReadACP(const Aws::String &value)
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::String & GetGrantRead() const
PutBucketAclRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
PutBucketAclRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
const ChecksumAlgorithm & GetChecksumAlgorithm() const
void SetACL(BucketCannedACL &&value)
PutBucketAclRequest & WithGrantRead(const Aws::String &value)
PutBucketAclRequest & WithGrantWrite(Aws::String &&value)
PutBucketAclRequest & WithGrantWriteACP(Aws::String &&value)
PutBucketAclRequest & WithACL(const BucketCannedACL &value)
PutBucketAclRequest & WithGrantFullControl(Aws::String &&value)
PutBucketAclRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
PutBucketAclRequest & WithGrantReadACP(const char *value)
PutBucketAclRequest & WithGrantWriteACP(const Aws::String &value)
void SetGrantWriteACP(const Aws::String &value)
const Aws::String & GetGrantReadACP() const
void SetGrantReadACP(Aws::String &&value)
const Aws::String & GetGrantFullControl() const
PutBucketAclRequest & WithGrantWrite(const char *value)
PutBucketAclRequest & WithGrantWrite(const Aws::String &value)
void SetGrantWriteACP(Aws::String &&value)
PutBucketAclRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
const Aws::String & GetGrantWriteACP() const
PutBucketAclRequest & WithExpectedBucketOwner(const char *value)
void SetGrantRead(const Aws::String &value)
PutBucketAclRequest & WithContentMD5(Aws::String &&value)
AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
void SetChecksumAlgorithm(const ChecksumAlgorithm &value)
PutBucketAclRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
void SetGrantWrite(Aws::String &&value)
void SetExpectedBucketOwner(Aws::String &&value)
PutBucketAclRequest & WithGrantWriteACP(const char *value)
void SetGrantReadACP(const Aws::String &value)
void SetExpectedBucketOwner(const char *value)
void SetGrantFullControl(Aws::String &&value)
PutBucketAclRequest & WithExpectedBucketOwner(Aws::String &&value)
PutBucketAclRequest & WithContentMD5(const char *value)
PutBucketAclRequest & WithChecksumAlgorithm(const ChecksumAlgorithm &value)
const Aws::String & GetExpectedBucketOwner() const
PutBucketAclRequest & WithGrantReadACP(Aws::String &&value)
AWS_S3_API Aws::String GetChecksumAlgorithmName() const override
void SetGrantWrite(const Aws::String &value)
void SetAccessControlPolicy(const AccessControlPolicy &value)
PutBucketAclRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
const BucketCannedACL & GetACL() const
PutBucketAclRequest & WithContentMD5(const Aws::String &value)
PutBucketAclRequest & WithAccessControlPolicy(AccessControlPolicy &&value)
void SetAccessControlPolicy(AccessControlPolicy &&value)
PutBucketAclRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
void SetACL(const BucketCannedACL &value)
void SetExpectedBucketOwner(const Aws::String &value)
Aws::Endpoint::EndpointParameters EndpointParameters
Definition S3Request.h:22
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_iostream< char, std::char_traits< char > > IOStream
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String