7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/s3-crt/S3CrtRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3-crt/model/ObjectLockRetention.h>
11#include <aws/s3-crt/model/RequestPayer.h>
12#include <aws/s3-crt/model/ChecksumAlgorithm.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
73 inline void SetBucket(
const char* value) { m_bucketHasBeenSet =
true; m_bucket.assign(value); }
87 inline void SetKey(
Aws::String&& value) { m_keyHasBeenSet =
true; m_key = std::move(value); }
88 inline void SetKey(
const char* value) { m_keyHasBeenSet =
true; m_key.assign(value); }
125 inline void SetVersionId(
const char* value) { m_versionIdHasBeenSet =
true; m_versionId.assign(value); }
151 inline void SetContentMD5(
const char* value) { m_contentMD5HasBeenSet =
true; m_contentMD5.assign(value); }
188 inline void SetExpectedBucketOwner(
const char* value) { m_expectedBucketOwnerHasBeenSet =
true; m_expectedBucketOwner.assign(value); }
213 bool m_bucketHasBeenSet =
false;
216 bool m_keyHasBeenSet =
false;
219 bool m_retentionHasBeenSet =
false;
222 bool m_requestPayerHasBeenSet =
false;
225 bool m_versionIdHasBeenSet =
false;
227 bool m_bypassGovernanceRetention;
228 bool m_bypassGovernanceRetentionHasBeenSet =
false;
231 bool m_contentMD5HasBeenSet =
false;
234 bool m_checksumAlgorithmHasBeenSet =
false;
237 bool m_expectedBucketOwnerHasBeenSet =
false;
240 bool m_customizedAccessLogTagHasBeenSet =
false;
void SetChecksumAlgorithm(const ChecksumAlgorithm &value)
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
PutObjectRetentionRequest & WithRequestPayer(const RequestPayer &value)
const ObjectLockRetention & GetRetention() const
bool ChecksumAlgorithmHasBeenSet() const
PutObjectRetentionRequest & WithExpectedBucketOwner(const char *value)
PutObjectRetentionRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
void SetContentMD5(const Aws::String &value)
PutObjectRetentionRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override
PutObjectRetentionRequest & WithRetention(const ObjectLockRetention &value)
PutObjectRetentionRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
PutObjectRetentionRequest & WithContentMD5(const Aws::String &value)
PutObjectRetentionRequest & WithKey(const char *value)
PutObjectRetentionRequest & WithBypassGovernanceRetention(bool value)
bool RetentionHasBeenSet() const
PutObjectRetentionRequest & WithExpectedBucketOwner(const Aws::String &value)
void SetKey(Aws::String &&value)
PutObjectRetentionRequest & WithRetention(ObjectLockRetention &&value)
void SetContentMD5(Aws::String &&value)
AWS_S3CRT_API Aws::String SerializePayload() const override
const Aws::String & GetKey() const
PutObjectRetentionRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
bool ContentMD5HasBeenSet() const
void SetKey(const Aws::String &value)
void SetRequestPayer(RequestPayer &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
void SetKey(const char *value)
AWS_S3CRT_API PutObjectRetentionRequest()
PutObjectRetentionRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
void SetRetention(ObjectLockRetention &&value)
void SetVersionId(const char *value)
bool GetBypassGovernanceRetention() const
const RequestPayer & GetRequestPayer() const
void SetExpectedBucketOwner(const Aws::String &value)
PutObjectRetentionRequest & WithVersionId(const char *value)
virtual const char * GetServiceRequestName() const override
bool BucketHasBeenSet() const
PutObjectRetentionRequest & WithRequestPayer(RequestPayer &&value)
const Aws::String & GetExpectedBucketOwner() const
bool ExpectedBucketOwnerHasBeenSet() const
PutObjectRetentionRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
const Aws::String & GetContentMD5() const
PutObjectRetentionRequest & WithChecksumAlgorithm(const ChecksumAlgorithm &value)
PutObjectRetentionRequest & WithKey(Aws::String &&value)
void SetRetention(const ObjectLockRetention &value)
PutObjectRetentionRequest & WithBucket(const char *value)
const Aws::String & GetBucket() const
void SetExpectedBucketOwner(const char *value)
PutObjectRetentionRequest & WithContentMD5(Aws::String &&value)
AWS_S3CRT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetRequestPayer(const RequestPayer &value)
void SetBypassGovernanceRetention(bool value)
bool RequestPayerHasBeenSet() const
void SetBucket(const char *value)
AWS_S3CRT_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
PutObjectRetentionRequest & WithBucket(const Aws::String &value)
void SetBucket(Aws::String &&value)
PutObjectRetentionRequest & WithExpectedBucketOwner(Aws::String &&value)
PutObjectRetentionRequest & WithChecksumAlgorithm(ChecksumAlgorithm &&value)
AWS_S3CRT_API Aws::String GetChecksumAlgorithmName() const override
PutObjectRetentionRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
void SetVersionId(const Aws::String &value)
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
PutObjectRetentionRequest & WithVersionId(const Aws::String &value)
void SetChecksumAlgorithm(ChecksumAlgorithm &&value)
PutObjectRetentionRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
PutObjectRetentionRequest & WithKey(const Aws::String &value)
void SetVersionId(Aws::String &&value)
void SetContentMD5(const char *value)
PutObjectRetentionRequest & WithVersionId(Aws::String &&value)
void SetBucket(const Aws::String &value)
const ChecksumAlgorithm & GetChecksumAlgorithm() const
bool CustomizedAccessLogTagHasBeenSet() const
bool BypassGovernanceRetentionHasBeenSet() const
PutObjectRetentionRequest & WithContentMD5(const char *value)
bool VersionIdHasBeenSet() const
PutObjectRetentionRequest & WithBucket(Aws::String &&value)
AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetExpectedBucketOwner(Aws::String &&value)
PutObjectRetentionRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
bool KeyHasBeenSet() const
const Aws::String & GetVersionId() 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