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/RequestPayer.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
69 template<
typename BucketT = Aws::String>
70 void SetBucket(BucketT&& value) { m_bucketHasBeenSet =
true; m_bucket = std::forward<BucketT>(value); }
71 template<
typename BucketT = Aws::String>
82 template<
typename KeyT = Aws::String>
83 void SetKey(KeyT&& value) { m_keyHasBeenSet =
true; m_key = std::forward<KeyT>(value); }
84 template<
typename KeyT = Aws::String>
95 template<
typename VersionIdT = Aws::String>
96 void SetVersionId(VersionIdT&& value) { m_versionIdHasBeenSet =
true; m_versionId = std::forward<VersionIdT>(value); }
97 template<
typename VersionIdT = Aws::String>
117 template<
typename ExpectedBucketOwnerT = Aws::String>
118 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) { m_expectedBucketOwnerHasBeenSet =
true; m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value); }
119 template<
typename ExpectedBucketOwnerT = Aws::String>
127 template<
typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
128 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) { m_customizedAccessLogTagHasBeenSet =
true; m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value); }
129 template<
typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
131 template<
typename CustomizedAccessLogTagKeyT = Aws::String,
typename CustomizedAccessLogTagValueT = Aws::String>
133 m_customizedAccessLogTagHasBeenSet =
true; m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
return *
this;
139 bool m_bucketHasBeenSet =
false;
142 bool m_keyHasBeenSet =
false;
145 bool m_versionIdHasBeenSet =
false;
148 bool m_requestPayerHasBeenSet =
false;
151 bool m_expectedBucketOwnerHasBeenSet =
false;
154 bool m_customizedAccessLogTagHasBeenSet =
false;
void SetCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
const Aws::String & GetExpectedBucketOwner() const
bool BucketHasBeenSet() const
AWS_S3_API GetObjectRetentionRequest()=default
GetObjectRetentionRequest & WithBucket(BucketT &&value)
void SetExpectedBucketOwner(ExpectedBucketOwnerT &&value)
void SetVersionId(VersionIdT &&value)
bool RequestPayerHasBeenSet() const
bool VersionIdHasBeenSet() const
const Aws::String & GetKey() const
void SetRequestPayer(RequestPayer value)
virtual const char * GetServiceRequestName() const override
GetObjectRetentionRequest & WithVersionId(VersionIdT &&value)
void SetKey(KeyT &&value)
RequestPayer GetRequestPayer() const
GetObjectRetentionRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
const Aws::String & GetVersionId() const
bool ExpectedBucketOwnerHasBeenSet() const
GetObjectRetentionRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
const Aws::String & GetBucket() const
GetObjectRetentionRequest & WithRequestPayer(RequestPayer value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetObjectRetentionRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
GetObjectRetentionRequest & WithKey(KeyT &&value)
bool CustomizedAccessLogTagHasBeenSet() const
bool KeyHasBeenSet() const
void SetBucket(BucketT &&value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_S3_API Aws::String SerializePayload() const override
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