AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
PutBucketAclRequest.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>
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:
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
41
43
45
47
52
56 inline const BucketCannedACL& GetACL() const{ return m_aCL; }
57
61 inline bool ACLHasBeenSet() const { return m_aCLHasBeenSet; }
62
66 inline void SetACL(const BucketCannedACL& value) { m_aCLHasBeenSet = true; m_aCL = value; }
67
71 inline void SetACL(BucketCannedACL&& value) { m_aCLHasBeenSet = true; m_aCL = std::move(value); }
72
76 inline PutBucketAclRequest& WithACL(const BucketCannedACL& value) { SetACL(value); return *this;}
77
81 inline PutBucketAclRequest& WithACL(BucketCannedACL&& value) { SetACL(std::move(value)); return *this;}
82
83
88 inline const AccessControlPolicy& GetAccessControlPolicy() const{ return m_accessControlPolicy; }
89
94 inline bool AccessControlPolicyHasBeenSet() const { return m_accessControlPolicyHasBeenSet; }
95
100 inline void SetAccessControlPolicy(const AccessControlPolicy& value) { m_accessControlPolicyHasBeenSet = true; m_accessControlPolicy = value; }
101
106 inline void SetAccessControlPolicy(AccessControlPolicy&& value) { m_accessControlPolicyHasBeenSet = true; m_accessControlPolicy = std::move(value); }
107
113
119
120
124 inline const Aws::String& GetBucket() const{ return m_bucket; }
125
129 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
130
134 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
135
139 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
140
144 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
145
149 inline PutBucketAclRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
150
154 inline PutBucketAclRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
155
159 inline PutBucketAclRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
160
161
170 inline const Aws::String& GetContentMD5() const{ return m_contentMD5; }
171
180 inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
181
190 inline void SetContentMD5(const Aws::String& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = value; }
191
200 inline void SetContentMD5(Aws::String&& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = std::move(value); }
201
210 inline void SetContentMD5(const char* value) { m_contentMD5HasBeenSet = true; m_contentMD5.assign(value); }
211
220 inline PutBucketAclRequest& WithContentMD5(const Aws::String& value) { SetContentMD5(value); return *this;}
221
230 inline PutBucketAclRequest& WithContentMD5(Aws::String&& value) { SetContentMD5(std::move(value)); return *this;}
231
240 inline PutBucketAclRequest& WithContentMD5(const char* value) { SetContentMD5(value); return *this;}
241
242
255 inline const ChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; }
256
269 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
270
283 inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
284
297 inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = std::move(value); }
298
312
325 inline PutBucketAclRequest& WithChecksumAlgorithm(ChecksumAlgorithm&& value) { SetChecksumAlgorithm(std::move(value)); return *this;}
326
327
332 inline const Aws::String& GetGrantFullControl() const{ return m_grantFullControl; }
333
338 inline bool GrantFullControlHasBeenSet() const { return m_grantFullControlHasBeenSet; }
339
344 inline void SetGrantFullControl(const Aws::String& value) { m_grantFullControlHasBeenSet = true; m_grantFullControl = value; }
345
350 inline void SetGrantFullControl(Aws::String&& value) { m_grantFullControlHasBeenSet = true; m_grantFullControl = std::move(value); }
351
356 inline void SetGrantFullControl(const char* value) { m_grantFullControlHasBeenSet = true; m_grantFullControl.assign(value); }
357
362 inline PutBucketAclRequest& WithGrantFullControl(const Aws::String& value) { SetGrantFullControl(value); return *this;}
363
368 inline PutBucketAclRequest& WithGrantFullControl(Aws::String&& value) { SetGrantFullControl(std::move(value)); return *this;}
369
374 inline PutBucketAclRequest& WithGrantFullControl(const char* value) { SetGrantFullControl(value); return *this;}
375
376
380 inline const Aws::String& GetGrantRead() const{ return m_grantRead; }
381
385 inline bool GrantReadHasBeenSet() const { return m_grantReadHasBeenSet; }
386
390 inline void SetGrantRead(const Aws::String& value) { m_grantReadHasBeenSet = true; m_grantRead = value; }
391
395 inline void SetGrantRead(Aws::String&& value) { m_grantReadHasBeenSet = true; m_grantRead = std::move(value); }
396
400 inline void SetGrantRead(const char* value) { m_grantReadHasBeenSet = true; m_grantRead.assign(value); }
401
405 inline PutBucketAclRequest& WithGrantRead(const Aws::String& value) { SetGrantRead(value); return *this;}
406
410 inline PutBucketAclRequest& WithGrantRead(Aws::String&& value) { SetGrantRead(std::move(value)); return *this;}
411
415 inline PutBucketAclRequest& WithGrantRead(const char* value) { SetGrantRead(value); return *this;}
416
417
421 inline const Aws::String& GetGrantReadACP() const{ return m_grantReadACP; }
422
426 inline bool GrantReadACPHasBeenSet() const { return m_grantReadACPHasBeenSet; }
427
431 inline void SetGrantReadACP(const Aws::String& value) { m_grantReadACPHasBeenSet = true; m_grantReadACP = value; }
432
436 inline void SetGrantReadACP(Aws::String&& value) { m_grantReadACPHasBeenSet = true; m_grantReadACP = std::move(value); }
437
441 inline void SetGrantReadACP(const char* value) { m_grantReadACPHasBeenSet = true; m_grantReadACP.assign(value); }
442
446 inline PutBucketAclRequest& WithGrantReadACP(const Aws::String& value) { SetGrantReadACP(value); return *this;}
447
451 inline PutBucketAclRequest& WithGrantReadACP(Aws::String&& value) { SetGrantReadACP(std::move(value)); return *this;}
452
456 inline PutBucketAclRequest& WithGrantReadACP(const char* value) { SetGrantReadACP(value); return *this;}
457
458
464 inline const Aws::String& GetGrantWrite() const{ return m_grantWrite; }
465
471 inline bool GrantWriteHasBeenSet() const { return m_grantWriteHasBeenSet; }
472
478 inline void SetGrantWrite(const Aws::String& value) { m_grantWriteHasBeenSet = true; m_grantWrite = value; }
479
485 inline void SetGrantWrite(Aws::String&& value) { m_grantWriteHasBeenSet = true; m_grantWrite = std::move(value); }
486
492 inline void SetGrantWrite(const char* value) { m_grantWriteHasBeenSet = true; m_grantWrite.assign(value); }
493
499 inline PutBucketAclRequest& WithGrantWrite(const Aws::String& value) { SetGrantWrite(value); return *this;}
500
506 inline PutBucketAclRequest& WithGrantWrite(Aws::String&& value) { SetGrantWrite(std::move(value)); return *this;}
507
513 inline PutBucketAclRequest& WithGrantWrite(const char* value) { SetGrantWrite(value); return *this;}
514
515
519 inline const Aws::String& GetGrantWriteACP() const{ return m_grantWriteACP; }
520
524 inline bool GrantWriteACPHasBeenSet() const { return m_grantWriteACPHasBeenSet; }
525
529 inline void SetGrantWriteACP(const Aws::String& value) { m_grantWriteACPHasBeenSet = true; m_grantWriteACP = value; }
530
534 inline void SetGrantWriteACP(Aws::String&& value) { m_grantWriteACPHasBeenSet = true; m_grantWriteACP = std::move(value); }
535
539 inline void SetGrantWriteACP(const char* value) { m_grantWriteACPHasBeenSet = true; m_grantWriteACP.assign(value); }
540
544 inline PutBucketAclRequest& WithGrantWriteACP(const Aws::String& value) { SetGrantWriteACP(value); return *this;}
545
549 inline PutBucketAclRequest& WithGrantWriteACP(Aws::String&& value) { SetGrantWriteACP(std::move(value)); return *this;}
550
554 inline PutBucketAclRequest& WithGrantWriteACP(const char* value) { SetGrantWriteACP(value); return *this;}
555
556
562 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
563
569 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
570
576 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
577
583 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
584
590 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
591
598
604 inline PutBucketAclRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
605
611 inline PutBucketAclRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
612
613
614
615 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
616
617
618 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
619
620
621 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
622
623
624 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
625
626
628
629
631
632
633 inline PutBucketAclRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
634
635
636 inline PutBucketAclRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
637
638
639 inline PutBucketAclRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
640
641
642 inline PutBucketAclRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
643
644
645 inline PutBucketAclRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
646
647
648 inline PutBucketAclRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
649
650
651 inline PutBucketAclRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
652
653 private:
654
655 BucketCannedACL m_aCL;
656 bool m_aCLHasBeenSet = false;
657
658 AccessControlPolicy m_accessControlPolicy;
659 bool m_accessControlPolicyHasBeenSet = false;
660
661 Aws::String m_bucket;
662 bool m_bucketHasBeenSet = false;
663
664 Aws::String m_contentMD5;
665 bool m_contentMD5HasBeenSet = false;
666
667 ChecksumAlgorithm m_checksumAlgorithm;
668 bool m_checksumAlgorithmHasBeenSet = false;
669
670 Aws::String m_grantFullControl;
671 bool m_grantFullControlHasBeenSet = false;
672
673 Aws::String m_grantRead;
674 bool m_grantReadHasBeenSet = false;
675
676 Aws::String m_grantReadACP;
677 bool m_grantReadACPHasBeenSet = false;
678
679 Aws::String m_grantWrite;
680 bool m_grantWriteHasBeenSet = false;
681
682 Aws::String m_grantWriteACP;
683 bool m_grantWriteACPHasBeenSet = false;
684
685 Aws::String m_expectedBucketOwner;
686 bool m_expectedBucketOwnerHasBeenSet = false;
687
688 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
689 bool m_customizedAccessLogTagHasBeenSet = false;
690 };
691
692} // namespace Model
693} // namespace S3
694} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
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)
void SetGrantWriteACP(const char *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)
void SetChecksumAlgorithm(const ChecksumAlgorithm &value)
PutBucketAclRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
void SetGrantWrite(Aws::String &&value)
void SetGrantRead(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_string< char, std::char_traits< char >, Aws::Allocator< char > > String