urbackup_backend/external/aws-cpp-sdk/include/aws/s3/model/WriteGetObjectResponseRequest.h
2021-07-07 18:47:38 +02:00

1662 lines
72 KiB
C++
Executable File

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/s3/S3_EXPORTS.h>
#include <aws/s3/S3Request.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/Array.h>
#include <aws/core/utils/DateTime.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/s3/model/ObjectLockMode.h>
#include <aws/s3/model/ObjectLockLegalHoldStatus.h>
#include <aws/s3/model/ReplicationStatus.h>
#include <aws/s3/model/RequestCharged.h>
#include <aws/s3/model/ServerSideEncryption.h>
#include <aws/s3/model/StorageClass.h>
#include <utility>
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; }
/**
* <p>Route prefix to the HTTP URL generated.</p>
*/
inline const Aws::String& GetRequestRoute() const{ return m_requestRoute; }
/**
* <p>Route prefix to the HTTP URL generated.</p>
*/
inline bool RequestRouteHasBeenSet() const { return m_requestRouteHasBeenSet; }
/**
* <p>Route prefix to the HTTP URL generated.</p>
*/
inline void SetRequestRoute(const Aws::String& value) { m_requestRouteHasBeenSet = true; m_requestRoute = value; }
/**
* <p>Route prefix to the HTTP URL generated.</p>
*/
inline void SetRequestRoute(Aws::String&& value) { m_requestRouteHasBeenSet = true; m_requestRoute = std::move(value); }
/**
* <p>Route prefix to the HTTP URL generated.</p>
*/
inline void SetRequestRoute(const char* value) { m_requestRouteHasBeenSet = true; m_requestRoute.assign(value); }
/**
* <p>Route prefix to the HTTP URL generated.</p>
*/
inline WriteGetObjectResponseRequest& WithRequestRoute(const Aws::String& value) { SetRequestRoute(value); return *this;}
/**
* <p>Route prefix to the HTTP URL generated.</p>
*/
inline WriteGetObjectResponseRequest& WithRequestRoute(Aws::String&& value) { SetRequestRoute(std::move(value)); return *this;}
/**
* <p>Route prefix to the HTTP URL generated.</p>
*/
inline WriteGetObjectResponseRequest& WithRequestRoute(const char* value) { SetRequestRoute(value); return *this;}
/**
* <p>A single use encrypted token that maps <code>WriteGetObjectResponse</code> to
* the end user <code>GetObject</code> request.</p>
*/
inline const Aws::String& GetRequestToken() const{ return m_requestToken; }
/**
* <p>A single use encrypted token that maps <code>WriteGetObjectResponse</code> to
* the end user <code>GetObject</code> request.</p>
*/
inline bool RequestTokenHasBeenSet() const { return m_requestTokenHasBeenSet; }
/**
* <p>A single use encrypted token that maps <code>WriteGetObjectResponse</code> to
* the end user <code>GetObject</code> request.</p>
*/
inline void SetRequestToken(const Aws::String& value) { m_requestTokenHasBeenSet = true; m_requestToken = value; }
/**
* <p>A single use encrypted token that maps <code>WriteGetObjectResponse</code> to
* the end user <code>GetObject</code> request.</p>
*/
inline void SetRequestToken(Aws::String&& value) { m_requestTokenHasBeenSet = true; m_requestToken = std::move(value); }
/**
* <p>A single use encrypted token that maps <code>WriteGetObjectResponse</code> to
* the end user <code>GetObject</code> request.</p>
*/
inline void SetRequestToken(const char* value) { m_requestTokenHasBeenSet = true; m_requestToken.assign(value); }
/**
* <p>A single use encrypted token that maps <code>WriteGetObjectResponse</code> to
* the end user <code>GetObject</code> request.</p>
*/
inline WriteGetObjectResponseRequest& WithRequestToken(const Aws::String& value) { SetRequestToken(value); return *this;}
/**
* <p>A single use encrypted token that maps <code>WriteGetObjectResponse</code> to
* the end user <code>GetObject</code> request.</p>
*/
inline WriteGetObjectResponseRequest& WithRequestToken(Aws::String&& value) { SetRequestToken(std::move(value)); return *this;}
/**
* <p>A single use encrypted token that maps <code>WriteGetObjectResponse</code> to
* the end user <code>GetObject</code> request.</p>
*/
inline WriteGetObjectResponseRequest& WithRequestToken(const char* value) { SetRequestToken(value); return *this;}
/**
* <p>The integer status code for an HTTP response of a corresponding
* <code>GetObject</code> request.</p> <p class="title"> <b>Status Codes</b> </p>
* <ul> <li> <p> <i>200 - OK</i> </p> </li> <li> <p> <i>206 - Partial Content</i>
* </p> </li> <li> <p> <i>304 - Not Modified</i> </p> </li> <li> <p> <i>400 - Bad
* Request</i> </p> </li> <li> <p> <i>401 - Unauthorized</i> </p> </li> <li> <p>
* <i>403 - Forbidden</i> </p> </li> <li> <p> <i>404 - Not Found</i> </p> </li>
* <li> <p> <i>405 - Method Not Allowed</i> </p> </li> <li> <p> <i>409 -
* Conflict</i> </p> </li> <li> <p> <i>411 - Length Required</i> </p> </li> <li>
* <p> <i>412 - Precondition Failed</i> </p> </li> <li> <p> <i>416 - Range Not
* Satisfiable</i> </p> </li> <li> <p> <i>500 - Internal Server Error</i> </p>
* </li> <li> <p> <i>503 - Service Unavailable</i> </p> </li> </ul>
*/
inline int GetStatusCode() const{ return m_statusCode; }
/**
* <p>The integer status code for an HTTP response of a corresponding
* <code>GetObject</code> request.</p> <p class="title"> <b>Status Codes</b> </p>
* <ul> <li> <p> <i>200 - OK</i> </p> </li> <li> <p> <i>206 - Partial Content</i>
* </p> </li> <li> <p> <i>304 - Not Modified</i> </p> </li> <li> <p> <i>400 - Bad
* Request</i> </p> </li> <li> <p> <i>401 - Unauthorized</i> </p> </li> <li> <p>
* <i>403 - Forbidden</i> </p> </li> <li> <p> <i>404 - Not Found</i> </p> </li>
* <li> <p> <i>405 - Method Not Allowed</i> </p> </li> <li> <p> <i>409 -
* Conflict</i> </p> </li> <li> <p> <i>411 - Length Required</i> </p> </li> <li>
* <p> <i>412 - Precondition Failed</i> </p> </li> <li> <p> <i>416 - Range Not
* Satisfiable</i> </p> </li> <li> <p> <i>500 - Internal Server Error</i> </p>
* </li> <li> <p> <i>503 - Service Unavailable</i> </p> </li> </ul>
*/
inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
/**
* <p>The integer status code for an HTTP response of a corresponding
* <code>GetObject</code> request.</p> <p class="title"> <b>Status Codes</b> </p>
* <ul> <li> <p> <i>200 - OK</i> </p> </li> <li> <p> <i>206 - Partial Content</i>
* </p> </li> <li> <p> <i>304 - Not Modified</i> </p> </li> <li> <p> <i>400 - Bad
* Request</i> </p> </li> <li> <p> <i>401 - Unauthorized</i> </p> </li> <li> <p>
* <i>403 - Forbidden</i> </p> </li> <li> <p> <i>404 - Not Found</i> </p> </li>
* <li> <p> <i>405 - Method Not Allowed</i> </p> </li> <li> <p> <i>409 -
* Conflict</i> </p> </li> <li> <p> <i>411 - Length Required</i> </p> </li> <li>
* <p> <i>412 - Precondition Failed</i> </p> </li> <li> <p> <i>416 - Range Not
* Satisfiable</i> </p> </li> <li> <p> <i>500 - Internal Server Error</i> </p>
* </li> <li> <p> <i>503 - Service Unavailable</i> </p> </li> </ul>
*/
inline void SetStatusCode(int value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
/**
* <p>The integer status code for an HTTP response of a corresponding
* <code>GetObject</code> request.</p> <p class="title"> <b>Status Codes</b> </p>
* <ul> <li> <p> <i>200 - OK</i> </p> </li> <li> <p> <i>206 - Partial Content</i>
* </p> </li> <li> <p> <i>304 - Not Modified</i> </p> </li> <li> <p> <i>400 - Bad
* Request</i> </p> </li> <li> <p> <i>401 - Unauthorized</i> </p> </li> <li> <p>
* <i>403 - Forbidden</i> </p> </li> <li> <p> <i>404 - Not Found</i> </p> </li>
* <li> <p> <i>405 - Method Not Allowed</i> </p> </li> <li> <p> <i>409 -
* Conflict</i> </p> </li> <li> <p> <i>411 - Length Required</i> </p> </li> <li>
* <p> <i>412 - Precondition Failed</i> </p> </li> <li> <p> <i>416 - Range Not
* Satisfiable</i> </p> </li> <li> <p> <i>500 - Internal Server Error</i> </p>
* </li> <li> <p> <i>503 - Service Unavailable</i> </p> </li> </ul>
*/
inline WriteGetObjectResponseRequest& WithStatusCode(int value) { SetStatusCode(value); return *this;}
/**
* <p>A string that uniquely identifies an error condition. Returned in the
* &lt;Code&gt; tag of the error XML response for a corresponding
* <code>GetObject</code> call. Cannot be used with a successful
* <code>StatusCode</code> 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]+$".</p>
*/
inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
/**
* <p>A string that uniquely identifies an error condition. Returned in the
* &lt;Code&gt; tag of the error XML response for a corresponding
* <code>GetObject</code> call. Cannot be used with a successful
* <code>StatusCode</code> 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]+$".</p>
*/
inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
/**
* <p>A string that uniquely identifies an error condition. Returned in the
* &lt;Code&gt; tag of the error XML response for a corresponding
* <code>GetObject</code> call. Cannot be used with a successful
* <code>StatusCode</code> 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]+$".</p>
*/
inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
/**
* <p>A string that uniquely identifies an error condition. Returned in the
* &lt;Code&gt; tag of the error XML response for a corresponding
* <code>GetObject</code> call. Cannot be used with a successful
* <code>StatusCode</code> 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]+$".</p>
*/
inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
/**
* <p>A string that uniquely identifies an error condition. Returned in the
* &lt;Code&gt; tag of the error XML response for a corresponding
* <code>GetObject</code> call. Cannot be used with a successful
* <code>StatusCode</code> 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]+$".</p>
*/
inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
/**
* <p>A string that uniquely identifies an error condition. Returned in the
* &lt;Code&gt; tag of the error XML response for a corresponding
* <code>GetObject</code> call. Cannot be used with a successful
* <code>StatusCode</code> 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]+$".</p>
*/
inline WriteGetObjectResponseRequest& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
/**
* <p>A string that uniquely identifies an error condition. Returned in the
* &lt;Code&gt; tag of the error XML response for a corresponding
* <code>GetObject</code> call. Cannot be used with a successful
* <code>StatusCode</code> 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]+$".</p>
*/
inline WriteGetObjectResponseRequest& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
/**
* <p>A string that uniquely identifies an error condition. Returned in the
* &lt;Code&gt; tag of the error XML response for a corresponding
* <code>GetObject</code> call. Cannot be used with a successful
* <code>StatusCode</code> 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]+$".</p>
*/
inline WriteGetObjectResponseRequest& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
/**
* <p>Contains a generic description of the error condition. Returned in the
* &lt;Message&gt; tag of the error XML response for a corresponding
* <code>GetObject</code> call. Cannot be used with a successful
* <code>StatusCode</code> header or when the transformed object is provided in
* body.</p>
*/
inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
/**
* <p>Contains a generic description of the error condition. Returned in the
* &lt;Message&gt; tag of the error XML response for a corresponding
* <code>GetObject</code> call. Cannot be used with a successful
* <code>StatusCode</code> header or when the transformed object is provided in
* body.</p>
*/
inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
/**
* <p>Contains a generic description of the error condition. Returned in the
* &lt;Message&gt; tag of the error XML response for a corresponding
* <code>GetObject</code> call. Cannot be used with a successful
* <code>StatusCode</code> header or when the transformed object is provided in
* body.</p>
*/
inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
/**
* <p>Contains a generic description of the error condition. Returned in the
* &lt;Message&gt; tag of the error XML response for a corresponding
* <code>GetObject</code> call. Cannot be used with a successful
* <code>StatusCode</code> header or when the transformed object is provided in
* body.</p>
*/
inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
/**
* <p>Contains a generic description of the error condition. Returned in the
* &lt;Message&gt; tag of the error XML response for a corresponding
* <code>GetObject</code> call. Cannot be used with a successful
* <code>StatusCode</code> header or when the transformed object is provided in
* body.</p>
*/
inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
/**
* <p>Contains a generic description of the error condition. Returned in the
* &lt;Message&gt; tag of the error XML response for a corresponding
* <code>GetObject</code> call. Cannot be used with a successful
* <code>StatusCode</code> header or when the transformed object is provided in
* body.</p>
*/
inline WriteGetObjectResponseRequest& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
/**
* <p>Contains a generic description of the error condition. Returned in the
* &lt;Message&gt; tag of the error XML response for a corresponding
* <code>GetObject</code> call. Cannot be used with a successful
* <code>StatusCode</code> header or when the transformed object is provided in
* body.</p>
*/
inline WriteGetObjectResponseRequest& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
/**
* <p>Contains a generic description of the error condition. Returned in the
* &lt;Message&gt; tag of the error XML response for a corresponding
* <code>GetObject</code> call. Cannot be used with a successful
* <code>StatusCode</code> header or when the transformed object is provided in
* body.</p>
*/
inline WriteGetObjectResponseRequest& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
/**
* <p>Indicates that a range of bytes was specified.</p>
*/
inline const Aws::String& GetAcceptRanges() const{ return m_acceptRanges; }
/**
* <p>Indicates that a range of bytes was specified.</p>
*/
inline bool AcceptRangesHasBeenSet() const { return m_acceptRangesHasBeenSet; }
/**
* <p>Indicates that a range of bytes was specified.</p>
*/
inline void SetAcceptRanges(const Aws::String& value) { m_acceptRangesHasBeenSet = true; m_acceptRanges = value; }
/**
* <p>Indicates that a range of bytes was specified.</p>
*/
inline void SetAcceptRanges(Aws::String&& value) { m_acceptRangesHasBeenSet = true; m_acceptRanges = std::move(value); }
/**
* <p>Indicates that a range of bytes was specified.</p>
*/
inline void SetAcceptRanges(const char* value) { m_acceptRangesHasBeenSet = true; m_acceptRanges.assign(value); }
/**
* <p>Indicates that a range of bytes was specified.</p>
*/
inline WriteGetObjectResponseRequest& WithAcceptRanges(const Aws::String& value) { SetAcceptRanges(value); return *this;}
/**
* <p>Indicates that a range of bytes was specified.</p>
*/
inline WriteGetObjectResponseRequest& WithAcceptRanges(Aws::String&& value) { SetAcceptRanges(std::move(value)); return *this;}
/**
* <p>Indicates that a range of bytes was specified.</p>
*/
inline WriteGetObjectResponseRequest& WithAcceptRanges(const char* value) { SetAcceptRanges(value); return *this;}
/**
* <p>Specifies caching behavior along the request/reply chain.</p>
*/
inline const Aws::String& GetCacheControl() const{ return m_cacheControl; }
/**
* <p>Specifies caching behavior along the request/reply chain.</p>
*/
inline bool CacheControlHasBeenSet() const { return m_cacheControlHasBeenSet; }
/**
* <p>Specifies caching behavior along the request/reply chain.</p>
*/
inline void SetCacheControl(const Aws::String& value) { m_cacheControlHasBeenSet = true; m_cacheControl = value; }
/**
* <p>Specifies caching behavior along the request/reply chain.</p>
*/
inline void SetCacheControl(Aws::String&& value) { m_cacheControlHasBeenSet = true; m_cacheControl = std::move(value); }
/**
* <p>Specifies caching behavior along the request/reply chain.</p>
*/
inline void SetCacheControl(const char* value) { m_cacheControlHasBeenSet = true; m_cacheControl.assign(value); }
/**
* <p>Specifies caching behavior along the request/reply chain.</p>
*/
inline WriteGetObjectResponseRequest& WithCacheControl(const Aws::String& value) { SetCacheControl(value); return *this;}
/**
* <p>Specifies caching behavior along the request/reply chain.</p>
*/
inline WriteGetObjectResponseRequest& WithCacheControl(Aws::String&& value) { SetCacheControl(std::move(value)); return *this;}
/**
* <p>Specifies caching behavior along the request/reply chain.</p>
*/
inline WriteGetObjectResponseRequest& WithCacheControl(const char* value) { SetCacheControl(value); return *this;}
/**
* <p>Specifies presentational information for the object.</p>
*/
inline const Aws::String& GetContentDisposition() const{ return m_contentDisposition; }
/**
* <p>Specifies presentational information for the object.</p>
*/
inline bool ContentDispositionHasBeenSet() const { return m_contentDispositionHasBeenSet; }
/**
* <p>Specifies presentational information for the object.</p>
*/
inline void SetContentDisposition(const Aws::String& value) { m_contentDispositionHasBeenSet = true; m_contentDisposition = value; }
/**
* <p>Specifies presentational information for the object.</p>
*/
inline void SetContentDisposition(Aws::String&& value) { m_contentDispositionHasBeenSet = true; m_contentDisposition = std::move(value); }
/**
* <p>Specifies presentational information for the object.</p>
*/
inline void SetContentDisposition(const char* value) { m_contentDispositionHasBeenSet = true; m_contentDisposition.assign(value); }
/**
* <p>Specifies presentational information for the object.</p>
*/
inline WriteGetObjectResponseRequest& WithContentDisposition(const Aws::String& value) { SetContentDisposition(value); return *this;}
/**
* <p>Specifies presentational information for the object.</p>
*/
inline WriteGetObjectResponseRequest& WithContentDisposition(Aws::String&& value) { SetContentDisposition(std::move(value)); return *this;}
/**
* <p>Specifies presentational information for the object.</p>
*/
inline WriteGetObjectResponseRequest& WithContentDisposition(const char* value) { SetContentDisposition(value); return *this;}
/**
* <p>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.</p>
*/
inline const Aws::String& GetContentEncoding() const{ return m_contentEncoding; }
/**
* <p>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.</p>
*/
inline bool ContentEncodingHasBeenSet() const { return m_contentEncodingHasBeenSet; }
/**
* <p>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.</p>
*/
inline void SetContentEncoding(const Aws::String& value) { m_contentEncodingHasBeenSet = true; m_contentEncoding = value; }
/**
* <p>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.</p>
*/
inline void SetContentEncoding(Aws::String&& value) { m_contentEncodingHasBeenSet = true; m_contentEncoding = std::move(value); }
/**
* <p>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.</p>
*/
inline void SetContentEncoding(const char* value) { m_contentEncodingHasBeenSet = true; m_contentEncoding.assign(value); }
/**
* <p>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.</p>
*/
inline WriteGetObjectResponseRequest& WithContentEncoding(const Aws::String& value) { SetContentEncoding(value); return *this;}
/**
* <p>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.</p>
*/
inline WriteGetObjectResponseRequest& WithContentEncoding(Aws::String&& value) { SetContentEncoding(std::move(value)); return *this;}
/**
* <p>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.</p>
*/
inline WriteGetObjectResponseRequest& WithContentEncoding(const char* value) { SetContentEncoding(value); return *this;}
/**
* <p>The language the content is in.</p>
*/
inline const Aws::String& GetContentLanguage() const{ return m_contentLanguage; }
/**
* <p>The language the content is in.</p>
*/
inline bool ContentLanguageHasBeenSet() const { return m_contentLanguageHasBeenSet; }
/**
* <p>The language the content is in.</p>
*/
inline void SetContentLanguage(const Aws::String& value) { m_contentLanguageHasBeenSet = true; m_contentLanguage = value; }
/**
* <p>The language the content is in.</p>
*/
inline void SetContentLanguage(Aws::String&& value) { m_contentLanguageHasBeenSet = true; m_contentLanguage = std::move(value); }
/**
* <p>The language the content is in.</p>
*/
inline void SetContentLanguage(const char* value) { m_contentLanguageHasBeenSet = true; m_contentLanguage.assign(value); }
/**
* <p>The language the content is in.</p>
*/
inline WriteGetObjectResponseRequest& WithContentLanguage(const Aws::String& value) { SetContentLanguage(value); return *this;}
/**
* <p>The language the content is in.</p>
*/
inline WriteGetObjectResponseRequest& WithContentLanguage(Aws::String&& value) { SetContentLanguage(std::move(value)); return *this;}
/**
* <p>The language the content is in.</p>
*/
inline WriteGetObjectResponseRequest& WithContentLanguage(const char* value) { SetContentLanguage(value); return *this;}
/**
* <p>The size of the content body in bytes.</p>
*/
inline long long GetContentLength() const{ return m_contentLength; }
/**
* <p>The size of the content body in bytes.</p>
*/
inline bool ContentLengthHasBeenSet() const { return m_contentLengthHasBeenSet; }
/**
* <p>The size of the content body in bytes.</p>
*/
inline void SetContentLength(long long value) { m_contentLengthHasBeenSet = true; m_contentLength = value; }
/**
* <p>The size of the content body in bytes.</p>
*/
inline WriteGetObjectResponseRequest& WithContentLength(long long value) { SetContentLength(value); return *this;}
/**
* <p>The portion of the object returned in the response.</p>
*/
inline const Aws::String& GetContentRange() const{ return m_contentRange; }
/**
* <p>The portion of the object returned in the response.</p>
*/
inline bool ContentRangeHasBeenSet() const { return m_contentRangeHasBeenSet; }
/**
* <p>The portion of the object returned in the response.</p>
*/
inline void SetContentRange(const Aws::String& value) { m_contentRangeHasBeenSet = true; m_contentRange = value; }
/**
* <p>The portion of the object returned in the response.</p>
*/
inline void SetContentRange(Aws::String&& value) { m_contentRangeHasBeenSet = true; m_contentRange = std::move(value); }
/**
* <p>The portion of the object returned in the response.</p>
*/
inline void SetContentRange(const char* value) { m_contentRangeHasBeenSet = true; m_contentRange.assign(value); }
/**
* <p>The portion of the object returned in the response.</p>
*/
inline WriteGetObjectResponseRequest& WithContentRange(const Aws::String& value) { SetContentRange(value); return *this;}
/**
* <p>The portion of the object returned in the response.</p>
*/
inline WriteGetObjectResponseRequest& WithContentRange(Aws::String&& value) { SetContentRange(std::move(value)); return *this;}
/**
* <p>The portion of the object returned in the response.</p>
*/
inline WriteGetObjectResponseRequest& WithContentRange(const char* value) { SetContentRange(value); return *this;}
/**
* <p>Specifies whether an object stored in Amazon S3 is (<code>true</code>) or is
* not (<code>false</code>) a delete marker. </p>
*/
inline bool GetDeleteMarker() const{ return m_deleteMarker; }
/**
* <p>Specifies whether an object stored in Amazon S3 is (<code>true</code>) or is
* not (<code>false</code>) a delete marker. </p>
*/
inline bool DeleteMarkerHasBeenSet() const { return m_deleteMarkerHasBeenSet; }
/**
* <p>Specifies whether an object stored in Amazon S3 is (<code>true</code>) or is
* not (<code>false</code>) a delete marker. </p>
*/
inline void SetDeleteMarker(bool value) { m_deleteMarkerHasBeenSet = true; m_deleteMarker = value; }
/**
* <p>Specifies whether an object stored in Amazon S3 is (<code>true</code>) or is
* not (<code>false</code>) a delete marker. </p>
*/
inline WriteGetObjectResponseRequest& WithDeleteMarker(bool value) { SetDeleteMarker(value); return *this;}
/**
* <p>An opaque identifier assigned by a web server to a specific version of a
* resource found at a URL. </p>
*/
inline const Aws::String& GetETag() const{ return m_eTag; }
/**
* <p>An opaque identifier assigned by a web server to a specific version of a
* resource found at a URL. </p>
*/
inline bool ETagHasBeenSet() const { return m_eTagHasBeenSet; }
/**
* <p>An opaque identifier assigned by a web server to a specific version of a
* resource found at a URL. </p>
*/
inline void SetETag(const Aws::String& value) { m_eTagHasBeenSet = true; m_eTag = value; }
/**
* <p>An opaque identifier assigned by a web server to a specific version of a
* resource found at a URL. </p>
*/
inline void SetETag(Aws::String&& value) { m_eTagHasBeenSet = true; m_eTag = std::move(value); }
/**
* <p>An opaque identifier assigned by a web server to a specific version of a
* resource found at a URL. </p>
*/
inline void SetETag(const char* value) { m_eTagHasBeenSet = true; m_eTag.assign(value); }
/**
* <p>An opaque identifier assigned by a web server to a specific version of a
* resource found at a URL. </p>
*/
inline WriteGetObjectResponseRequest& WithETag(const Aws::String& value) { SetETag(value); return *this;}
/**
* <p>An opaque identifier assigned by a web server to a specific version of a
* resource found at a URL. </p>
*/
inline WriteGetObjectResponseRequest& WithETag(Aws::String&& value) { SetETag(std::move(value)); return *this;}
/**
* <p>An opaque identifier assigned by a web server to a specific version of a
* resource found at a URL. </p>
*/
inline WriteGetObjectResponseRequest& WithETag(const char* value) { SetETag(value); return *this;}
/**
* <p>The date and time at which the object is no longer cacheable.</p>
*/
inline const Aws::Utils::DateTime& GetExpires() const{ return m_expires; }
/**
* <p>The date and time at which the object is no longer cacheable.</p>
*/
inline bool ExpiresHasBeenSet() const { return m_expiresHasBeenSet; }
/**
* <p>The date and time at which the object is no longer cacheable.</p>
*/
inline void SetExpires(const Aws::Utils::DateTime& value) { m_expiresHasBeenSet = true; m_expires = value; }
/**
* <p>The date and time at which the object is no longer cacheable.</p>
*/
inline void SetExpires(Aws::Utils::DateTime&& value) { m_expiresHasBeenSet = true; m_expires = std::move(value); }
/**
* <p>The date and time at which the object is no longer cacheable.</p>
*/
inline WriteGetObjectResponseRequest& WithExpires(const Aws::Utils::DateTime& value) { SetExpires(value); return *this;}
/**
* <p>The date and time at which the object is no longer cacheable.</p>
*/
inline WriteGetObjectResponseRequest& WithExpires(Aws::Utils::DateTime&& value) { SetExpires(std::move(value)); return *this;}
/**
* <p>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. </p>
*/
inline const Aws::String& GetExpiration() const{ return m_expiration; }
/**
* <p>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. </p>
*/
inline bool ExpirationHasBeenSet() const { return m_expirationHasBeenSet; }
/**
* <p>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. </p>
*/
inline void SetExpiration(const Aws::String& value) { m_expirationHasBeenSet = true; m_expiration = value; }
/**
* <p>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. </p>
*/
inline void SetExpiration(Aws::String&& value) { m_expirationHasBeenSet = true; m_expiration = std::move(value); }
/**
* <p>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. </p>
*/
inline void SetExpiration(const char* value) { m_expirationHasBeenSet = true; m_expiration.assign(value); }
/**
* <p>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. </p>
*/
inline WriteGetObjectResponseRequest& WithExpiration(const Aws::String& value) { SetExpiration(value); return *this;}
/**
* <p>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. </p>
*/
inline WriteGetObjectResponseRequest& WithExpiration(Aws::String&& value) { SetExpiration(std::move(value)); return *this;}
/**
* <p>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. </p>
*/
inline WriteGetObjectResponseRequest& WithExpiration(const char* value) { SetExpiration(value); return *this;}
/**
* <p>The date and time that the object was last modified.</p>
*/
inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; }
/**
* <p>The date and time that the object was last modified.</p>
*/
inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
/**
* <p>The date and time that the object was last modified.</p>
*/
inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModifiedHasBeenSet = true; m_lastModified = value; }
/**
* <p>The date and time that the object was last modified.</p>
*/
inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::move(value); }
/**
* <p>The date and time that the object was last modified.</p>
*/
inline WriteGetObjectResponseRequest& WithLastModified(const Aws::Utils::DateTime& value) { SetLastModified(value); return *this;}
/**
* <p>The date and time that the object was last modified.</p>
*/
inline WriteGetObjectResponseRequest& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(std::move(value)); return *this;}
/**
* <p>Set to the number of metadata entries not returned in <code>x-amz-meta</code>
* 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.</p>
*/
inline int GetMissingMeta() const{ return m_missingMeta; }
/**
* <p>Set to the number of metadata entries not returned in <code>x-amz-meta</code>
* 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.</p>
*/
inline bool MissingMetaHasBeenSet() const { return m_missingMetaHasBeenSet; }
/**
* <p>Set to the number of metadata entries not returned in <code>x-amz-meta</code>
* 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.</p>
*/
inline void SetMissingMeta(int value) { m_missingMetaHasBeenSet = true; m_missingMeta = value; }
/**
* <p>Set to the number of metadata entries not returned in <code>x-amz-meta</code>
* 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.</p>
*/
inline WriteGetObjectResponseRequest& WithMissingMeta(int value) { SetMissingMeta(value); return *this;}
/**
* <p>A map of metadata to store with the object in S3.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const{ return m_metadata; }
/**
* <p>A map of metadata to store with the object in S3.</p>
*/
inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
/**
* <p>A map of metadata to store with the object in S3.</p>
*/
inline void SetMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_metadataHasBeenSet = true; m_metadata = value; }
/**
* <p>A map of metadata to store with the object in S3.</p>
*/
inline void SetMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
/**
* <p>A map of metadata to store with the object in S3.</p>
*/
inline WriteGetObjectResponseRequest& WithMetadata(const Aws::Map<Aws::String, Aws::String>& value) { SetMetadata(value); return *this;}
/**
* <p>A map of metadata to store with the object in S3.</p>
*/
inline WriteGetObjectResponseRequest& WithMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetMetadata(std::move(value)); return *this;}
/**
* <p>A map of metadata to store with the object in S3.</p>
*/
inline WriteGetObjectResponseRequest& AddMetadata(const Aws::String& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
/**
* <p>A map of metadata to store with the object in S3.</p>
*/
inline WriteGetObjectResponseRequest& AddMetadata(Aws::String&& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
/**
* <p>A map of metadata to store with the object in S3.</p>
*/
inline WriteGetObjectResponseRequest& AddMetadata(const Aws::String& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
/**
* <p>A map of metadata to store with the object in S3.</p>
*/
inline WriteGetObjectResponseRequest& AddMetadata(Aws::String&& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>A map of metadata to store with the object in S3.</p>
*/
inline WriteGetObjectResponseRequest& AddMetadata(const char* key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
/**
* <p>A map of metadata to store with the object in S3.</p>
*/
inline WriteGetObjectResponseRequest& AddMetadata(Aws::String&& key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
/**
* <p>A map of metadata to store with the object in S3.</p>
*/
inline WriteGetObjectResponseRequest& AddMetadata(const char* key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
/**
* <p>Indicates whether an object stored in Amazon S3 has Object Lock enabled. For
* more information about S3 Object Lock, see <a
* href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock.html">Object
* Lock</a>.</p>
*/
inline const ObjectLockMode& GetObjectLockMode() const{ return m_objectLockMode; }
/**
* <p>Indicates whether an object stored in Amazon S3 has Object Lock enabled. For
* more information about S3 Object Lock, see <a
* href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock.html">Object
* Lock</a>.</p>
*/
inline bool ObjectLockModeHasBeenSet() const { return m_objectLockModeHasBeenSet; }
/**
* <p>Indicates whether an object stored in Amazon S3 has Object Lock enabled. For
* more information about S3 Object Lock, see <a
* href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock.html">Object
* Lock</a>.</p>
*/
inline void SetObjectLockMode(const ObjectLockMode& value) { m_objectLockModeHasBeenSet = true; m_objectLockMode = value; }
/**
* <p>Indicates whether an object stored in Amazon S3 has Object Lock enabled. For
* more information about S3 Object Lock, see <a
* href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock.html">Object
* Lock</a>.</p>
*/
inline void SetObjectLockMode(ObjectLockMode&& value) { m_objectLockModeHasBeenSet = true; m_objectLockMode = std::move(value); }
/**
* <p>Indicates whether an object stored in Amazon S3 has Object Lock enabled. For
* more information about S3 Object Lock, see <a
* href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock.html">Object
* Lock</a>.</p>
*/
inline WriteGetObjectResponseRequest& WithObjectLockMode(const ObjectLockMode& value) { SetObjectLockMode(value); return *this;}
/**
* <p>Indicates whether an object stored in Amazon S3 has Object Lock enabled. For
* more information about S3 Object Lock, see <a
* href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock.html">Object
* Lock</a>.</p>
*/
inline WriteGetObjectResponseRequest& WithObjectLockMode(ObjectLockMode&& value) { SetObjectLockMode(std::move(value)); return *this;}
/**
* <p>Indicates whether an object stored in Amazon S3 has an active legal hold.</p>
*/
inline const ObjectLockLegalHoldStatus& GetObjectLockLegalHoldStatus() const{ return m_objectLockLegalHoldStatus; }
/**
* <p>Indicates whether an object stored in Amazon S3 has an active legal hold.</p>
*/
inline bool ObjectLockLegalHoldStatusHasBeenSet() const { return m_objectLockLegalHoldStatusHasBeenSet; }
/**
* <p>Indicates whether an object stored in Amazon S3 has an active legal hold.</p>
*/
inline void SetObjectLockLegalHoldStatus(const ObjectLockLegalHoldStatus& value) { m_objectLockLegalHoldStatusHasBeenSet = true; m_objectLockLegalHoldStatus = value; }
/**
* <p>Indicates whether an object stored in Amazon S3 has an active legal hold.</p>
*/
inline void SetObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus&& value) { m_objectLockLegalHoldStatusHasBeenSet = true; m_objectLockLegalHoldStatus = std::move(value); }
/**
* <p>Indicates whether an object stored in Amazon S3 has an active legal hold.</p>
*/
inline WriteGetObjectResponseRequest& WithObjectLockLegalHoldStatus(const ObjectLockLegalHoldStatus& value) { SetObjectLockLegalHoldStatus(value); return *this;}
/**
* <p>Indicates whether an object stored in Amazon S3 has an active legal hold.</p>
*/
inline WriteGetObjectResponseRequest& WithObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus&& value) { SetObjectLockLegalHoldStatus(std::move(value)); return *this;}
/**
* <p>The date and time when Object Lock is configured to expire.</p>
*/
inline const Aws::Utils::DateTime& GetObjectLockRetainUntilDate() const{ return m_objectLockRetainUntilDate; }
/**
* <p>The date and time when Object Lock is configured to expire.</p>
*/
inline bool ObjectLockRetainUntilDateHasBeenSet() const { return m_objectLockRetainUntilDateHasBeenSet; }
/**
* <p>The date and time when Object Lock is configured to expire.</p>
*/
inline void SetObjectLockRetainUntilDate(const Aws::Utils::DateTime& value) { m_objectLockRetainUntilDateHasBeenSet = true; m_objectLockRetainUntilDate = value; }
/**
* <p>The date and time when Object Lock is configured to expire.</p>
*/
inline void SetObjectLockRetainUntilDate(Aws::Utils::DateTime&& value) { m_objectLockRetainUntilDateHasBeenSet = true; m_objectLockRetainUntilDate = std::move(value); }
/**
* <p>The date and time when Object Lock is configured to expire.</p>
*/
inline WriteGetObjectResponseRequest& WithObjectLockRetainUntilDate(const Aws::Utils::DateTime& value) { SetObjectLockRetainUntilDate(value); return *this;}
/**
* <p>The date and time when Object Lock is configured to expire.</p>
*/
inline WriteGetObjectResponseRequest& WithObjectLockRetainUntilDate(Aws::Utils::DateTime&& value) { SetObjectLockRetainUntilDate(std::move(value)); return *this;}
/**
* <p>The count of parts this object has.</p>
*/
inline int GetPartsCount() const{ return m_partsCount; }
/**
* <p>The count of parts this object has.</p>
*/
inline bool PartsCountHasBeenSet() const { return m_partsCountHasBeenSet; }
/**
* <p>The count of parts this object has.</p>
*/
inline void SetPartsCount(int value) { m_partsCountHasBeenSet = true; m_partsCount = value; }
/**
* <p>The count of parts this object has.</p>
*/
inline WriteGetObjectResponseRequest& WithPartsCount(int value) { SetPartsCount(value); return *this;}
/**
* <p>Indicates if request involves bucket that is either a source or destination
* in a Replication rule. For more information about S3 Replication, see <a
* href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/replication.html">Replication</a>.</p>
*/
inline const ReplicationStatus& GetReplicationStatus() const{ return m_replicationStatus; }
/**
* <p>Indicates if request involves bucket that is either a source or destination
* in a Replication rule. For more information about S3 Replication, see <a
* href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/replication.html">Replication</a>.</p>
*/
inline bool ReplicationStatusHasBeenSet() const { return m_replicationStatusHasBeenSet; }
/**
* <p>Indicates if request involves bucket that is either a source or destination
* in a Replication rule. For more information about S3 Replication, see <a
* href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/replication.html">Replication</a>.</p>
*/
inline void SetReplicationStatus(const ReplicationStatus& value) { m_replicationStatusHasBeenSet = true; m_replicationStatus = value; }
/**
* <p>Indicates if request involves bucket that is either a source or destination
* in a Replication rule. For more information about S3 Replication, see <a
* href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/replication.html">Replication</a>.</p>
*/
inline void SetReplicationStatus(ReplicationStatus&& value) { m_replicationStatusHasBeenSet = true; m_replicationStatus = std::move(value); }
/**
* <p>Indicates if request involves bucket that is either a source or destination
* in a Replication rule. For more information about S3 Replication, see <a
* href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/replication.html">Replication</a>.</p>
*/
inline WriteGetObjectResponseRequest& WithReplicationStatus(const ReplicationStatus& value) { SetReplicationStatus(value); return *this;}
/**
* <p>Indicates if request involves bucket that is either a source or destination
* in a Replication rule. For more information about S3 Replication, see <a
* href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/replication.html">Replication</a>.</p>
*/
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;}
/**
* <p>Provides information about object restoration operation and expiration time
* of the restored object copy.</p>
*/
inline const Aws::String& GetRestore() const{ return m_restore; }
/**
* <p>Provides information about object restoration operation and expiration time
* of the restored object copy.</p>
*/
inline bool RestoreHasBeenSet() const { return m_restoreHasBeenSet; }
/**
* <p>Provides information about object restoration operation and expiration time
* of the restored object copy.</p>
*/
inline void SetRestore(const Aws::String& value) { m_restoreHasBeenSet = true; m_restore = value; }
/**
* <p>Provides information about object restoration operation and expiration time
* of the restored object copy.</p>
*/
inline void SetRestore(Aws::String&& value) { m_restoreHasBeenSet = true; m_restore = std::move(value); }
/**
* <p>Provides information about object restoration operation and expiration time
* of the restored object copy.</p>
*/
inline void SetRestore(const char* value) { m_restoreHasBeenSet = true; m_restore.assign(value); }
/**
* <p>Provides information about object restoration operation and expiration time
* of the restored object copy.</p>
*/
inline WriteGetObjectResponseRequest& WithRestore(const Aws::String& value) { SetRestore(value); return *this;}
/**
* <p>Provides information about object restoration operation and expiration time
* of the restored object copy.</p>
*/
inline WriteGetObjectResponseRequest& WithRestore(Aws::String&& value) { SetRestore(std::move(value)); return *this;}
/**
* <p>Provides information about object restoration operation and expiration time
* of the restored object copy.</p>
*/
inline WriteGetObjectResponseRequest& WithRestore(const char* value) { SetRestore(value); return *this;}
/**
* <p> The server-side encryption algorithm used when storing requested object in
* Amazon S3 (for example, AES256, aws:kms).</p>
*/
inline const ServerSideEncryption& GetServerSideEncryption() const{ return m_serverSideEncryption; }
/**
* <p> The server-side encryption algorithm used when storing requested object in
* Amazon S3 (for example, AES256, aws:kms).</p>
*/
inline bool ServerSideEncryptionHasBeenSet() const { return m_serverSideEncryptionHasBeenSet; }
/**
* <p> The server-side encryption algorithm used when storing requested object in
* Amazon S3 (for example, AES256, aws:kms).</p>
*/
inline void SetServerSideEncryption(const ServerSideEncryption& value) { m_serverSideEncryptionHasBeenSet = true; m_serverSideEncryption = value; }
/**
* <p> The server-side encryption algorithm used when storing requested object in
* Amazon S3 (for example, AES256, aws:kms).</p>
*/
inline void SetServerSideEncryption(ServerSideEncryption&& value) { m_serverSideEncryptionHasBeenSet = true; m_serverSideEncryption = std::move(value); }
/**
* <p> The server-side encryption algorithm used when storing requested object in
* Amazon S3 (for example, AES256, aws:kms).</p>
*/
inline WriteGetObjectResponseRequest& WithServerSideEncryption(const ServerSideEncryption& value) { SetServerSideEncryption(value); return *this;}
/**
* <p> The server-side encryption algorithm used when storing requested object in
* Amazon S3 (for example, AES256, aws:kms).</p>
*/
inline WriteGetObjectResponseRequest& WithServerSideEncryption(ServerSideEncryption&& value) { SetServerSideEncryption(std::move(value)); return *this;}
/**
* <p>Encryption algorithm used if server-side encryption with a customer-provided
* encryption key was specified for object stored in Amazon S3.</p>
*/
inline const Aws::String& GetSSECustomerAlgorithm() const{ return m_sSECustomerAlgorithm; }
/**
* <p>Encryption algorithm used if server-side encryption with a customer-provided
* encryption key was specified for object stored in Amazon S3.</p>
*/
inline bool SSECustomerAlgorithmHasBeenSet() const { return m_sSECustomerAlgorithmHasBeenSet; }
/**
* <p>Encryption algorithm used if server-side encryption with a customer-provided
* encryption key was specified for object stored in Amazon S3.</p>
*/
inline void SetSSECustomerAlgorithm(const Aws::String& value) { m_sSECustomerAlgorithmHasBeenSet = true; m_sSECustomerAlgorithm = value; }
/**
* <p>Encryption algorithm used if server-side encryption with a customer-provided
* encryption key was specified for object stored in Amazon S3.</p>
*/
inline void SetSSECustomerAlgorithm(Aws::String&& value) { m_sSECustomerAlgorithmHasBeenSet = true; m_sSECustomerAlgorithm = std::move(value); }
/**
* <p>Encryption algorithm used if server-side encryption with a customer-provided
* encryption key was specified for object stored in Amazon S3.</p>
*/
inline void SetSSECustomerAlgorithm(const char* value) { m_sSECustomerAlgorithmHasBeenSet = true; m_sSECustomerAlgorithm.assign(value); }
/**
* <p>Encryption algorithm used if server-side encryption with a customer-provided
* encryption key was specified for object stored in Amazon S3.</p>
*/
inline WriteGetObjectResponseRequest& WithSSECustomerAlgorithm(const Aws::String& value) { SetSSECustomerAlgorithm(value); return *this;}
/**
* <p>Encryption algorithm used if server-side encryption with a customer-provided
* encryption key was specified for object stored in Amazon S3.</p>
*/
inline WriteGetObjectResponseRequest& WithSSECustomerAlgorithm(Aws::String&& value) { SetSSECustomerAlgorithm(std::move(value)); return *this;}
/**
* <p>Encryption algorithm used if server-side encryption with a customer-provided
* encryption key was specified for object stored in Amazon S3.</p>
*/
inline WriteGetObjectResponseRequest& WithSSECustomerAlgorithm(const char* value) { SetSSECustomerAlgorithm(value); return *this;}
/**
* <p> If present, specifies the ID of the AWS Key Management Service (AWS KMS)
* symmetric customer managed customer master key (CMK) that was used for stored in
* Amazon S3 object. </p>
*/
inline const Aws::String& GetSSEKMSKeyId() const{ return m_sSEKMSKeyId; }
/**
* <p> If present, specifies the ID of the AWS Key Management Service (AWS KMS)
* symmetric customer managed customer master key (CMK) that was used for stored in
* Amazon S3 object. </p>
*/
inline bool SSEKMSKeyIdHasBeenSet() const { return m_sSEKMSKeyIdHasBeenSet; }
/**
* <p> If present, specifies the ID of the AWS Key Management Service (AWS KMS)
* symmetric customer managed customer master key (CMK) that was used for stored in
* Amazon S3 object. </p>
*/
inline void SetSSEKMSKeyId(const Aws::String& value) { m_sSEKMSKeyIdHasBeenSet = true; m_sSEKMSKeyId = value; }
/**
* <p> If present, specifies the ID of the AWS Key Management Service (AWS KMS)
* symmetric customer managed customer master key (CMK) that was used for stored in
* Amazon S3 object. </p>
*/
inline void SetSSEKMSKeyId(Aws::String&& value) { m_sSEKMSKeyIdHasBeenSet = true; m_sSEKMSKeyId = std::move(value); }
/**
* <p> If present, specifies the ID of the AWS Key Management Service (AWS KMS)
* symmetric customer managed customer master key (CMK) that was used for stored in
* Amazon S3 object. </p>
*/
inline void SetSSEKMSKeyId(const char* value) { m_sSEKMSKeyIdHasBeenSet = true; m_sSEKMSKeyId.assign(value); }
/**
* <p> If present, specifies the ID of the AWS Key Management Service (AWS KMS)
* symmetric customer managed customer master key (CMK) that was used for stored in
* Amazon S3 object. </p>
*/
inline WriteGetObjectResponseRequest& WithSSEKMSKeyId(const Aws::String& value) { SetSSEKMSKeyId(value); return *this;}
/**
* <p> If present, specifies the ID of the AWS Key Management Service (AWS KMS)
* symmetric customer managed customer master key (CMK) that was used for stored in
* Amazon S3 object. </p>
*/
inline WriteGetObjectResponseRequest& WithSSEKMSKeyId(Aws::String&& value) { SetSSEKMSKeyId(std::move(value)); return *this;}
/**
* <p> If present, specifies the ID of the AWS Key Management Service (AWS KMS)
* symmetric customer managed customer master key (CMK) that was used for stored in
* Amazon S3 object. </p>
*/
inline WriteGetObjectResponseRequest& WithSSEKMSKeyId(const char* value) { SetSSEKMSKeyId(value); return *this;}
/**
* <p> 128-bit MD5 digest of customer-provided encryption key used in Amazon S3 to
* encrypt data stored in S3. For more information, see <a
* href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html">Protecting
* data using server-side encryption with customer-provided encryption keys
* (SSE-C)</a>.</p>
*/
inline const Aws::String& GetSSECustomerKeyMD5() const{ return m_sSECustomerKeyMD5; }
/**
* <p> 128-bit MD5 digest of customer-provided encryption key used in Amazon S3 to
* encrypt data stored in S3. For more information, see <a
* href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html">Protecting
* data using server-side encryption with customer-provided encryption keys
* (SSE-C)</a>.</p>
*/
inline bool SSECustomerKeyMD5HasBeenSet() const { return m_sSECustomerKeyMD5HasBeenSet; }
/**
* <p> 128-bit MD5 digest of customer-provided encryption key used in Amazon S3 to
* encrypt data stored in S3. For more information, see <a
* href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html">Protecting
* data using server-side encryption with customer-provided encryption keys
* (SSE-C)</a>.</p>
*/
inline void SetSSECustomerKeyMD5(const Aws::String& value) { m_sSECustomerKeyMD5HasBeenSet = true; m_sSECustomerKeyMD5 = value; }
/**
* <p> 128-bit MD5 digest of customer-provided encryption key used in Amazon S3 to
* encrypt data stored in S3. For more information, see <a
* href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html">Protecting
* data using server-side encryption with customer-provided encryption keys
* (SSE-C)</a>.</p>
*/
inline void SetSSECustomerKeyMD5(Aws::String&& value) { m_sSECustomerKeyMD5HasBeenSet = true; m_sSECustomerKeyMD5 = std::move(value); }
/**
* <p> 128-bit MD5 digest of customer-provided encryption key used in Amazon S3 to
* encrypt data stored in S3. For more information, see <a
* href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html">Protecting
* data using server-side encryption with customer-provided encryption keys
* (SSE-C)</a>.</p>
*/
inline void SetSSECustomerKeyMD5(const char* value) { m_sSECustomerKeyMD5HasBeenSet = true; m_sSECustomerKeyMD5.assign(value); }
/**
* <p> 128-bit MD5 digest of customer-provided encryption key used in Amazon S3 to
* encrypt data stored in S3. For more information, see <a
* href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html">Protecting
* data using server-side encryption with customer-provided encryption keys
* (SSE-C)</a>.</p>
*/
inline WriteGetObjectResponseRequest& WithSSECustomerKeyMD5(const Aws::String& value) { SetSSECustomerKeyMD5(value); return *this;}
/**
* <p> 128-bit MD5 digest of customer-provided encryption key used in Amazon S3 to
* encrypt data stored in S3. For more information, see <a
* href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html">Protecting
* data using server-side encryption with customer-provided encryption keys
* (SSE-C)</a>.</p>
*/
inline WriteGetObjectResponseRequest& WithSSECustomerKeyMD5(Aws::String&& value) { SetSSECustomerKeyMD5(std::move(value)); return *this;}
/**
* <p> 128-bit MD5 digest of customer-provided encryption key used in Amazon S3 to
* encrypt data stored in S3. For more information, see <a
* href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html">Protecting
* data using server-side encryption with customer-provided encryption keys
* (SSE-C)</a>.</p>
*/
inline WriteGetObjectResponseRequest& WithSSECustomerKeyMD5(const char* value) { SetSSECustomerKeyMD5(value); return *this;}
/**
* <p> The class of storage used to store object in Amazon S3.</p>
*/
inline const StorageClass& GetStorageClass() const{ return m_storageClass; }
/**
* <p> The class of storage used to store object in Amazon S3.</p>
*/
inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; }
/**
* <p> The class of storage used to store object in Amazon S3.</p>
*/
inline void SetStorageClass(const StorageClass& value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
/**
* <p> The class of storage used to store object in Amazon S3.</p>
*/
inline void SetStorageClass(StorageClass&& value) { m_storageClassHasBeenSet = true; m_storageClass = std::move(value); }
/**
* <p> The class of storage used to store object in Amazon S3.</p>
*/
inline WriteGetObjectResponseRequest& WithStorageClass(const StorageClass& value) { SetStorageClass(value); return *this;}
/**
* <p> The class of storage used to store object in Amazon S3.</p>
*/
inline WriteGetObjectResponseRequest& WithStorageClass(StorageClass&& value) { SetStorageClass(std::move(value)); return *this;}
/**
* <p>The number of tags, if any, on the object.</p>
*/
inline int GetTagCount() const{ return m_tagCount; }
/**
* <p>The number of tags, if any, on the object.</p>
*/
inline bool TagCountHasBeenSet() const { return m_tagCountHasBeenSet; }
/**
* <p>The number of tags, if any, on the object.</p>
*/
inline void SetTagCount(int value) { m_tagCountHasBeenSet = true; m_tagCount = value; }
/**
* <p>The number of tags, if any, on the object.</p>
*/
inline WriteGetObjectResponseRequest& WithTagCount(int value) { SetTagCount(value); return *this;}
/**
* <p>An ID used to reference a specific version of the object.</p>
*/
inline const Aws::String& GetVersionId() const{ return m_versionId; }
/**
* <p>An ID used to reference a specific version of the object.</p>
*/
inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
/**
* <p>An ID used to reference a specific version of the object.</p>
*/
inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
/**
* <p>An ID used to reference a specific version of the object.</p>
*/
inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
/**
* <p>An ID used to reference a specific version of the object.</p>
*/
inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
/**
* <p>An ID used to reference a specific version of the object.</p>
*/
inline WriteGetObjectResponseRequest& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
/**
* <p>An ID used to reference a specific version of the object.</p>
*/
inline WriteGetObjectResponseRequest& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
/**
* <p>An ID used to reference a specific version of the object.</p>
*/
inline WriteGetObjectResponseRequest& WithVersionId(const char* value) { SetVersionId(value); return *this;}
/**
* <p> Indicates whether the object stored in Amazon S3 uses an S3 bucket key for
* server-side encryption with AWS KMS (SSE-KMS).</p>
*/
inline bool GetBucketKeyEnabled() const{ return m_bucketKeyEnabled; }
/**
* <p> Indicates whether the object stored in Amazon S3 uses an S3 bucket key for
* server-side encryption with AWS KMS (SSE-KMS).</p>
*/
inline bool BucketKeyEnabledHasBeenSet() const { return m_bucketKeyEnabledHasBeenSet; }
/**
* <p> Indicates whether the object stored in Amazon S3 uses an S3 bucket key for
* server-side encryption with AWS KMS (SSE-KMS).</p>
*/
inline void SetBucketKeyEnabled(bool value) { m_bucketKeyEnabledHasBeenSet = true; m_bucketKeyEnabled = value; }
/**
* <p> Indicates whether the object stored in Amazon S3 uses an S3 bucket key for
* server-side encryption with AWS KMS (SSE-KMS).</p>
*/
inline WriteGetObjectResponseRequest& WithBucketKeyEnabled(bool value) { SetBucketKeyEnabled(value); return *this;}
inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
inline WriteGetObjectResponseRequest& WithCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { SetCustomizedAccessLogTag(value); return *this;}
inline WriteGetObjectResponseRequest& WithCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& 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<Aws::String, Aws::String> 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<Aws::String, Aws::String> m_customizedAccessLogTag;
bool m_customizedAccessLogTagHasBeenSet;
};
} // namespace Model
} // namespace S3
} // namespace Aws