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/ObjectLockConfiguration.h>
13#include <aws/s3/model/RequestPayer.h>
57 template <
typename BucketT = Aws::String>
59 m_bucketHasBeenSet =
true;
60 m_bucket = std::forward<BucketT>(value);
62 template <
typename BucketT = Aws::String>
76 template <
typename ObjectLockConfigurationT = ObjectLockConfiguration>
78 m_objectLockConfigurationHasBeenSet =
true;
79 m_objectLockConfiguration = std::forward<ObjectLockConfigurationT>(value);
81 template <
typename ObjectLockConfigurationT = ObjectLockConfiguration>
93 m_requestPayerHasBeenSet =
true;
94 m_requestPayer = value;
108 template <
typename TokenT = Aws::String>
110 m_tokenHasBeenSet =
true;
111 m_token = std::forward<TokenT>(value);
113 template <
typename TokenT = Aws::String>
115 SetToken(std::forward<TokenT>(value));
128 template <
typename ContentMD5T = Aws::String>
130 m_contentMD5HasBeenSet =
true;
131 m_contentMD5 = std::forward<ContentMD5T>(value);
133 template <
typename ContentMD5T = Aws::String>
156 m_checksumAlgorithmHasBeenSet =
true;
157 m_checksumAlgorithm = value;
173 template <
typename ExpectedBucketOwnerT = Aws::String>
175 m_expectedBucketOwnerHasBeenSet =
true;
176 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
178 template <
typename ExpectedBucketOwnerT = Aws::String>
189 template <
typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
191 m_customizedAccessLogTagHasBeenSet =
true;
192 m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value);
194 template <
typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
199 template <
typename CustomizedAccessLogTagKeyT = Aws::String,
typename CustomizedAccessLogTagValueT = Aws::String>
201 m_customizedAccessLogTagHasBeenSet =
true;
202 m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
208 bool m_bucketHasBeenSet =
false;
211 bool m_objectLockConfigurationHasBeenSet =
false;
214 bool m_requestPayerHasBeenSet =
false;
217 bool m_tokenHasBeenSet =
false;
220 bool m_contentMD5HasBeenSet =
false;
223 bool m_checksumAlgorithmHasBeenSet =
false;
226 bool m_expectedBucketOwnerHasBeenSet =
false;
229 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