AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
PutObjectAclRequest.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>
15#include <utility>
16
17namespace Aws
18{
19namespace Http
20{
21 class URI;
22} //namespace Http
23namespace S3
24{
25namespace Model
26{
27
31 {
32 public:
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "PutObjectAcl"; }
40
42
44
46
48
53
59 inline const ObjectCannedACL& GetACL() const{ return m_aCL; }
60
66 inline bool ACLHasBeenSet() const { return m_aCLHasBeenSet; }
67
73 inline void SetACL(const ObjectCannedACL& value) { m_aCLHasBeenSet = true; m_aCL = value; }
74
80 inline void SetACL(ObjectCannedACL&& value) { m_aCLHasBeenSet = true; m_aCL = std::move(value); }
81
87 inline PutObjectAclRequest& WithACL(const ObjectCannedACL& value) { SetACL(value); return *this;}
88
94 inline PutObjectAclRequest& WithACL(ObjectCannedACL&& value) { SetACL(std::move(value)); return *this;}
95
96
101 inline const AccessControlPolicy& GetAccessControlPolicy() const{ return m_accessControlPolicy; }
102
107 inline bool AccessControlPolicyHasBeenSet() const { return m_accessControlPolicyHasBeenSet; }
108
113 inline void SetAccessControlPolicy(const AccessControlPolicy& value) { m_accessControlPolicyHasBeenSet = true; m_accessControlPolicy = value; }
114
119 inline void SetAccessControlPolicy(AccessControlPolicy&& value) { m_accessControlPolicyHasBeenSet = true; m_accessControlPolicy = std::move(value); }
120
126
132
133
145 inline const Aws::String& GetBucket() const{ return m_bucket; }
146
158 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
159
171 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
172
184 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
185
197 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
198
210 inline PutObjectAclRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
211
223 inline PutObjectAclRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
224
236 inline PutObjectAclRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
237
238
247 inline const Aws::String& GetContentMD5() const{ return m_contentMD5; }
248
257 inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
258
267 inline void SetContentMD5(const Aws::String& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = value; }
268
277 inline void SetContentMD5(Aws::String&& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = std::move(value); }
278
287 inline void SetContentMD5(const char* value) { m_contentMD5HasBeenSet = true; m_contentMD5.assign(value); }
288
297 inline PutObjectAclRequest& WithContentMD5(const Aws::String& value) { SetContentMD5(value); return *this;}
298
307 inline PutObjectAclRequest& WithContentMD5(Aws::String&& value) { SetContentMD5(std::move(value)); return *this;}
308
317 inline PutObjectAclRequest& WithContentMD5(const char* value) { SetContentMD5(value); return *this;}
318
319
332 inline const ChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; }
333
346 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
347
360 inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
361
374 inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = std::move(value); }
375
389
402 inline PutObjectAclRequest& WithChecksumAlgorithm(ChecksumAlgorithm&& value) { SetChecksumAlgorithm(std::move(value)); return *this;}
403
404
409 inline const Aws::String& GetGrantFullControl() const{ return m_grantFullControl; }
410
415 inline bool GrantFullControlHasBeenSet() const { return m_grantFullControlHasBeenSet; }
416
421 inline void SetGrantFullControl(const Aws::String& value) { m_grantFullControlHasBeenSet = true; m_grantFullControl = value; }
422
427 inline void SetGrantFullControl(Aws::String&& value) { m_grantFullControlHasBeenSet = true; m_grantFullControl = std::move(value); }
428
433 inline void SetGrantFullControl(const char* value) { m_grantFullControlHasBeenSet = true; m_grantFullControl.assign(value); }
434
439 inline PutObjectAclRequest& WithGrantFullControl(const Aws::String& value) { SetGrantFullControl(value); return *this;}
440
445 inline PutObjectAclRequest& WithGrantFullControl(Aws::String&& value) { SetGrantFullControl(std::move(value)); return *this;}
446
451 inline PutObjectAclRequest& WithGrantFullControl(const char* value) { SetGrantFullControl(value); return *this;}
452
453
458 inline const Aws::String& GetGrantRead() const{ return m_grantRead; }
459
464 inline bool GrantReadHasBeenSet() const { return m_grantReadHasBeenSet; }
465
470 inline void SetGrantRead(const Aws::String& value) { m_grantReadHasBeenSet = true; m_grantRead = value; }
471
476 inline void SetGrantRead(Aws::String&& value) { m_grantReadHasBeenSet = true; m_grantRead = std::move(value); }
477
482 inline void SetGrantRead(const char* value) { m_grantReadHasBeenSet = true; m_grantRead.assign(value); }
483
488 inline PutObjectAclRequest& WithGrantRead(const Aws::String& value) { SetGrantRead(value); return *this;}
489
494 inline PutObjectAclRequest& WithGrantRead(Aws::String&& value) { SetGrantRead(std::move(value)); return *this;}
495
500 inline PutObjectAclRequest& WithGrantRead(const char* value) { SetGrantRead(value); return *this;}
501
502
507 inline const Aws::String& GetGrantReadACP() const{ return m_grantReadACP; }
508
513 inline bool GrantReadACPHasBeenSet() const { return m_grantReadACPHasBeenSet; }
514
519 inline void SetGrantReadACP(const Aws::String& value) { m_grantReadACPHasBeenSet = true; m_grantReadACP = value; }
520
525 inline void SetGrantReadACP(Aws::String&& value) { m_grantReadACPHasBeenSet = true; m_grantReadACP = std::move(value); }
526
531 inline void SetGrantReadACP(const char* value) { m_grantReadACPHasBeenSet = true; m_grantReadACP.assign(value); }
532
537 inline PutObjectAclRequest& WithGrantReadACP(const Aws::String& value) { SetGrantReadACP(value); return *this;}
538
543 inline PutObjectAclRequest& WithGrantReadACP(Aws::String&& value) { SetGrantReadACP(std::move(value)); return *this;}
544
549 inline PutObjectAclRequest& WithGrantReadACP(const char* value) { SetGrantReadACP(value); return *this;}
550
551
557 inline const Aws::String& GetGrantWrite() const{ return m_grantWrite; }
558
564 inline bool GrantWriteHasBeenSet() const { return m_grantWriteHasBeenSet; }
565
571 inline void SetGrantWrite(const Aws::String& value) { m_grantWriteHasBeenSet = true; m_grantWrite = value; }
572
578 inline void SetGrantWrite(Aws::String&& value) { m_grantWriteHasBeenSet = true; m_grantWrite = std::move(value); }
579
585 inline void SetGrantWrite(const char* value) { m_grantWriteHasBeenSet = true; m_grantWrite.assign(value); }
586
592 inline PutObjectAclRequest& WithGrantWrite(const Aws::String& value) { SetGrantWrite(value); return *this;}
593
599 inline PutObjectAclRequest& WithGrantWrite(Aws::String&& value) { SetGrantWrite(std::move(value)); return *this;}
600
606 inline PutObjectAclRequest& WithGrantWrite(const char* value) { SetGrantWrite(value); return *this;}
607
608
613 inline const Aws::String& GetGrantWriteACP() const{ return m_grantWriteACP; }
614
619 inline bool GrantWriteACPHasBeenSet() const { return m_grantWriteACPHasBeenSet; }
620
625 inline void SetGrantWriteACP(const Aws::String& value) { m_grantWriteACPHasBeenSet = true; m_grantWriteACP = value; }
626
631 inline void SetGrantWriteACP(Aws::String&& value) { m_grantWriteACPHasBeenSet = true; m_grantWriteACP = std::move(value); }
632
637 inline void SetGrantWriteACP(const char* value) { m_grantWriteACPHasBeenSet = true; m_grantWriteACP.assign(value); }
638
643 inline PutObjectAclRequest& WithGrantWriteACP(const Aws::String& value) { SetGrantWriteACP(value); return *this;}
644
649 inline PutObjectAclRequest& WithGrantWriteACP(Aws::String&& value) { SetGrantWriteACP(std::move(value)); return *this;}
650
655 inline PutObjectAclRequest& WithGrantWriteACP(const char* value) { SetGrantWriteACP(value); return *this;}
656
657
677 inline const Aws::String& GetKey() const{ return m_key; }
678
698 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
699
719 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
720
740 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
741
761 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
762
782 inline PutObjectAclRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
783
803 inline PutObjectAclRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
804
824 inline PutObjectAclRequest& WithKey(const char* value) { SetKey(value); return *this;}
825
826
827
828 inline const RequestPayer& GetRequestPayer() const{ return m_requestPayer; }
829
830
831 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
832
833
834 inline void SetRequestPayer(const RequestPayer& value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
835
836
837 inline void SetRequestPayer(RequestPayer&& value) { m_requestPayerHasBeenSet = true; m_requestPayer = std::move(value); }
838
839
840 inline PutObjectAclRequest& WithRequestPayer(const RequestPayer& value) { SetRequestPayer(value); return *this;}
841
842
843 inline PutObjectAclRequest& WithRequestPayer(RequestPayer&& value) { SetRequestPayer(std::move(value)); return *this;}
844
845
849 inline const Aws::String& GetVersionId() const{ return m_versionId; }
850
854 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
855
859 inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
860
864 inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
865
869 inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
870
874 inline PutObjectAclRequest& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
875
879 inline PutObjectAclRequest& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
880
884 inline PutObjectAclRequest& WithVersionId(const char* value) { SetVersionId(value); return *this;}
885
886
892 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
893
899 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
900
906 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
907
913 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
914
920 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
921
928
934 inline PutObjectAclRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
935
941 inline PutObjectAclRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
942
943
944
945 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
946
947
948 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
949
950
951 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
952
953
954 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
955
956
958
959
961
962
963 inline PutObjectAclRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
964
965
966 inline PutObjectAclRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
967
968
969 inline PutObjectAclRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
970
971
972 inline PutObjectAclRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
973
974
975 inline PutObjectAclRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
976
977
978 inline PutObjectAclRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
979
980
981 inline PutObjectAclRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
982
983 private:
984
985 ObjectCannedACL m_aCL;
986 bool m_aCLHasBeenSet = false;
987
988 AccessControlPolicy m_accessControlPolicy;
989 bool m_accessControlPolicyHasBeenSet = false;
990
991 Aws::String m_bucket;
992 bool m_bucketHasBeenSet = false;
993
994 Aws::String m_contentMD5;
995 bool m_contentMD5HasBeenSet = false;
996
997 ChecksumAlgorithm m_checksumAlgorithm;
998 bool m_checksumAlgorithmHasBeenSet = false;
999
1000 Aws::String m_grantFullControl;
1001 bool m_grantFullControlHasBeenSet = false;
1002
1003 Aws::String m_grantRead;
1004 bool m_grantReadHasBeenSet = false;
1005
1006 Aws::String m_grantReadACP;
1007 bool m_grantReadACPHasBeenSet = false;
1008
1009 Aws::String m_grantWrite;
1010 bool m_grantWriteHasBeenSet = false;
1011
1012 Aws::String m_grantWriteACP;
1013 bool m_grantWriteACPHasBeenSet = false;
1014
1015 Aws::String m_key;
1016 bool m_keyHasBeenSet = false;
1017
1018 RequestPayer m_requestPayer;
1019 bool m_requestPayerHasBeenSet = false;
1020
1021 Aws::String m_versionId;
1022 bool m_versionIdHasBeenSet = false;
1023
1024 Aws::String m_expectedBucketOwner;
1025 bool m_expectedBucketOwnerHasBeenSet = false;
1026
1027 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
1028 bool m_customizedAccessLogTagHasBeenSet = false;
1029 };
1030
1031} // namespace Model
1032} // namespace S3
1033} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
PutObjectAclRequest & WithChecksumAlgorithm(const ChecksumAlgorithm &value)
const Aws::String & GetGrantWriteACP() const
PutObjectAclRequest & WithBucket(const Aws::String &value)
PutObjectAclRequest & WithContentMD5(const Aws::String &value)
const RequestPayer & GetRequestPayer() const
PutObjectAclRequest & WithChecksumAlgorithm(ChecksumAlgorithm &&value)
void SetACL(ObjectCannedACL &&value)
PutObjectAclRequest & WithAccessControlPolicy(AccessControlPolicy &&value)
PutObjectAclRequest & WithContentMD5(Aws::String &&value)
void SetChecksumAlgorithm(const ChecksumAlgorithm &value)
void SetContentMD5(const Aws::String &value)
void SetRequestPayer(const RequestPayer &value)
PutObjectAclRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
PutObjectAclRequest & WithKey(const char *value)
PutObjectAclRequest & WithGrantWrite(const Aws::String &value)
PutObjectAclRequest & WithGrantReadACP(const char *value)
PutObjectAclRequest & WithGrantFullControl(Aws::String &&value)
PutObjectAclRequest & WithKey(const Aws::String &value)
void SetVersionId(const Aws::String &value)
void SetGrantRead(const Aws::String &value)
PutObjectAclRequest & WithACL(const ObjectCannedACL &value)
const ObjectCannedACL & GetACL() const
const Aws::String & GetKey() const
PutObjectAclRequest & WithRequestPayer(RequestPayer &&value)
const Aws::String & GetGrantWrite() const
void SetAccessControlPolicy(const AccessControlPolicy &value)
PutObjectAclRequest & WithExpectedBucketOwner(const char *value)
PutObjectAclRequest & WithGrantWriteACP(const Aws::String &value)
void SetAccessControlPolicy(AccessControlPolicy &&value)
PutObjectAclRequest & WithGrantRead(const Aws::String &value)
void SetExpectedBucketOwner(Aws::String &&value)
PutObjectAclRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
PutObjectAclRequest & WithGrantWrite(Aws::String &&value)
PutObjectAclRequest & WithGrantWriteACP(const char *value)
void SetGrantWriteACP(Aws::String &&value)
void SetGrantRead(Aws::String &&value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetExpectedBucketOwner() const
PutObjectAclRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
PutObjectAclRequest & WithBucket(const char *value)
const Aws::String & GetGrantFullControl() const
void SetChecksumAlgorithm(ChecksumAlgorithm &&value)
PutObjectAclRequest & WithGrantReadACP(Aws::String &&value)
PutObjectAclRequest & WithAccessControlPolicy(const AccessControlPolicy &value)
PutObjectAclRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
void SetExpectedBucketOwner(const char *value)
void SetContentMD5(Aws::String &&value)
void SetKey(const Aws::String &value)
PutObjectAclRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
void SetGrantFullControl(const Aws::String &value)
const Aws::String & GetBucket() const
PutObjectAclRequest & WithGrantWriteACP(Aws::String &&value)
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
const ChecksumAlgorithm & GetChecksumAlgorithm() const
PutObjectAclRequest & WithVersionId(Aws::String &&value)
PutObjectAclRequest & WithExpectedBucketOwner(const Aws::String &value)
PutObjectAclRequest & WithKey(Aws::String &&value)
AWS_S3_API Aws::String GetChecksumAlgorithmName() const override
PutObjectAclRequest & WithRequestPayer(const RequestPayer &value)
PutObjectAclRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
const AccessControlPolicy & GetAccessControlPolicy() const
virtual const char * GetServiceRequestName() const override
void SetACL(const ObjectCannedACL &value)
PutObjectAclRequest & WithGrantRead(const char *value)
PutObjectAclRequest & WithExpectedBucketOwner(Aws::String &&value)
PutObjectAclRequest & WithGrantFullControl(const char *value)
PutObjectAclRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
void SetGrantWriteACP(const char *value)
void SetRequestPayer(RequestPayer &&value)
void SetGrantWriteACP(const Aws::String &value)
AWS_S3_API Aws::String SerializePayload() const override
void SetGrantReadACP(const Aws::String &value)
void SetExpectedBucketOwner(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
PutObjectAclRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
void SetGrantFullControl(const char *value)
PutObjectAclRequest & WithGrantWrite(const char *value)
void SetVersionId(Aws::String &&value)
void SetGrantFullControl(Aws::String &&value)
const Aws::String & GetVersionId() const
void SetBucket(const Aws::String &value)
PutObjectAclRequest & WithContentMD5(const char *value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
PutObjectAclRequest & WithVersionId(const char *value)
void SetGrantWrite(const Aws::String &value)
PutObjectAclRequest & WithGrantFullControl(const Aws::String &value)
PutObjectAclRequest & WithGrantReadACP(const Aws::String &value)
PutObjectAclRequest & WithACL(ObjectCannedACL &&value)
PutObjectAclRequest & WithGrantRead(Aws::String &&value)
const Aws::String & GetGrantReadACP() const
void SetGrantReadACP(Aws::String &&value)
void SetGrantWrite(Aws::String &&value)
PutObjectAclRequest & WithBucket(Aws::String &&value)
PutObjectAclRequest & WithVersionId(const Aws::String &value)
const Aws::String & GetGrantRead() const
const Aws::String & GetContentMD5() const
PutObjectAclRequest & AddCustomizedAccessLogTag(const char *key, const char *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