/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace S3 { namespace Model { /** */ class AWS_S3_API WriteGetObjectResponseRequest : public StreamingS3Request { public: WriteGetObjectResponseRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "WriteGetObjectResponse"; } void AddQueryStringParameters(Aws::Http::URI& uri) const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; bool SignBody() const override { return false; } bool IsChunked() const override { return true; } /** *

Route prefix to the HTTP URL generated.

*/ inline const Aws::String& GetRequestRoute() const{ return m_requestRoute; } /** *

Route prefix to the HTTP URL generated.

*/ inline bool RequestRouteHasBeenSet() const { return m_requestRouteHasBeenSet; } /** *

Route prefix to the HTTP URL generated.

*/ inline void SetRequestRoute(const Aws::String& value) { m_requestRouteHasBeenSet = true; m_requestRoute = value; } /** *

Route prefix to the HTTP URL generated.

*/ inline void SetRequestRoute(Aws::String&& value) { m_requestRouteHasBeenSet = true; m_requestRoute = std::move(value); } /** *

Route prefix to the HTTP URL generated.

*/ inline void SetRequestRoute(const char* value) { m_requestRouteHasBeenSet = true; m_requestRoute.assign(value); } /** *

Route prefix to the HTTP URL generated.

*/ inline WriteGetObjectResponseRequest& WithRequestRoute(const Aws::String& value) { SetRequestRoute(value); return *this;} /** *

Route prefix to the HTTP URL generated.

*/ inline WriteGetObjectResponseRequest& WithRequestRoute(Aws::String&& value) { SetRequestRoute(std::move(value)); return *this;} /** *

Route prefix to the HTTP URL generated.

*/ inline WriteGetObjectResponseRequest& WithRequestRoute(const char* value) { SetRequestRoute(value); return *this;} /** *

A single use encrypted token that maps WriteGetObjectResponse to * the end user GetObject request.

*/ inline const Aws::String& GetRequestToken() const{ return m_requestToken; } /** *

A single use encrypted token that maps WriteGetObjectResponse to * the end user GetObject request.

*/ inline bool RequestTokenHasBeenSet() const { return m_requestTokenHasBeenSet; } /** *

A single use encrypted token that maps WriteGetObjectResponse to * the end user GetObject request.

*/ inline void SetRequestToken(const Aws::String& value) { m_requestTokenHasBeenSet = true; m_requestToken = value; } /** *

A single use encrypted token that maps WriteGetObjectResponse to * the end user GetObject request.

*/ inline void SetRequestToken(Aws::String&& value) { m_requestTokenHasBeenSet = true; m_requestToken = std::move(value); } /** *

A single use encrypted token that maps WriteGetObjectResponse to * the end user GetObject request.

*/ inline void SetRequestToken(const char* value) { m_requestTokenHasBeenSet = true; m_requestToken.assign(value); } /** *

A single use encrypted token that maps WriteGetObjectResponse to * the end user GetObject request.

*/ inline WriteGetObjectResponseRequest& WithRequestToken(const Aws::String& value) { SetRequestToken(value); return *this;} /** *

A single use encrypted token that maps WriteGetObjectResponse to * the end user GetObject request.

*/ inline WriteGetObjectResponseRequest& WithRequestToken(Aws::String&& value) { SetRequestToken(std::move(value)); return *this;} /** *

A single use encrypted token that maps WriteGetObjectResponse to * the end user GetObject request.

*/ inline WriteGetObjectResponseRequest& WithRequestToken(const char* value) { SetRequestToken(value); return *this;} /** *

The integer status code for an HTTP response of a corresponding * GetObject request.

Status Codes

*
  • 200 - OK

  • 206 - Partial Content *

  • 304 - Not Modified

  • 400 - Bad * Request

  • 401 - Unauthorized

  • * 403 - Forbidden

  • 404 - Not Found

  • *
  • 405 - Method Not Allowed

  • 409 - * Conflict

  • 411 - Length Required

  • *

    412 - Precondition Failed

  • 416 - Range Not * Satisfiable

  • 500 - Internal Server Error

    *
  • 503 - Service Unavailable

*/ inline int GetStatusCode() const{ return m_statusCode; } /** *

The integer status code for an HTTP response of a corresponding * GetObject request.

Status Codes

*
  • 200 - OK

  • 206 - Partial Content *

  • 304 - Not Modified

  • 400 - Bad * Request

  • 401 - Unauthorized

  • * 403 - Forbidden

  • 404 - Not Found

  • *
  • 405 - Method Not Allowed

  • 409 - * Conflict

  • 411 - Length Required

  • *

    412 - Precondition Failed

  • 416 - Range Not * Satisfiable

  • 500 - Internal Server Error

    *
  • 503 - Service Unavailable

*/ inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; } /** *

The integer status code for an HTTP response of a corresponding * GetObject request.

Status Codes

*
  • 200 - OK

  • 206 - Partial Content *

  • 304 - Not Modified

  • 400 - Bad * Request

  • 401 - Unauthorized

  • * 403 - Forbidden

  • 404 - Not Found

  • *
  • 405 - Method Not Allowed

  • 409 - * Conflict

  • 411 - Length Required

  • *

    412 - Precondition Failed

  • 416 - Range Not * Satisfiable

  • 500 - Internal Server Error

    *
  • 503 - Service Unavailable

*/ inline void SetStatusCode(int value) { m_statusCodeHasBeenSet = true; m_statusCode = value; } /** *

The integer status code for an HTTP response of a corresponding * GetObject request.

Status Codes

*
  • 200 - OK

  • 206 - Partial Content *

  • 304 - Not Modified

  • 400 - Bad * Request

  • 401 - Unauthorized

  • * 403 - Forbidden

  • 404 - Not Found

  • *
  • 405 - Method Not Allowed

  • 409 - * Conflict

  • 411 - Length Required

  • *

    412 - Precondition Failed

  • 416 - Range Not * Satisfiable

  • 500 - Internal Server Error

    *
  • 503 - Service Unavailable

*/ inline WriteGetObjectResponseRequest& WithStatusCode(int value) { SetStatusCode(value); return *this;} /** *

A string that uniquely identifies an error condition. Returned in the * <Code> tag of the error XML response for a corresponding * GetObject call. Cannot be used with a successful * StatusCode header or when the transformed object is provided in the * body. All error codes from S3 are sentence-cased. Regex value is * "^[A-Z][a-zA-Z]+$".

*/ inline const Aws::String& GetErrorCode() const{ return m_errorCode; } /** *

A string that uniquely identifies an error condition. Returned in the * <Code> tag of the error XML response for a corresponding * GetObject call. Cannot be used with a successful * StatusCode header or when the transformed object is provided in the * body. All error codes from S3 are sentence-cased. Regex value is * "^[A-Z][a-zA-Z]+$".

*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *

A string that uniquely identifies an error condition. Returned in the * <Code> tag of the error XML response for a corresponding * GetObject call. Cannot be used with a successful * StatusCode header or when the transformed object is provided in the * body. All error codes from S3 are sentence-cased. Regex value is * "^[A-Z][a-zA-Z]+$".

*/ inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *

A string that uniquely identifies an error condition. Returned in the * <Code> tag of the error XML response for a corresponding * GetObject call. Cannot be used with a successful * StatusCode header or when the transformed object is provided in the * body. All error codes from S3 are sentence-cased. Regex value is * "^[A-Z][a-zA-Z]+$".

*/ inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** *

A string that uniquely identifies an error condition. Returned in the * <Code> tag of the error XML response for a corresponding * GetObject call. Cannot be used with a successful * StatusCode header or when the transformed object is provided in the * body. All error codes from S3 are sentence-cased. Regex value is * "^[A-Z][a-zA-Z]+$".

*/ inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); } /** *

A string that uniquely identifies an error condition. Returned in the * <Code> tag of the error XML response for a corresponding * GetObject call. Cannot be used with a successful * StatusCode header or when the transformed object is provided in the * body. All error codes from S3 are sentence-cased. Regex value is * "^[A-Z][a-zA-Z]+$".

*/ inline WriteGetObjectResponseRequest& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;} /** *

A string that uniquely identifies an error condition. Returned in the * <Code> tag of the error XML response for a corresponding * GetObject call. Cannot be used with a successful * StatusCode header or when the transformed object is provided in the * body. All error codes from S3 are sentence-cased. Regex value is * "^[A-Z][a-zA-Z]+$".

*/ inline WriteGetObjectResponseRequest& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;} /** *

A string that uniquely identifies an error condition. Returned in the * <Code> tag of the error XML response for a corresponding * GetObject call. Cannot be used with a successful * StatusCode header or when the transformed object is provided in the * body. All error codes from S3 are sentence-cased. Regex value is * "^[A-Z][a-zA-Z]+$".

*/ inline WriteGetObjectResponseRequest& WithErrorCode(const char* value) { SetErrorCode(value); return *this;} /** *

Contains a generic description of the error condition. Returned in the * <Message> tag of the error XML response for a corresponding * GetObject call. Cannot be used with a successful * StatusCode header or when the transformed object is provided in * body.

*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *

Contains a generic description of the error condition. Returned in the * <Message> tag of the error XML response for a corresponding * GetObject call. Cannot be used with a successful * StatusCode header or when the transformed object is provided in * body.

*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *

Contains a generic description of the error condition. Returned in the * <Message> tag of the error XML response for a corresponding * GetObject call. Cannot be used with a successful * StatusCode header or when the transformed object is provided in * body.

*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *

Contains a generic description of the error condition. Returned in the * <Message> tag of the error XML response for a corresponding * GetObject call. Cannot be used with a successful * StatusCode header or when the transformed object is provided in * body.

*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *

Contains a generic description of the error condition. Returned in the * <Message> tag of the error XML response for a corresponding * GetObject call. Cannot be used with a successful * StatusCode header or when the transformed object is provided in * body.

*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *

Contains a generic description of the error condition. Returned in the * <Message> tag of the error XML response for a corresponding * GetObject call. Cannot be used with a successful * StatusCode header or when the transformed object is provided in * body.

*/ inline WriteGetObjectResponseRequest& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *

Contains a generic description of the error condition. Returned in the * <Message> tag of the error XML response for a corresponding * GetObject call. Cannot be used with a successful * StatusCode header or when the transformed object is provided in * body.

*/ inline WriteGetObjectResponseRequest& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *

Contains a generic description of the error condition. Returned in the * <Message> tag of the error XML response for a corresponding * GetObject call. Cannot be used with a successful * StatusCode header or when the transformed object is provided in * body.

*/ inline WriteGetObjectResponseRequest& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} /** *

Indicates that a range of bytes was specified.

*/ inline const Aws::String& GetAcceptRanges() const{ return m_acceptRanges; } /** *

Indicates that a range of bytes was specified.

*/ inline bool AcceptRangesHasBeenSet() const { return m_acceptRangesHasBeenSet; } /** *

Indicates that a range of bytes was specified.

*/ inline void SetAcceptRanges(const Aws::String& value) { m_acceptRangesHasBeenSet = true; m_acceptRanges = value; } /** *

Indicates that a range of bytes was specified.

*/ inline void SetAcceptRanges(Aws::String&& value) { m_acceptRangesHasBeenSet = true; m_acceptRanges = std::move(value); } /** *

Indicates that a range of bytes was specified.

*/ inline void SetAcceptRanges(const char* value) { m_acceptRangesHasBeenSet = true; m_acceptRanges.assign(value); } /** *

Indicates that a range of bytes was specified.

*/ inline WriteGetObjectResponseRequest& WithAcceptRanges(const Aws::String& value) { SetAcceptRanges(value); return *this;} /** *

Indicates that a range of bytes was specified.

*/ inline WriteGetObjectResponseRequest& WithAcceptRanges(Aws::String&& value) { SetAcceptRanges(std::move(value)); return *this;} /** *

Indicates that a range of bytes was specified.

*/ inline WriteGetObjectResponseRequest& WithAcceptRanges(const char* value) { SetAcceptRanges(value); return *this;} /** *

Specifies caching behavior along the request/reply chain.

*/ inline const Aws::String& GetCacheControl() const{ return m_cacheControl; } /** *

Specifies caching behavior along the request/reply chain.

*/ inline bool CacheControlHasBeenSet() const { return m_cacheControlHasBeenSet; } /** *

Specifies caching behavior along the request/reply chain.

*/ inline void SetCacheControl(const Aws::String& value) { m_cacheControlHasBeenSet = true; m_cacheControl = value; } /** *

Specifies caching behavior along the request/reply chain.

*/ inline void SetCacheControl(Aws::String&& value) { m_cacheControlHasBeenSet = true; m_cacheControl = std::move(value); } /** *

Specifies caching behavior along the request/reply chain.

*/ inline void SetCacheControl(const char* value) { m_cacheControlHasBeenSet = true; m_cacheControl.assign(value); } /** *

Specifies caching behavior along the request/reply chain.

*/ inline WriteGetObjectResponseRequest& WithCacheControl(const Aws::String& value) { SetCacheControl(value); return *this;} /** *

Specifies caching behavior along the request/reply chain.

*/ inline WriteGetObjectResponseRequest& WithCacheControl(Aws::String&& value) { SetCacheControl(std::move(value)); return *this;} /** *

Specifies caching behavior along the request/reply chain.

*/ inline WriteGetObjectResponseRequest& WithCacheControl(const char* value) { SetCacheControl(value); return *this;} /** *

Specifies presentational information for the object.

*/ inline const Aws::String& GetContentDisposition() const{ return m_contentDisposition; } /** *

Specifies presentational information for the object.

*/ inline bool ContentDispositionHasBeenSet() const { return m_contentDispositionHasBeenSet; } /** *

Specifies presentational information for the object.

*/ inline void SetContentDisposition(const Aws::String& value) { m_contentDispositionHasBeenSet = true; m_contentDisposition = value; } /** *

Specifies presentational information for the object.

*/ inline void SetContentDisposition(Aws::String&& value) { m_contentDispositionHasBeenSet = true; m_contentDisposition = std::move(value); } /** *

Specifies presentational information for the object.

*/ inline void SetContentDisposition(const char* value) { m_contentDispositionHasBeenSet = true; m_contentDisposition.assign(value); } /** *

Specifies presentational information for the object.

*/ inline WriteGetObjectResponseRequest& WithContentDisposition(const Aws::String& value) { SetContentDisposition(value); return *this;} /** *

Specifies presentational information for the object.

*/ inline WriteGetObjectResponseRequest& WithContentDisposition(Aws::String&& value) { SetContentDisposition(std::move(value)); return *this;} /** *

Specifies presentational information for the object.

*/ inline WriteGetObjectResponseRequest& WithContentDisposition(const char* value) { SetContentDisposition(value); return *this;} /** *

Specifies what content encodings have been applied to the object and thus * what decoding mechanisms must be applied to obtain the media-type referenced by * the Content-Type header field.

*/ inline const Aws::String& GetContentEncoding() const{ return m_contentEncoding; } /** *

Specifies what content encodings have been applied to the object and thus * what decoding mechanisms must be applied to obtain the media-type referenced by * the Content-Type header field.

*/ inline bool ContentEncodingHasBeenSet() const { return m_contentEncodingHasBeenSet; } /** *

Specifies what content encodings have been applied to the object and thus * what decoding mechanisms must be applied to obtain the media-type referenced by * the Content-Type header field.

*/ inline void SetContentEncoding(const Aws::String& value) { m_contentEncodingHasBeenSet = true; m_contentEncoding = value; } /** *

Specifies what content encodings have been applied to the object and thus * what decoding mechanisms must be applied to obtain the media-type referenced by * the Content-Type header field.

*/ inline void SetContentEncoding(Aws::String&& value) { m_contentEncodingHasBeenSet = true; m_contentEncoding = std::move(value); } /** *

Specifies what content encodings have been applied to the object and thus * what decoding mechanisms must be applied to obtain the media-type referenced by * the Content-Type header field.

*/ inline void SetContentEncoding(const char* value) { m_contentEncodingHasBeenSet = true; m_contentEncoding.assign(value); } /** *

Specifies what content encodings have been applied to the object and thus * what decoding mechanisms must be applied to obtain the media-type referenced by * the Content-Type header field.

*/ inline WriteGetObjectResponseRequest& WithContentEncoding(const Aws::String& value) { SetContentEncoding(value); return *this;} /** *

Specifies what content encodings have been applied to the object and thus * what decoding mechanisms must be applied to obtain the media-type referenced by * the Content-Type header field.

*/ inline WriteGetObjectResponseRequest& WithContentEncoding(Aws::String&& value) { SetContentEncoding(std::move(value)); return *this;} /** *

Specifies what content encodings have been applied to the object and thus * what decoding mechanisms must be applied to obtain the media-type referenced by * the Content-Type header field.

*/ inline WriteGetObjectResponseRequest& WithContentEncoding(const char* value) { SetContentEncoding(value); return *this;} /** *

The language the content is in.

*/ inline const Aws::String& GetContentLanguage() const{ return m_contentLanguage; } /** *

The language the content is in.

*/ inline bool ContentLanguageHasBeenSet() const { return m_contentLanguageHasBeenSet; } /** *

The language the content is in.

*/ inline void SetContentLanguage(const Aws::String& value) { m_contentLanguageHasBeenSet = true; m_contentLanguage = value; } /** *

The language the content is in.

*/ inline void SetContentLanguage(Aws::String&& value) { m_contentLanguageHasBeenSet = true; m_contentLanguage = std::move(value); } /** *

The language the content is in.

*/ inline void SetContentLanguage(const char* value) { m_contentLanguageHasBeenSet = true; m_contentLanguage.assign(value); } /** *

The language the content is in.

*/ inline WriteGetObjectResponseRequest& WithContentLanguage(const Aws::String& value) { SetContentLanguage(value); return *this;} /** *

The language the content is in.

*/ inline WriteGetObjectResponseRequest& WithContentLanguage(Aws::String&& value) { SetContentLanguage(std::move(value)); return *this;} /** *

The language the content is in.

*/ inline WriteGetObjectResponseRequest& WithContentLanguage(const char* value) { SetContentLanguage(value); return *this;} /** *

The size of the content body in bytes.

*/ inline long long GetContentLength() const{ return m_contentLength; } /** *

The size of the content body in bytes.

*/ inline bool ContentLengthHasBeenSet() const { return m_contentLengthHasBeenSet; } /** *

The size of the content body in bytes.

*/ inline void SetContentLength(long long value) { m_contentLengthHasBeenSet = true; m_contentLength = value; } /** *

The size of the content body in bytes.

*/ inline WriteGetObjectResponseRequest& WithContentLength(long long value) { SetContentLength(value); return *this;} /** *

The portion of the object returned in the response.

*/ inline const Aws::String& GetContentRange() const{ return m_contentRange; } /** *

The portion of the object returned in the response.

*/ inline bool ContentRangeHasBeenSet() const { return m_contentRangeHasBeenSet; } /** *

The portion of the object returned in the response.

*/ inline void SetContentRange(const Aws::String& value) { m_contentRangeHasBeenSet = true; m_contentRange = value; } /** *

The portion of the object returned in the response.

*/ inline void SetContentRange(Aws::String&& value) { m_contentRangeHasBeenSet = true; m_contentRange = std::move(value); } /** *

The portion of the object returned in the response.

*/ inline void SetContentRange(const char* value) { m_contentRangeHasBeenSet = true; m_contentRange.assign(value); } /** *

The portion of the object returned in the response.

*/ inline WriteGetObjectResponseRequest& WithContentRange(const Aws::String& value) { SetContentRange(value); return *this;} /** *

The portion of the object returned in the response.

*/ inline WriteGetObjectResponseRequest& WithContentRange(Aws::String&& value) { SetContentRange(std::move(value)); return *this;} /** *

The portion of the object returned in the response.

*/ inline WriteGetObjectResponseRequest& WithContentRange(const char* value) { SetContentRange(value); return *this;} /** *

Specifies whether an object stored in Amazon S3 is (true) or is * not (false) a delete marker.

*/ inline bool GetDeleteMarker() const{ return m_deleteMarker; } /** *

Specifies whether an object stored in Amazon S3 is (true) or is * not (false) a delete marker.

*/ inline bool DeleteMarkerHasBeenSet() const { return m_deleteMarkerHasBeenSet; } /** *

Specifies whether an object stored in Amazon S3 is (true) or is * not (false) a delete marker.

*/ inline void SetDeleteMarker(bool value) { m_deleteMarkerHasBeenSet = true; m_deleteMarker = value; } /** *

Specifies whether an object stored in Amazon S3 is (true) or is * not (false) a delete marker.

*/ inline WriteGetObjectResponseRequest& WithDeleteMarker(bool value) { SetDeleteMarker(value); return *this;} /** *

An opaque identifier assigned by a web server to a specific version of a * resource found at a URL.

*/ inline const Aws::String& GetETag() const{ return m_eTag; } /** *

An opaque identifier assigned by a web server to a specific version of a * resource found at a URL.

*/ inline bool ETagHasBeenSet() const { return m_eTagHasBeenSet; } /** *

An opaque identifier assigned by a web server to a specific version of a * resource found at a URL.

*/ inline void SetETag(const Aws::String& value) { m_eTagHasBeenSet = true; m_eTag = value; } /** *

An opaque identifier assigned by a web server to a specific version of a * resource found at a URL.

*/ inline void SetETag(Aws::String&& value) { m_eTagHasBeenSet = true; m_eTag = std::move(value); } /** *

An opaque identifier assigned by a web server to a specific version of a * resource found at a URL.

*/ inline void SetETag(const char* value) { m_eTagHasBeenSet = true; m_eTag.assign(value); } /** *

An opaque identifier assigned by a web server to a specific version of a * resource found at a URL.

*/ inline WriteGetObjectResponseRequest& WithETag(const Aws::String& value) { SetETag(value); return *this;} /** *

An opaque identifier assigned by a web server to a specific version of a * resource found at a URL.

*/ inline WriteGetObjectResponseRequest& WithETag(Aws::String&& value) { SetETag(std::move(value)); return *this;} /** *

An opaque identifier assigned by a web server to a specific version of a * resource found at a URL.

*/ inline WriteGetObjectResponseRequest& WithETag(const char* value) { SetETag(value); return *this;} /** *

The date and time at which the object is no longer cacheable.

*/ inline const Aws::Utils::DateTime& GetExpires() const{ return m_expires; } /** *

The date and time at which the object is no longer cacheable.

*/ inline bool ExpiresHasBeenSet() const { return m_expiresHasBeenSet; } /** *

The date and time at which the object is no longer cacheable.

*/ inline void SetExpires(const Aws::Utils::DateTime& value) { m_expiresHasBeenSet = true; m_expires = value; } /** *

The date and time at which the object is no longer cacheable.

*/ inline void SetExpires(Aws::Utils::DateTime&& value) { m_expiresHasBeenSet = true; m_expires = std::move(value); } /** *

The date and time at which the object is no longer cacheable.

*/ inline WriteGetObjectResponseRequest& WithExpires(const Aws::Utils::DateTime& value) { SetExpires(value); return *this;} /** *

The date and time at which the object is no longer cacheable.

*/ inline WriteGetObjectResponseRequest& WithExpires(Aws::Utils::DateTime&& value) { SetExpires(std::move(value)); return *this;} /** *

If object stored in Amazon S3 expiration is configured (see PUT Bucket * lifecycle) it includes expiry-date and rule-id key-value pairs providing object * expiration information. The value of the rule-id is URL encoded.

*/ inline const Aws::String& GetExpiration() const{ return m_expiration; } /** *

If object stored in Amazon S3 expiration is configured (see PUT Bucket * lifecycle) it includes expiry-date and rule-id key-value pairs providing object * expiration information. The value of the rule-id is URL encoded.

*/ inline bool ExpirationHasBeenSet() const { return m_expirationHasBeenSet; } /** *

If object stored in Amazon S3 expiration is configured (see PUT Bucket * lifecycle) it includes expiry-date and rule-id key-value pairs providing object * expiration information. The value of the rule-id is URL encoded.

*/ inline void SetExpiration(const Aws::String& value) { m_expirationHasBeenSet = true; m_expiration = value; } /** *

If object stored in Amazon S3 expiration is configured (see PUT Bucket * lifecycle) it includes expiry-date and rule-id key-value pairs providing object * expiration information. The value of the rule-id is URL encoded.

*/ inline void SetExpiration(Aws::String&& value) { m_expirationHasBeenSet = true; m_expiration = std::move(value); } /** *

If object stored in Amazon S3 expiration is configured (see PUT Bucket * lifecycle) it includes expiry-date and rule-id key-value pairs providing object * expiration information. The value of the rule-id is URL encoded.

*/ inline void SetExpiration(const char* value) { m_expirationHasBeenSet = true; m_expiration.assign(value); } /** *

If object stored in Amazon S3 expiration is configured (see PUT Bucket * lifecycle) it includes expiry-date and rule-id key-value pairs providing object * expiration information. The value of the rule-id is URL encoded.

*/ inline WriteGetObjectResponseRequest& WithExpiration(const Aws::String& value) { SetExpiration(value); return *this;} /** *

If object stored in Amazon S3 expiration is configured (see PUT Bucket * lifecycle) it includes expiry-date and rule-id key-value pairs providing object * expiration information. The value of the rule-id is URL encoded.

*/ inline WriteGetObjectResponseRequest& WithExpiration(Aws::String&& value) { SetExpiration(std::move(value)); return *this;} /** *

If object stored in Amazon S3 expiration is configured (see PUT Bucket * lifecycle) it includes expiry-date and rule-id key-value pairs providing object * expiration information. The value of the rule-id is URL encoded.

*/ inline WriteGetObjectResponseRequest& WithExpiration(const char* value) { SetExpiration(value); return *this;} /** *

The date and time that the object was last modified.

*/ inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; } /** *

The date and time that the object was last modified.

*/ inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; } /** *

The date and time that the object was last modified.

*/ inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModifiedHasBeenSet = true; m_lastModified = value; } /** *

The date and time that the object was last modified.

*/ inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::move(value); } /** *

The date and time that the object was last modified.

*/ inline WriteGetObjectResponseRequest& WithLastModified(const Aws::Utils::DateTime& value) { SetLastModified(value); return *this;} /** *

The date and time that the object was last modified.

*/ inline WriteGetObjectResponseRequest& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(std::move(value)); return *this;} /** *

Set to the number of metadata entries not returned in x-amz-meta * headers. This can happen if you create metadata using an API like SOAP that * supports more flexible metadata than the REST API. For example, using SOAP, you * can create metadata whose values are not legal HTTP headers.

*/ inline int GetMissingMeta() const{ return m_missingMeta; } /** *

Set to the number of metadata entries not returned in x-amz-meta * headers. This can happen if you create metadata using an API like SOAP that * supports more flexible metadata than the REST API. For example, using SOAP, you * can create metadata whose values are not legal HTTP headers.

*/ inline bool MissingMetaHasBeenSet() const { return m_missingMetaHasBeenSet; } /** *

Set to the number of metadata entries not returned in x-amz-meta * headers. This can happen if you create metadata using an API like SOAP that * supports more flexible metadata than the REST API. For example, using SOAP, you * can create metadata whose values are not legal HTTP headers.

*/ inline void SetMissingMeta(int value) { m_missingMetaHasBeenSet = true; m_missingMeta = value; } /** *

Set to the number of metadata entries not returned in x-amz-meta * headers. This can happen if you create metadata using an API like SOAP that * supports more flexible metadata than the REST API. For example, using SOAP, you * can create metadata whose values are not legal HTTP headers.

*/ inline WriteGetObjectResponseRequest& WithMissingMeta(int value) { SetMissingMeta(value); return *this;} /** *

A map of metadata to store with the object in S3.

*/ inline const Aws::Map& GetMetadata() const{ return m_metadata; } /** *

A map of metadata to store with the object in S3.

*/ inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; } /** *

A map of metadata to store with the object in S3.

*/ inline void SetMetadata(const Aws::Map& value) { m_metadataHasBeenSet = true; m_metadata = value; } /** *

A map of metadata to store with the object in S3.

*/ inline void SetMetadata(Aws::Map&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); } /** *

A map of metadata to store with the object in S3.

*/ inline WriteGetObjectResponseRequest& WithMetadata(const Aws::Map& value) { SetMetadata(value); return *this;} /** *

A map of metadata to store with the object in S3.

*/ inline WriteGetObjectResponseRequest& WithMetadata(Aws::Map&& value) { SetMetadata(std::move(value)); return *this;} /** *

A map of metadata to store with the object in S3.

*/ inline WriteGetObjectResponseRequest& AddMetadata(const Aws::String& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; } /** *

A map of metadata to store with the object in S3.

*/ inline WriteGetObjectResponseRequest& AddMetadata(Aws::String&& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; } /** *

A map of metadata to store with the object in S3.

*/ inline WriteGetObjectResponseRequest& AddMetadata(const Aws::String& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; } /** *

A map of metadata to store with the object in S3.

*/ inline WriteGetObjectResponseRequest& AddMetadata(Aws::String&& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), std::move(value)); return *this; } /** *

A map of metadata to store with the object in S3.

*/ inline WriteGetObjectResponseRequest& AddMetadata(const char* key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; } /** *

A map of metadata to store with the object in S3.

*/ inline WriteGetObjectResponseRequest& AddMetadata(Aws::String&& key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; } /** *

A map of metadata to store with the object in S3.

*/ inline WriteGetObjectResponseRequest& AddMetadata(const char* key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; } /** *

Indicates whether an object stored in Amazon S3 has Object Lock enabled. For * more information about S3 Object Lock, see Object * Lock.

*/ inline const ObjectLockMode& GetObjectLockMode() const{ return m_objectLockMode; } /** *

Indicates whether an object stored in Amazon S3 has Object Lock enabled. For * more information about S3 Object Lock, see Object * Lock.

*/ inline bool ObjectLockModeHasBeenSet() const { return m_objectLockModeHasBeenSet; } /** *

Indicates whether an object stored in Amazon S3 has Object Lock enabled. For * more information about S3 Object Lock, see Object * Lock.

*/ inline void SetObjectLockMode(const ObjectLockMode& value) { m_objectLockModeHasBeenSet = true; m_objectLockMode = value; } /** *

Indicates whether an object stored in Amazon S3 has Object Lock enabled. For * more information about S3 Object Lock, see Object * Lock.

*/ inline void SetObjectLockMode(ObjectLockMode&& value) { m_objectLockModeHasBeenSet = true; m_objectLockMode = std::move(value); } /** *

Indicates whether an object stored in Amazon S3 has Object Lock enabled. For * more information about S3 Object Lock, see Object * Lock.

*/ inline WriteGetObjectResponseRequest& WithObjectLockMode(const ObjectLockMode& value) { SetObjectLockMode(value); return *this;} /** *

Indicates whether an object stored in Amazon S3 has Object Lock enabled. For * more information about S3 Object Lock, see Object * Lock.

*/ inline WriteGetObjectResponseRequest& WithObjectLockMode(ObjectLockMode&& value) { SetObjectLockMode(std::move(value)); return *this;} /** *

Indicates whether an object stored in Amazon S3 has an active legal hold.

*/ inline const ObjectLockLegalHoldStatus& GetObjectLockLegalHoldStatus() const{ return m_objectLockLegalHoldStatus; } /** *

Indicates whether an object stored in Amazon S3 has an active legal hold.

*/ inline bool ObjectLockLegalHoldStatusHasBeenSet() const { return m_objectLockLegalHoldStatusHasBeenSet; } /** *

Indicates whether an object stored in Amazon S3 has an active legal hold.

*/ inline void SetObjectLockLegalHoldStatus(const ObjectLockLegalHoldStatus& value) { m_objectLockLegalHoldStatusHasBeenSet = true; m_objectLockLegalHoldStatus = value; } /** *

Indicates whether an object stored in Amazon S3 has an active legal hold.

*/ inline void SetObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus&& value) { m_objectLockLegalHoldStatusHasBeenSet = true; m_objectLockLegalHoldStatus = std::move(value); } /** *

Indicates whether an object stored in Amazon S3 has an active legal hold.

*/ inline WriteGetObjectResponseRequest& WithObjectLockLegalHoldStatus(const ObjectLockLegalHoldStatus& value) { SetObjectLockLegalHoldStatus(value); return *this;} /** *

Indicates whether an object stored in Amazon S3 has an active legal hold.

*/ inline WriteGetObjectResponseRequest& WithObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus&& value) { SetObjectLockLegalHoldStatus(std::move(value)); return *this;} /** *

The date and time when Object Lock is configured to expire.

*/ inline const Aws::Utils::DateTime& GetObjectLockRetainUntilDate() const{ return m_objectLockRetainUntilDate; } /** *

The date and time when Object Lock is configured to expire.

*/ inline bool ObjectLockRetainUntilDateHasBeenSet() const { return m_objectLockRetainUntilDateHasBeenSet; } /** *

The date and time when Object Lock is configured to expire.

*/ inline void SetObjectLockRetainUntilDate(const Aws::Utils::DateTime& value) { m_objectLockRetainUntilDateHasBeenSet = true; m_objectLockRetainUntilDate = value; } /** *

The date and time when Object Lock is configured to expire.

*/ inline void SetObjectLockRetainUntilDate(Aws::Utils::DateTime&& value) { m_objectLockRetainUntilDateHasBeenSet = true; m_objectLockRetainUntilDate = std::move(value); } /** *

The date and time when Object Lock is configured to expire.

*/ inline WriteGetObjectResponseRequest& WithObjectLockRetainUntilDate(const Aws::Utils::DateTime& value) { SetObjectLockRetainUntilDate(value); return *this;} /** *

The date and time when Object Lock is configured to expire.

*/ inline WriteGetObjectResponseRequest& WithObjectLockRetainUntilDate(Aws::Utils::DateTime&& value) { SetObjectLockRetainUntilDate(std::move(value)); return *this;} /** *

The count of parts this object has.

*/ inline int GetPartsCount() const{ return m_partsCount; } /** *

The count of parts this object has.

*/ inline bool PartsCountHasBeenSet() const { return m_partsCountHasBeenSet; } /** *

The count of parts this object has.

*/ inline void SetPartsCount(int value) { m_partsCountHasBeenSet = true; m_partsCount = value; } /** *

The count of parts this object has.

*/ inline WriteGetObjectResponseRequest& WithPartsCount(int value) { SetPartsCount(value); return *this;} /** *

Indicates if request involves bucket that is either a source or destination * in a Replication rule. For more information about S3 Replication, see Replication.

*/ inline const ReplicationStatus& GetReplicationStatus() const{ return m_replicationStatus; } /** *

Indicates if request involves bucket that is either a source or destination * in a Replication rule. For more information about S3 Replication, see Replication.

*/ inline bool ReplicationStatusHasBeenSet() const { return m_replicationStatusHasBeenSet; } /** *

Indicates if request involves bucket that is either a source or destination * in a Replication rule. For more information about S3 Replication, see Replication.

*/ inline void SetReplicationStatus(const ReplicationStatus& value) { m_replicationStatusHasBeenSet = true; m_replicationStatus = value; } /** *

Indicates if request involves bucket that is either a source or destination * in a Replication rule. For more information about S3 Replication, see Replication.

*/ inline void SetReplicationStatus(ReplicationStatus&& value) { m_replicationStatusHasBeenSet = true; m_replicationStatus = std::move(value); } /** *

Indicates if request involves bucket that is either a source or destination * in a Replication rule. For more information about S3 Replication, see Replication.

*/ inline WriteGetObjectResponseRequest& WithReplicationStatus(const ReplicationStatus& value) { SetReplicationStatus(value); return *this;} /** *

Indicates if request involves bucket that is either a source or destination * in a Replication rule. For more information about S3 Replication, see Replication.

*/ inline WriteGetObjectResponseRequest& WithReplicationStatus(ReplicationStatus&& value) { SetReplicationStatus(std::move(value)); return *this;} inline const RequestCharged& GetRequestCharged() const{ return m_requestCharged; } inline bool RequestChargedHasBeenSet() const { return m_requestChargedHasBeenSet; } inline void SetRequestCharged(const RequestCharged& value) { m_requestChargedHasBeenSet = true; m_requestCharged = value; } inline void SetRequestCharged(RequestCharged&& value) { m_requestChargedHasBeenSet = true; m_requestCharged = std::move(value); } inline WriteGetObjectResponseRequest& WithRequestCharged(const RequestCharged& value) { SetRequestCharged(value); return *this;} inline WriteGetObjectResponseRequest& WithRequestCharged(RequestCharged&& value) { SetRequestCharged(std::move(value)); return *this;} /** *

Provides information about object restoration operation and expiration time * of the restored object copy.

*/ inline const Aws::String& GetRestore() const{ return m_restore; } /** *

Provides information about object restoration operation and expiration time * of the restored object copy.

*/ inline bool RestoreHasBeenSet() const { return m_restoreHasBeenSet; } /** *

Provides information about object restoration operation and expiration time * of the restored object copy.

*/ inline void SetRestore(const Aws::String& value) { m_restoreHasBeenSet = true; m_restore = value; } /** *

Provides information about object restoration operation and expiration time * of the restored object copy.

*/ inline void SetRestore(Aws::String&& value) { m_restoreHasBeenSet = true; m_restore = std::move(value); } /** *

Provides information about object restoration operation and expiration time * of the restored object copy.

*/ inline void SetRestore(const char* value) { m_restoreHasBeenSet = true; m_restore.assign(value); } /** *

Provides information about object restoration operation and expiration time * of the restored object copy.

*/ inline WriteGetObjectResponseRequest& WithRestore(const Aws::String& value) { SetRestore(value); return *this;} /** *

Provides information about object restoration operation and expiration time * of the restored object copy.

*/ inline WriteGetObjectResponseRequest& WithRestore(Aws::String&& value) { SetRestore(std::move(value)); return *this;} /** *

Provides information about object restoration operation and expiration time * of the restored object copy.

*/ inline WriteGetObjectResponseRequest& WithRestore(const char* value) { SetRestore(value); return *this;} /** *

The server-side encryption algorithm used when storing requested object in * Amazon S3 (for example, AES256, aws:kms).

*/ inline const ServerSideEncryption& GetServerSideEncryption() const{ return m_serverSideEncryption; } /** *

The server-side encryption algorithm used when storing requested object in * Amazon S3 (for example, AES256, aws:kms).

*/ inline bool ServerSideEncryptionHasBeenSet() const { return m_serverSideEncryptionHasBeenSet; } /** *

The server-side encryption algorithm used when storing requested object in * Amazon S3 (for example, AES256, aws:kms).

*/ inline void SetServerSideEncryption(const ServerSideEncryption& value) { m_serverSideEncryptionHasBeenSet = true; m_serverSideEncryption = value; } /** *

The server-side encryption algorithm used when storing requested object in * Amazon S3 (for example, AES256, aws:kms).

*/ inline void SetServerSideEncryption(ServerSideEncryption&& value) { m_serverSideEncryptionHasBeenSet = true; m_serverSideEncryption = std::move(value); } /** *

The server-side encryption algorithm used when storing requested object in * Amazon S3 (for example, AES256, aws:kms).

*/ inline WriteGetObjectResponseRequest& WithServerSideEncryption(const ServerSideEncryption& value) { SetServerSideEncryption(value); return *this;} /** *

The server-side encryption algorithm used when storing requested object in * Amazon S3 (for example, AES256, aws:kms).

*/ inline WriteGetObjectResponseRequest& WithServerSideEncryption(ServerSideEncryption&& value) { SetServerSideEncryption(std::move(value)); return *this;} /** *

Encryption algorithm used if server-side encryption with a customer-provided * encryption key was specified for object stored in Amazon S3.

*/ inline const Aws::String& GetSSECustomerAlgorithm() const{ return m_sSECustomerAlgorithm; } /** *

Encryption algorithm used if server-side encryption with a customer-provided * encryption key was specified for object stored in Amazon S3.

*/ inline bool SSECustomerAlgorithmHasBeenSet() const { return m_sSECustomerAlgorithmHasBeenSet; } /** *

Encryption algorithm used if server-side encryption with a customer-provided * encryption key was specified for object stored in Amazon S3.

*/ inline void SetSSECustomerAlgorithm(const Aws::String& value) { m_sSECustomerAlgorithmHasBeenSet = true; m_sSECustomerAlgorithm = value; } /** *

Encryption algorithm used if server-side encryption with a customer-provided * encryption key was specified for object stored in Amazon S3.

*/ inline void SetSSECustomerAlgorithm(Aws::String&& value) { m_sSECustomerAlgorithmHasBeenSet = true; m_sSECustomerAlgorithm = std::move(value); } /** *

Encryption algorithm used if server-side encryption with a customer-provided * encryption key was specified for object stored in Amazon S3.

*/ inline void SetSSECustomerAlgorithm(const char* value) { m_sSECustomerAlgorithmHasBeenSet = true; m_sSECustomerAlgorithm.assign(value); } /** *

Encryption algorithm used if server-side encryption with a customer-provided * encryption key was specified for object stored in Amazon S3.

*/ inline WriteGetObjectResponseRequest& WithSSECustomerAlgorithm(const Aws::String& value) { SetSSECustomerAlgorithm(value); return *this;} /** *

Encryption algorithm used if server-side encryption with a customer-provided * encryption key was specified for object stored in Amazon S3.

*/ inline WriteGetObjectResponseRequest& WithSSECustomerAlgorithm(Aws::String&& value) { SetSSECustomerAlgorithm(std::move(value)); return *this;} /** *

Encryption algorithm used if server-side encryption with a customer-provided * encryption key was specified for object stored in Amazon S3.

*/ inline WriteGetObjectResponseRequest& WithSSECustomerAlgorithm(const char* value) { SetSSECustomerAlgorithm(value); return *this;} /** *

If present, specifies the ID of the Amazon Web Services Key Management * Service (Amazon Web Services KMS) symmetric customer managed key that was used * for stored in Amazon S3 object.

*/ inline const Aws::String& GetSSEKMSKeyId() const{ return m_sSEKMSKeyId; } /** *

If present, specifies the ID of the Amazon Web Services Key Management * Service (Amazon Web Services KMS) symmetric customer managed key that was used * for stored in Amazon S3 object.

*/ inline bool SSEKMSKeyIdHasBeenSet() const { return m_sSEKMSKeyIdHasBeenSet; } /** *

If present, specifies the ID of the Amazon Web Services Key Management * Service (Amazon Web Services KMS) symmetric customer managed key that was used * for stored in Amazon S3 object.

*/ inline void SetSSEKMSKeyId(const Aws::String& value) { m_sSEKMSKeyIdHasBeenSet = true; m_sSEKMSKeyId = value; } /** *

If present, specifies the ID of the Amazon Web Services Key Management * Service (Amazon Web Services KMS) symmetric customer managed key that was used * for stored in Amazon S3 object.

*/ inline void SetSSEKMSKeyId(Aws::String&& value) { m_sSEKMSKeyIdHasBeenSet = true; m_sSEKMSKeyId = std::move(value); } /** *

If present, specifies the ID of the Amazon Web Services Key Management * Service (Amazon Web Services KMS) symmetric customer managed key that was used * for stored in Amazon S3 object.

*/ inline void SetSSEKMSKeyId(const char* value) { m_sSEKMSKeyIdHasBeenSet = true; m_sSEKMSKeyId.assign(value); } /** *

If present, specifies the ID of the Amazon Web Services Key Management * Service (Amazon Web Services KMS) symmetric customer managed key that was used * for stored in Amazon S3 object.

*/ inline WriteGetObjectResponseRequest& WithSSEKMSKeyId(const Aws::String& value) { SetSSEKMSKeyId(value); return *this;} /** *

If present, specifies the ID of the Amazon Web Services Key Management * Service (Amazon Web Services KMS) symmetric customer managed key that was used * for stored in Amazon S3 object.

*/ inline WriteGetObjectResponseRequest& WithSSEKMSKeyId(Aws::String&& value) { SetSSEKMSKeyId(std::move(value)); return *this;} /** *

If present, specifies the ID of the Amazon Web Services Key Management * Service (Amazon Web Services KMS) symmetric customer managed key that was used * for stored in Amazon S3 object.

*/ inline WriteGetObjectResponseRequest& WithSSEKMSKeyId(const char* value) { SetSSEKMSKeyId(value); return *this;} /** *

128-bit MD5 digest of customer-provided encryption key used in Amazon S3 to * encrypt data stored in S3. For more information, see Protecting * data using server-side encryption with customer-provided encryption keys * (SSE-C).

*/ inline const Aws::String& GetSSECustomerKeyMD5() const{ return m_sSECustomerKeyMD5; } /** *

128-bit MD5 digest of customer-provided encryption key used in Amazon S3 to * encrypt data stored in S3. For more information, see Protecting * data using server-side encryption with customer-provided encryption keys * (SSE-C).

*/ inline bool SSECustomerKeyMD5HasBeenSet() const { return m_sSECustomerKeyMD5HasBeenSet; } /** *

128-bit MD5 digest of customer-provided encryption key used in Amazon S3 to * encrypt data stored in S3. For more information, see Protecting * data using server-side encryption with customer-provided encryption keys * (SSE-C).

*/ inline void SetSSECustomerKeyMD5(const Aws::String& value) { m_sSECustomerKeyMD5HasBeenSet = true; m_sSECustomerKeyMD5 = value; } /** *

128-bit MD5 digest of customer-provided encryption key used in Amazon S3 to * encrypt data stored in S3. For more information, see Protecting * data using server-side encryption with customer-provided encryption keys * (SSE-C).

*/ inline void SetSSECustomerKeyMD5(Aws::String&& value) { m_sSECustomerKeyMD5HasBeenSet = true; m_sSECustomerKeyMD5 = std::move(value); } /** *

128-bit MD5 digest of customer-provided encryption key used in Amazon S3 to * encrypt data stored in S3. For more information, see Protecting * data using server-side encryption with customer-provided encryption keys * (SSE-C).

*/ inline void SetSSECustomerKeyMD5(const char* value) { m_sSECustomerKeyMD5HasBeenSet = true; m_sSECustomerKeyMD5.assign(value); } /** *

128-bit MD5 digest of customer-provided encryption key used in Amazon S3 to * encrypt data stored in S3. For more information, see Protecting * data using server-side encryption with customer-provided encryption keys * (SSE-C).

*/ inline WriteGetObjectResponseRequest& WithSSECustomerKeyMD5(const Aws::String& value) { SetSSECustomerKeyMD5(value); return *this;} /** *

128-bit MD5 digest of customer-provided encryption key used in Amazon S3 to * encrypt data stored in S3. For more information, see Protecting * data using server-side encryption with customer-provided encryption keys * (SSE-C).

*/ inline WriteGetObjectResponseRequest& WithSSECustomerKeyMD5(Aws::String&& value) { SetSSECustomerKeyMD5(std::move(value)); return *this;} /** *

128-bit MD5 digest of customer-provided encryption key used in Amazon S3 to * encrypt data stored in S3. For more information, see Protecting * data using server-side encryption with customer-provided encryption keys * (SSE-C).

*/ inline WriteGetObjectResponseRequest& WithSSECustomerKeyMD5(const char* value) { SetSSECustomerKeyMD5(value); return *this;} /** *

The class of storage used to store object in Amazon S3.

*/ inline const StorageClass& GetStorageClass() const{ return m_storageClass; } /** *

The class of storage used to store object in Amazon S3.

*/ inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; } /** *

The class of storage used to store object in Amazon S3.

*/ inline void SetStorageClass(const StorageClass& value) { m_storageClassHasBeenSet = true; m_storageClass = value; } /** *

The class of storage used to store object in Amazon S3.

*/ inline void SetStorageClass(StorageClass&& value) { m_storageClassHasBeenSet = true; m_storageClass = std::move(value); } /** *

The class of storage used to store object in Amazon S3.

*/ inline WriteGetObjectResponseRequest& WithStorageClass(const StorageClass& value) { SetStorageClass(value); return *this;} /** *

The class of storage used to store object in Amazon S3.

*/ inline WriteGetObjectResponseRequest& WithStorageClass(StorageClass&& value) { SetStorageClass(std::move(value)); return *this;} /** *

The number of tags, if any, on the object.

*/ inline int GetTagCount() const{ return m_tagCount; } /** *

The number of tags, if any, on the object.

*/ inline bool TagCountHasBeenSet() const { return m_tagCountHasBeenSet; } /** *

The number of tags, if any, on the object.

*/ inline void SetTagCount(int value) { m_tagCountHasBeenSet = true; m_tagCount = value; } /** *

The number of tags, if any, on the object.

*/ inline WriteGetObjectResponseRequest& WithTagCount(int value) { SetTagCount(value); return *this;} /** *

An ID used to reference a specific version of the object.

*/ inline const Aws::String& GetVersionId() const{ return m_versionId; } /** *

An ID used to reference a specific version of the object.

*/ inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; } /** *

An ID used to reference a specific version of the object.

*/ inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; } /** *

An ID used to reference a specific version of the object.

*/ inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); } /** *

An ID used to reference a specific version of the object.

*/ inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); } /** *

An ID used to reference a specific version of the object.

*/ inline WriteGetObjectResponseRequest& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;} /** *

An ID used to reference a specific version of the object.

*/ inline WriteGetObjectResponseRequest& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;} /** *

An ID used to reference a specific version of the object.

*/ inline WriteGetObjectResponseRequest& WithVersionId(const char* value) { SetVersionId(value); return *this;} /** *

Indicates whether the object stored in Amazon S3 uses an S3 bucket key for * server-side encryption with Amazon Web Services KMS (SSE-KMS).

*/ inline bool GetBucketKeyEnabled() const{ return m_bucketKeyEnabled; } /** *

Indicates whether the object stored in Amazon S3 uses an S3 bucket key for * server-side encryption with Amazon Web Services KMS (SSE-KMS).

*/ inline bool BucketKeyEnabledHasBeenSet() const { return m_bucketKeyEnabledHasBeenSet; } /** *

Indicates whether the object stored in Amazon S3 uses an S3 bucket key for * server-side encryption with Amazon Web Services KMS (SSE-KMS).

*/ inline void SetBucketKeyEnabled(bool value) { m_bucketKeyEnabledHasBeenSet = true; m_bucketKeyEnabled = value; } /** *

Indicates whether the object stored in Amazon S3 uses an S3 bucket key for * server-side encryption with Amazon Web Services KMS (SSE-KMS).

*/ inline WriteGetObjectResponseRequest& WithBucketKeyEnabled(bool value) { SetBucketKeyEnabled(value); return *this;} inline const Aws::Map& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; } inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; } inline void SetCustomizedAccessLogTag(const Aws::Map& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; } inline void SetCustomizedAccessLogTag(Aws::Map&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); } inline WriteGetObjectResponseRequest& WithCustomizedAccessLogTag(const Aws::Map& value) { SetCustomizedAccessLogTag(value); return *this;} inline WriteGetObjectResponseRequest& WithCustomizedAccessLogTag(Aws::Map&& value) { SetCustomizedAccessLogTag(std::move(value)); return *this;} inline WriteGetObjectResponseRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; } inline WriteGetObjectResponseRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; } inline WriteGetObjectResponseRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; } inline WriteGetObjectResponseRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; } inline WriteGetObjectResponseRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; } inline WriteGetObjectResponseRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; } inline WriteGetObjectResponseRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; } private: Aws::String m_requestRoute; bool m_requestRouteHasBeenSet; Aws::String m_requestToken; bool m_requestTokenHasBeenSet; int m_statusCode; bool m_statusCodeHasBeenSet; Aws::String m_errorCode; bool m_errorCodeHasBeenSet; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet; Aws::String m_acceptRanges; bool m_acceptRangesHasBeenSet; Aws::String m_cacheControl; bool m_cacheControlHasBeenSet; Aws::String m_contentDisposition; bool m_contentDispositionHasBeenSet; Aws::String m_contentEncoding; bool m_contentEncodingHasBeenSet; Aws::String m_contentLanguage; bool m_contentLanguageHasBeenSet; long long m_contentLength; bool m_contentLengthHasBeenSet; Aws::String m_contentRange; bool m_contentRangeHasBeenSet; bool m_deleteMarker; bool m_deleteMarkerHasBeenSet; Aws::String m_eTag; bool m_eTagHasBeenSet; Aws::Utils::DateTime m_expires; bool m_expiresHasBeenSet; Aws::String m_expiration; bool m_expirationHasBeenSet; Aws::Utils::DateTime m_lastModified; bool m_lastModifiedHasBeenSet; int m_missingMeta; bool m_missingMetaHasBeenSet; Aws::Map m_metadata; bool m_metadataHasBeenSet; ObjectLockMode m_objectLockMode; bool m_objectLockModeHasBeenSet; ObjectLockLegalHoldStatus m_objectLockLegalHoldStatus; bool m_objectLockLegalHoldStatusHasBeenSet; Aws::Utils::DateTime m_objectLockRetainUntilDate; bool m_objectLockRetainUntilDateHasBeenSet; int m_partsCount; bool m_partsCountHasBeenSet; ReplicationStatus m_replicationStatus; bool m_replicationStatusHasBeenSet; RequestCharged m_requestCharged; bool m_requestChargedHasBeenSet; Aws::String m_restore; bool m_restoreHasBeenSet; ServerSideEncryption m_serverSideEncryption; bool m_serverSideEncryptionHasBeenSet; Aws::String m_sSECustomerAlgorithm; bool m_sSECustomerAlgorithmHasBeenSet; Aws::String m_sSEKMSKeyId; bool m_sSEKMSKeyIdHasBeenSet; Aws::String m_sSECustomerKeyMD5; bool m_sSECustomerKeyMD5HasBeenSet; StorageClass m_storageClass; bool m_storageClassHasBeenSet; int m_tagCount; bool m_tagCountHasBeenSet; Aws::String m_versionId; bool m_versionIdHasBeenSet; bool m_bucketKeyEnabled; bool m_bucketKeyEnabledHasBeenSet; Aws::Map m_customizedAccessLogTag; bool m_customizedAccessLogTagHasBeenSet; }; } // namespace Model } // namespace S3 } // namespace Aws