7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3/S3Request.h>
10#include <aws/s3/S3_EXPORTS.h>
11#include <aws/s3/model/ChecksumAlgorithm.h>
12#include <aws/s3/model/ObjectLockRetention.h>
13#include <aws/s3/model/RequestPayer.h>
70 template <
typename BucketT = Aws::String>
72 m_bucketHasBeenSet =
true;
73 m_bucket = std::forward<BucketT>(value);
75 template <
typename BucketT = Aws::String>
89 template <
typename KeyT = Aws::String>
91 m_keyHasBeenSet =
true;
92 m_key = std::forward<KeyT>(value);
94 template <
typename KeyT = Aws::String>
96 SetKey(std::forward<KeyT>(value));
107 template <
typename RetentionT = ObjectLockRetention>
109 m_retentionHasBeenSet =
true;
110 m_retention = std::forward<RetentionT>(value);
112 template <
typename RetentionT = ObjectLockRetention>
124 m_requestPayerHasBeenSet =
true;
125 m_requestPayer = value;
140 template <
typename VersionIdT = Aws::String>
142 m_versionIdHasBeenSet =
true;
143 m_versionId = std::forward<VersionIdT>(value);
145 template <
typename VersionIdT = Aws::String>
159 m_bypassGovernanceRetentionHasBeenSet =
true;
160 m_bypassGovernanceRetention = value;
176 template <
typename ContentMD5T = Aws::String>
178 m_contentMD5HasBeenSet =
true;
179 m_contentMD5 = std::forward<ContentMD5T>(value);
181 template <
typename ContentMD5T = Aws::String>
204 m_checksumAlgorithmHasBeenSet =
true;
205 m_checksumAlgorithm = value;
221 template <
typename ExpectedBucketOwnerT = Aws::String>
223 m_expectedBucketOwnerHasBeenSet =
true;
224 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
226 template <
typename ExpectedBucketOwnerT = Aws::String>
237 template <
typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
239 m_customizedAccessLogTagHasBeenSet =
true;
240 m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value);
242 template <
typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
247 template <
typename CustomizedAccessLogTagKeyT = Aws::String,
typename CustomizedAccessLogTagValueT = Aws::String>
249 m_customizedAccessLogTagHasBeenSet =
true;
250 m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
265 bool m_bypassGovernanceRetention{
false};
274 bool m_bucketHasBeenSet =
false;
275 bool m_keyHasBeenSet =
false;
276 bool m_retentionHasBeenSet =
false;
277 bool m_requestPayerHasBeenSet =
false;
278 bool m_versionIdHasBeenSet =
false;
279 bool m_bypassGovernanceRetentionHasBeenSet =
false;
280 bool m_contentMD5HasBeenSet =
false;
281 bool m_checksumAlgorithmHasBeenSet =
false;
282 bool m_expectedBucketOwnerHasBeenSet =
false;
283 bool m_customizedAccessLogTagHasBeenSet =
false;
AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
void SetVersionId(VersionIdT &&value)
bool CustomizedAccessLogTagHasBeenSet() const
void SetCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
void SetRetention(RetentionT &&value)
PutObjectRetentionRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
bool ChecksumAlgorithmHasBeenSet() const
bool GetBypassGovernanceRetention() const
void SetBucket(BucketT &&value)
PutObjectRetentionRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
RequestPayer GetRequestPayer() const
PutObjectRetentionRequest & WithChecksumAlgorithm(ChecksumAlgorithm value)
bool ContentMD5HasBeenSet() const
void SetRequestPayer(RequestPayer value)
AWS_S3_API Aws::String SerializePayload() const override
bool ExpectedBucketOwnerHasBeenSet() const
const Aws::String & GetVersionId() const
void SetBypassGovernanceRetention(bool value)
bool RequestPayerHasBeenSet() const
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ChecksumAlgorithm GetChecksumAlgorithm() const
void SetKey(KeyT &&value)
const Aws::String & GetBucket() const
PutObjectRetentionRequest & WithVersionId(VersionIdT &&value)
PutObjectRetentionRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
PutObjectRetentionRequest & WithContentMD5(ContentMD5T &&value)
bool BypassGovernanceRetentionHasBeenSet() const
PutObjectRetentionRequest & WithRetention(RetentionT &&value)
bool BucketHasBeenSet() const
const Aws::String & GetExpectedBucketOwner() const
bool VersionIdHasBeenSet() const
PutObjectRetentionRequest & WithBucket(BucketT &&value)
PutObjectRetentionRequest & WithKey(KeyT &&value)
const ObjectLockRetention & GetRetention() const
AWS_S3_API PutObjectRetentionRequest()=default
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
PutObjectRetentionRequest & WithBypassGovernanceRetention(bool value)
void SetChecksumAlgorithm(ChecksumAlgorithm value)
void SetExpectedBucketOwner(ExpectedBucketOwnerT &&value)
const Aws::String & GetKey() const
bool RequestChecksumRequired() const override
bool KeyHasBeenSet() const
const Aws::String & GetContentMD5() const
AWS_S3_API Aws::String GetChecksumAlgorithmName() const override
bool RetentionHasBeenSet() const
PutObjectRetentionRequest & WithRequestPayer(RequestPayer value)
void SetContentMD5(ContentMD5T &&value)
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