7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/S3Request.h>
9#include <aws/s3/model/ObjectCannedACL.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/s3/model/RequestPayer.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
75 template<
typename AccessControlPolicyT = AccessControlPolicy>
76 void SetAccessControlPolicy(AccessControlPolicyT&& value) { m_accessControlPolicyHasBeenSet =
true; m_accessControlPolicy = std::forward<AccessControlPolicyT>(value); }
77 template<
typename AccessControlPolicyT = AccessControlPolicy>
109 template<
typename BucketT = Aws::String>
110 void SetBucket(BucketT&& value) { m_bucketHasBeenSet =
true; m_bucket = std::forward<BucketT>(value); }
111 template<
typename BucketT = Aws::String>
126 template<
typename ContentMD5T = Aws::String>
127 void SetContentMD5(ContentMD5T&& value) { m_contentMD5HasBeenSet =
true; m_contentMD5 = std::forward<ContentMD5T>(value); }
128 template<
typename ContentMD5T = Aws::String>
159 template<
typename GrantFullControlT = Aws::String>
160 void SetGrantFullControl(GrantFullControlT&& value) { m_grantFullControlHasBeenSet =
true; m_grantFullControl = std::forward<GrantFullControlT>(value); }
161 template<
typename GrantFullControlT = Aws::String>
172 template<
typename GrantReadT = Aws::String>
173 void SetGrantRead(GrantReadT&& value) { m_grantReadHasBeenSet =
true; m_grantRead = std::forward<GrantReadT>(value); }
174 template<
typename GrantReadT = Aws::String>
185 template<
typename GrantReadACPT = Aws::String>
186 void SetGrantReadACP(GrantReadACPT&& value) { m_grantReadACPHasBeenSet =
true; m_grantReadACP = std::forward<GrantReadACPT>(value); }
187 template<
typename GrantReadACPT = Aws::String>
199 template<
typename GrantWriteT = Aws::String>
200 void SetGrantWrite(GrantWriteT&& value) { m_grantWriteHasBeenSet =
true; m_grantWrite = std::forward<GrantWriteT>(value); }
201 template<
typename GrantWriteT = Aws::String>
212 template<
typename GrantWriteACPT = Aws::String>
213 void SetGrantWriteACP(GrantWriteACPT&& value) { m_grantWriteACPHasBeenSet =
true; m_grantWriteACP = std::forward<GrantWriteACPT>(value); }
214 template<
typename GrantWriteACPT = Aws::String>
224 template<
typename KeyT = Aws::String>
225 void SetKey(KeyT&& value) { m_keyHasBeenSet =
true; m_key = std::forward<KeyT>(value); }
226 template<
typename KeyT = Aws::String>
245 template<
typename VersionIdT = Aws::String>
246 void SetVersionId(VersionIdT&& value) { m_versionIdHasBeenSet =
true; m_versionId = std::forward<VersionIdT>(value); }
247 template<
typename VersionIdT = Aws::String>
259 template<
typename ExpectedBucketOwnerT = Aws::String>
260 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) { m_expectedBucketOwnerHasBeenSet =
true; m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value); }
261 template<
typename ExpectedBucketOwnerT = Aws::String>
269 template<
typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
270 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) { m_customizedAccessLogTagHasBeenSet =
true; m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value); }
271 template<
typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
273 template<
typename CustomizedAccessLogTagKeyT = Aws::String,
typename CustomizedAccessLogTagValueT = Aws::String>
275 m_customizedAccessLogTagHasBeenSet =
true; m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
return *
this;
281 bool m_aCLHasBeenSet =
false;
283 AccessControlPolicy m_accessControlPolicy;
284 bool m_accessControlPolicyHasBeenSet =
false;
287 bool m_bucketHasBeenSet =
false;
290 bool m_contentMD5HasBeenSet =
false;
293 bool m_checksumAlgorithmHasBeenSet =
false;
296 bool m_grantFullControlHasBeenSet =
false;
299 bool m_grantReadHasBeenSet =
false;
302 bool m_grantReadACPHasBeenSet =
false;
305 bool m_grantWriteHasBeenSet =
false;
308 bool m_grantWriteACPHasBeenSet =
false;
311 bool m_keyHasBeenSet =
false;
314 bool m_requestPayerHasBeenSet =
false;
317 bool m_versionIdHasBeenSet =
false;
320 bool m_expectedBucketOwnerHasBeenSet =
false;
323 bool m_customizedAccessLogTagHasBeenSet =
false;
const Aws::String & GetGrantWriteACP() const
bool GrantWriteHasBeenSet() const
bool GrantFullControlHasBeenSet() const
void SetKey(KeyT &&value)
PutObjectAclRequest & WithAccessControlPolicy(AccessControlPolicyT &&value)
PutObjectAclRequest & WithGrantWrite(GrantWriteT &&value)
ChecksumAlgorithm GetChecksumAlgorithm() const
PutObjectAclRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
bool GrantReadACPHasBeenSet() const
bool VersionIdHasBeenSet() const
void SetContentMD5(ContentMD5T &&value)
PutObjectAclRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
void SetBucket(BucketT &&value)
const Aws::String & GetKey() const
const Aws::String & GetGrantWrite() const
bool ACLHasBeenSet() const
bool AccessControlPolicyHasBeenSet() const
bool RequestChecksumRequired() const override
void SetGrantWriteACP(GrantWriteACPT &&value)
void SetGrantWrite(GrantWriteT &&value)
void SetGrantFullControl(GrantFullControlT &&value)
PutObjectAclRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
bool CustomizedAccessLogTagHasBeenSet() const
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetExpectedBucketOwner() const
const Aws::String & GetGrantFullControl() const
void SetCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
bool BucketHasBeenSet() const
PutObjectAclRequest & WithBucket(BucketT &&value)
PutObjectAclRequest & WithGrantReadACP(GrantReadACPT &&value)
void SetGrantReadACP(GrantReadACPT &&value)
PutObjectAclRequest & WithRequestPayer(RequestPayer value)
const Aws::String & GetBucket() const
void SetExpectedBucketOwner(ExpectedBucketOwnerT &&value)
AWS_S3_API PutObjectAclRequest()=default
void SetChecksumAlgorithm(ChecksumAlgorithm value)
bool RequestPayerHasBeenSet() const
AWS_S3_API Aws::String GetChecksumAlgorithmName() const override
void SetVersionId(VersionIdT &&value)
const AccessControlPolicy & GetAccessControlPolicy() const
virtual const char * GetServiceRequestName() const override
AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
PutObjectAclRequest & WithGrantWriteACP(GrantWriteACPT &&value)
void SetRequestPayer(RequestPayer value)
void SetAccessControlPolicy(AccessControlPolicyT &&value)
ObjectCannedACL GetACL() const
PutObjectAclRequest & WithChecksumAlgorithm(ChecksumAlgorithm value)
AWS_S3_API Aws::String SerializePayload() const override
bool ContentMD5HasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
PutObjectAclRequest & WithGrantRead(GrantReadT &&value)
PutObjectAclRequest & WithKey(KeyT &&value)
bool ChecksumAlgorithmHasBeenSet() const
const Aws::String & GetVersionId() const
RequestPayer GetRequestPayer() const
bool ExpectedBucketOwnerHasBeenSet() const
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetACL(ObjectCannedACL value)
void SetGrantRead(GrantReadT &&value)
PutObjectAclRequest & WithGrantFullControl(GrantFullControlT &&value)
PutObjectAclRequest & WithContentMD5(ContentMD5T &&value)
bool GrantReadHasBeenSet() const
const Aws::String & GetGrantReadACP() const
PutObjectAclRequest & WithACL(ObjectCannedACL value)
bool KeyHasBeenSet() const
const Aws::String & GetGrantRead() const
const Aws::String & GetContentMD5() const
PutObjectAclRequest & WithVersionId(VersionIdT &&value)
bool GrantWriteACPHasBeenSet() const
Aws::Endpoint::EndpointParameters EndpointParameters
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