7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/S3Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3/model/ObjectLockRetention.h>
11#include <aws/s3/model/RequestPayer.h>
12#include <aws/s3/model/ChecksumAlgorithm.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
74 template<
typename BucketT = Aws::String>
75 void SetBucket(BucketT&& value) { m_bucketHasBeenSet =
true; m_bucket = std::forward<BucketT>(value); }
76 template<
typename BucketT = Aws::String>
87 template<
typename KeyT = Aws::String>
88 void SetKey(KeyT&& value) { m_keyHasBeenSet =
true; m_key = std::forward<KeyT>(value); }
89 template<
typename KeyT = Aws::String>
99 template<
typename RetentionT = ObjectLockRetention>
100 void SetRetention(RetentionT&& value) { m_retentionHasBeenSet =
true; m_retention = std::forward<RetentionT>(value); }
101 template<
typename RetentionT = ObjectLockRetention>
120 template<
typename VersionIdT = Aws::String>
121 void SetVersionId(VersionIdT&& value) { m_versionIdHasBeenSet =
true; m_versionId = std::forward<VersionIdT>(value); }
122 template<
typename VersionIdT = Aws::String>
144 template<
typename ContentMD5T = Aws::String>
145 void SetContentMD5(ContentMD5T&& value) { m_contentMD5HasBeenSet =
true; m_contentMD5 = std::forward<ContentMD5T>(value); }
146 template<
typename ContentMD5T = Aws::String>
177 template<
typename ExpectedBucketOwnerT = Aws::String>
178 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) { m_expectedBucketOwnerHasBeenSet =
true; m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value); }
179 template<
typename ExpectedBucketOwnerT = Aws::String>
187 template<
typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
188 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) { m_customizedAccessLogTagHasBeenSet =
true; m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value); }
189 template<
typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
191 template<
typename CustomizedAccessLogTagKeyT = Aws::String,
typename CustomizedAccessLogTagValueT = Aws::String>
193 m_customizedAccessLogTagHasBeenSet =
true; m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
return *
this;
199 bool m_bucketHasBeenSet =
false;
202 bool m_keyHasBeenSet =
false;
205 bool m_retentionHasBeenSet =
false;
208 bool m_requestPayerHasBeenSet =
false;
211 bool m_versionIdHasBeenSet =
false;
213 bool m_bypassGovernanceRetention{
false};
214 bool m_bypassGovernanceRetentionHasBeenSet =
false;
217 bool m_contentMD5HasBeenSet =
false;
220 bool m_checksumAlgorithmHasBeenSet =
false;
223 bool m_expectedBucketOwnerHasBeenSet =
false;
226 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