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/ObjectLockConfiguration.h>
11#include <aws/s3/model/RequestPayer.h>
12#include <aws/s3/model/ChecksumAlgorithm.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
61 template<
typename BucketT = Aws::String>
62 void SetBucket(BucketT&& value) { m_bucketHasBeenSet =
true; m_bucket = std::forward<BucketT>(value); }
63 template<
typename BucketT = Aws::String>
74 template<
typename ObjectLockConfigurationT = ObjectLockConfiguration>
75 void SetObjectLockConfiguration(ObjectLockConfigurationT&& value) { m_objectLockConfigurationHasBeenSet =
true; m_objectLockConfiguration = std::forward<ObjectLockConfigurationT>(value); }
76 template<
typename ObjectLockConfigurationT = ObjectLockConfiguration>
94 template<
typename TokenT = Aws::String>
95 void SetToken(TokenT&& value) { m_tokenHasBeenSet =
true; m_token = std::forward<TokenT>(value); }
96 template<
typename TokenT = Aws::String>
108 template<
typename ContentMD5T = Aws::String>
109 void SetContentMD5(ContentMD5T&& value) { m_contentMD5HasBeenSet =
true; m_contentMD5 = std::forward<ContentMD5T>(value); }
110 template<
typename ContentMD5T = Aws::String>
141 template<
typename ExpectedBucketOwnerT = Aws::String>
142 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) { m_expectedBucketOwnerHasBeenSet =
true; m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value); }
143 template<
typename ExpectedBucketOwnerT = Aws::String>
151 template<
typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
152 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) { m_customizedAccessLogTagHasBeenSet =
true; m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value); }
153 template<
typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
155 template<
typename CustomizedAccessLogTagKeyT = Aws::String,
typename CustomizedAccessLogTagValueT = Aws::String>
157 m_customizedAccessLogTagHasBeenSet =
true; m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
return *
this;
163 bool m_bucketHasBeenSet =
false;
166 bool m_objectLockConfigurationHasBeenSet =
false;
169 bool m_requestPayerHasBeenSet =
false;
172 bool m_tokenHasBeenSet =
false;
175 bool m_contentMD5HasBeenSet =
false;
178 bool m_checksumAlgorithmHasBeenSet =
false;
181 bool m_expectedBucketOwnerHasBeenSet =
false;
184 bool m_customizedAccessLogTagHasBeenSet =
false;
bool TokenHasBeenSet() const
PutObjectLockConfigurationRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
bool ContentMD5HasBeenSet() const
PutObjectLockConfigurationRequest & WithBucket(BucketT &&value)
PutObjectLockConfigurationRequest & WithChecksumAlgorithm(ChecksumAlgorithm value)
const ObjectLockConfiguration & GetObjectLockConfiguration() const
bool CustomizedAccessLogTagHasBeenSet() const
const Aws::String & GetBucket() const
bool BucketHasBeenSet() const
const Aws::String & GetToken() const
PutObjectLockConfigurationRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
RequestPayer GetRequestPayer() const
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
bool RequestPayerHasBeenSet() const
void SetExpectedBucketOwner(ExpectedBucketOwnerT &&value)
ChecksumAlgorithm GetChecksumAlgorithm() const
PutObjectLockConfigurationRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
AWS_S3_API Aws::String GetChecksumAlgorithmName() const override
bool ExpectedBucketOwnerHasBeenSet() const
virtual const char * GetServiceRequestName() const override
const Aws::String & GetExpectedBucketOwner() const
bool ChecksumAlgorithmHasBeenSet() const
void SetChecksumAlgorithm(ChecksumAlgorithm value)
void SetObjectLockConfiguration(ObjectLockConfigurationT &&value)
AWS_S3_API Aws::String SerializePayload() const override
void SetRequestPayer(RequestPayer value)
void SetContentMD5(ContentMD5T &&value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
bool RequestChecksumRequired() const override
void SetToken(TokenT &&value)
PutObjectLockConfigurationRequest & WithToken(TokenT &&value)
bool ObjectLockConfigurationHasBeenSet() const
PutObjectLockConfigurationRequest & WithObjectLockConfiguration(ObjectLockConfigurationT &&value)
PutObjectLockConfigurationRequest & WithContentMD5(ContentMD5T &&value)
const Aws::String & GetContentMD5() const
AWS_S3_API PutObjectLockConfigurationRequest()=default
void SetCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutObjectLockConfigurationRequest & WithRequestPayer(RequestPayer value)
AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
void SetBucket(BucketT &&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