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/ObjectLockLegalHold.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>
88 template <
typename KeyT = Aws::String>
90 m_keyHasBeenSet =
true;
91 m_key = std::forward<KeyT>(value);
93 template <
typename KeyT = Aws::String>
95 SetKey(std::forward<KeyT>(value));
107 template <
typename LegalHoldT = ObjectLockLegalHold>
109 m_legalHoldHasBeenSet =
true;
110 m_legalHold = std::forward<LegalHoldT>(value);
112 template <
typename LegalHoldT = ObjectLockLegalHold>
124 m_requestPayerHasBeenSet =
true;
125 m_requestPayer = value;
139 template <
typename VersionIdT = Aws::String>
141 m_versionIdHasBeenSet =
true;
142 m_versionId = std::forward<VersionIdT>(value);
144 template <
typename VersionIdT = Aws::String>
159 template <
typename ContentMD5T = Aws::String>
161 m_contentMD5HasBeenSet =
true;
162 m_contentMD5 = std::forward<ContentMD5T>(value);
164 template <
typename ContentMD5T = Aws::String>
187 m_checksumAlgorithmHasBeenSet =
true;
188 m_checksumAlgorithm = value;
204 template <
typename ExpectedBucketOwnerT = Aws::String>
206 m_expectedBucketOwnerHasBeenSet =
true;
207 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
209 template <
typename ExpectedBucketOwnerT = Aws::String>
220 template <
typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
222 m_customizedAccessLogTagHasBeenSet =
true;
223 m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value);
225 template <
typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
230 template <
typename CustomizedAccessLogTagKeyT = Aws::String,
typename CustomizedAccessLogTagValueT = Aws::String>
232 m_customizedAccessLogTagHasBeenSet =
true;
233 m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
239 bool m_bucketHasBeenSet =
false;
242 bool m_keyHasBeenSet =
false;
245 bool m_legalHoldHasBeenSet =
false;
248 bool m_requestPayerHasBeenSet =
false;
251 bool m_versionIdHasBeenSet =
false;
254 bool m_contentMD5HasBeenSet =
false;
257 bool m_checksumAlgorithmHasBeenSet =
false;
260 bool m_expectedBucketOwnerHasBeenSet =
false;
263 bool m_customizedAccessLogTagHasBeenSet =
false;
const Aws::String & GetBucket() const
void SetLegalHold(LegalHoldT &&value)
void SetChecksumAlgorithm(ChecksumAlgorithm value)
AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
AWS_S3_API Aws::String GetChecksumAlgorithmName() const override
const Aws::String & GetVersionId() const
bool ExpectedBucketOwnerHasBeenSet() const
bool ContentMD5HasBeenSet() const
AWS_S3_API Aws::String SerializePayload() const override
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
void SetCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
void SetExpectedBucketOwner(ExpectedBucketOwnerT &&value)
void SetKey(KeyT &&value)
bool RequestChecksumRequired() const override
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutObjectLegalHoldRequest & WithContentMD5(ContentMD5T &&value)
void SetContentMD5(ContentMD5T &&value)
const ObjectLockLegalHold & GetLegalHold() const
PutObjectLegalHoldRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
PutObjectLegalHoldRequest & WithKey(KeyT &&value)
PutObjectLegalHoldRequest & WithRequestPayer(RequestPayer value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
void SetRequestPayer(RequestPayer value)
PutObjectLegalHoldRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
PutObjectLegalHoldRequest & WithBucket(BucketT &&value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
bool VersionIdHasBeenSet() const
bool BucketHasBeenSet() const
bool ChecksumAlgorithmHasBeenSet() const
PutObjectLegalHoldRequest & WithLegalHold(LegalHoldT &&value)
RequestPayer GetRequestPayer() const
const Aws::String & GetExpectedBucketOwner() const
PutObjectLegalHoldRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
void SetBucket(BucketT &&value)
bool RequestPayerHasBeenSet() const
const Aws::String & GetKey() const
AWS_S3_API PutObjectLegalHoldRequest()=default
bool KeyHasBeenSet() const
ChecksumAlgorithm GetChecksumAlgorithm() const
void SetVersionId(VersionIdT &&value)
PutObjectLegalHoldRequest & WithChecksumAlgorithm(ChecksumAlgorithm value)
PutObjectLegalHoldRequest & WithVersionId(VersionIdT &&value)
bool LegalHoldHasBeenSet() const
const Aws::String & GetContentMD5() const
bool CustomizedAccessLogTagHasBeenSet() 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