AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
PutBucketPolicyRequest.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/S3Request.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace S3
21{
22namespace Model
23{
24
28 {
29 public:
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "PutBucketPolicy"; }
37
39
41
43
48
52 inline const Aws::String& GetBucket() const{ return m_bucket; }
53
57 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
58
62 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
63
67 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
68
72 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
73
77 inline PutBucketPolicyRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
78
82 inline PutBucketPolicyRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
83
87 inline PutBucketPolicyRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
88
89
95 inline const Aws::String& GetContentMD5() const{ return m_contentMD5; }
96
102 inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
103
109 inline void SetContentMD5(const Aws::String& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = value; }
110
116 inline void SetContentMD5(Aws::String&& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = std::move(value); }
117
123 inline void SetContentMD5(const char* value) { m_contentMD5HasBeenSet = true; m_contentMD5.assign(value); }
124
130 inline PutBucketPolicyRequest& WithContentMD5(const Aws::String& value) { SetContentMD5(value); return *this;}
131
137 inline PutBucketPolicyRequest& WithContentMD5(Aws::String&& value) { SetContentMD5(std::move(value)); return *this;}
138
144 inline PutBucketPolicyRequest& WithContentMD5(const char* value) { SetContentMD5(value); return *this;}
145
146
159 inline const ChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; }
160
173 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
174
187 inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
188
201 inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = std::move(value); }
202
216
229 inline PutBucketPolicyRequest& WithChecksumAlgorithm(ChecksumAlgorithm&& value) { SetChecksumAlgorithm(std::move(value)); return *this;}
230
231
236 inline bool GetConfirmRemoveSelfBucketAccess() const{ return m_confirmRemoveSelfBucketAccess; }
237
242 inline bool ConfirmRemoveSelfBucketAccessHasBeenSet() const { return m_confirmRemoveSelfBucketAccessHasBeenSet; }
243
248 inline void SetConfirmRemoveSelfBucketAccess(bool value) { m_confirmRemoveSelfBucketAccessHasBeenSet = true; m_confirmRemoveSelfBucketAccess = value; }
249
255
256
262 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
263
269 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
270
276 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
277
283 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
284
290 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
291
298
304 inline PutBucketPolicyRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
305
311 inline PutBucketPolicyRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
312
313
314
315 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
316
317
318 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
319
320
321 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
322
323
324 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
325
326
328
329
331
332
333 inline PutBucketPolicyRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
334
335
336 inline PutBucketPolicyRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
337
338
339 inline PutBucketPolicyRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
340
341
342 inline PutBucketPolicyRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
343
344
345 inline PutBucketPolicyRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
346
347
348 inline PutBucketPolicyRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
349
350
351 inline PutBucketPolicyRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
352
353 private:
354
355 Aws::String m_bucket;
356 bool m_bucketHasBeenSet = false;
357
358 Aws::String m_contentMD5;
359 bool m_contentMD5HasBeenSet = false;
360
361 ChecksumAlgorithm m_checksumAlgorithm;
362 bool m_checksumAlgorithmHasBeenSet = false;
363
364 bool m_confirmRemoveSelfBucketAccess;
365 bool m_confirmRemoveSelfBucketAccessHasBeenSet = false;
366
367
368 Aws::String m_expectedBucketOwner;
369 bool m_expectedBucketOwnerHasBeenSet = false;
370
371 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
372 bool m_customizedAccessLogTagHasBeenSet = false;
373 };
374
375} // namespace Model
376} // namespace S3
377} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
Aws::Vector< Aws::Endpoint::EndpointParameter > EndpointParameters
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
void SetExpectedBucketOwner(Aws::String &&value)
PutBucketPolicyRequest & WithBucket(const Aws::String &value)
PutBucketPolicyRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
PutBucketPolicyRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
PutBucketPolicyRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
void SetBucket(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetExpectedBucketOwner(const Aws::String &value)
PutBucketPolicyRequest & WithExpectedBucketOwner(const char *value)
PutBucketPolicyRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
PutBucketPolicyRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutBucketPolicyRequest & WithChecksumAlgorithm(ChecksumAlgorithm &&value)
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
PutBucketPolicyRequest & WithContentMD5(Aws::String &&value)
PutBucketPolicyRequest & WithBucket(const char *value)
const ChecksumAlgorithm & GetChecksumAlgorithm() const
PutBucketPolicyRequest & WithConfirmRemoveSelfBucketAccess(bool value)
PutBucketPolicyRequest & WithContentMD5(const Aws::String &value)
PutBucketPolicyRequest & WithContentMD5(const char *value)
void SetContentMD5(const Aws::String &value)
PutBucketPolicyRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
const Aws::String & GetExpectedBucketOwner() const
AWS_S3_API Aws::String GetChecksumAlgorithmName() const override
PutBucketPolicyRequest & WithExpectedBucketOwner(Aws::String &&value)
PutBucketPolicyRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
PutBucketPolicyRequest & WithChecksumAlgorithm(const ChecksumAlgorithm &value)
PutBucketPolicyRequest & WithBucket(Aws::String &&value)
void SetChecksumAlgorithm(const ChecksumAlgorithm &value)
PutBucketPolicyRequest & WithExpectedBucketOwner(const Aws::String &value)
PutBucketPolicyRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
void SetChecksumAlgorithm(ChecksumAlgorithm &&value)
PutBucketPolicyRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String