/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Glacier { namespace Model { /** *

Contains the Amazon S3 Glacier response to your request.

See * Also:

AWS * API Reference

*/ class ListPartsResult { public: AWS_GLACIER_API ListPartsResult(); AWS_GLACIER_API ListPartsResult(const Aws::AmazonWebServiceResult& result); AWS_GLACIER_API ListPartsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ID of the upload to which the parts are associated.

*/ inline const Aws::String& GetMultipartUploadId() const{ return m_multipartUploadId; } /** *

The ID of the upload to which the parts are associated.

*/ inline void SetMultipartUploadId(const Aws::String& value) { m_multipartUploadId = value; } /** *

The ID of the upload to which the parts are associated.

*/ inline void SetMultipartUploadId(Aws::String&& value) { m_multipartUploadId = std::move(value); } /** *

The ID of the upload to which the parts are associated.

*/ inline void SetMultipartUploadId(const char* value) { m_multipartUploadId.assign(value); } /** *

The ID of the upload to which the parts are associated.

*/ inline ListPartsResult& WithMultipartUploadId(const Aws::String& value) { SetMultipartUploadId(value); return *this;} /** *

The ID of the upload to which the parts are associated.

*/ inline ListPartsResult& WithMultipartUploadId(Aws::String&& value) { SetMultipartUploadId(std::move(value)); return *this;} /** *

The ID of the upload to which the parts are associated.

*/ inline ListPartsResult& WithMultipartUploadId(const char* value) { SetMultipartUploadId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the vault to which the multipart upload was * initiated.

*/ inline const Aws::String& GetVaultARN() const{ return m_vaultARN; } /** *

The Amazon Resource Name (ARN) of the vault to which the multipart upload was * initiated.

*/ inline void SetVaultARN(const Aws::String& value) { m_vaultARN = value; } /** *

The Amazon Resource Name (ARN) of the vault to which the multipart upload was * initiated.

*/ inline void SetVaultARN(Aws::String&& value) { m_vaultARN = std::move(value); } /** *

The Amazon Resource Name (ARN) of the vault to which the multipart upload was * initiated.

*/ inline void SetVaultARN(const char* value) { m_vaultARN.assign(value); } /** *

The Amazon Resource Name (ARN) of the vault to which the multipart upload was * initiated.

*/ inline ListPartsResult& WithVaultARN(const Aws::String& value) { SetVaultARN(value); return *this;} /** *

The Amazon Resource Name (ARN) of the vault to which the multipart upload was * initiated.

*/ inline ListPartsResult& WithVaultARN(Aws::String&& value) { SetVaultARN(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the vault to which the multipart upload was * initiated.

*/ inline ListPartsResult& WithVaultARN(const char* value) { SetVaultARN(value); return *this;} /** *

The description of the archive that was specified in the Initiate Multipart * Upload request.

*/ inline const Aws::String& GetArchiveDescription() const{ return m_archiveDescription; } /** *

The description of the archive that was specified in the Initiate Multipart * Upload request.

*/ inline void SetArchiveDescription(const Aws::String& value) { m_archiveDescription = value; } /** *

The description of the archive that was specified in the Initiate Multipart * Upload request.

*/ inline void SetArchiveDescription(Aws::String&& value) { m_archiveDescription = std::move(value); } /** *

The description of the archive that was specified in the Initiate Multipart * Upload request.

*/ inline void SetArchiveDescription(const char* value) { m_archiveDescription.assign(value); } /** *

The description of the archive that was specified in the Initiate Multipart * Upload request.

*/ inline ListPartsResult& WithArchiveDescription(const Aws::String& value) { SetArchiveDescription(value); return *this;} /** *

The description of the archive that was specified in the Initiate Multipart * Upload request.

*/ inline ListPartsResult& WithArchiveDescription(Aws::String&& value) { SetArchiveDescription(std::move(value)); return *this;} /** *

The description of the archive that was specified in the Initiate Multipart * Upload request.

*/ inline ListPartsResult& WithArchiveDescription(const char* value) { SetArchiveDescription(value); return *this;} /** *

The part size in bytes. This is the same value that you specified in the * Initiate Multipart Upload request.

*/ inline long long GetPartSizeInBytes() const{ return m_partSizeInBytes; } /** *

The part size in bytes. This is the same value that you specified in the * Initiate Multipart Upload request.

*/ inline void SetPartSizeInBytes(long long value) { m_partSizeInBytes = value; } /** *

The part size in bytes. This is the same value that you specified in the * Initiate Multipart Upload request.

*/ inline ListPartsResult& WithPartSizeInBytes(long long value) { SetPartSizeInBytes(value); return *this;} /** *

The UTC time at which the multipart upload was initiated.

*/ inline const Aws::String& GetCreationDate() const{ return m_creationDate; } /** *

The UTC time at which the multipart upload was initiated.

*/ inline void SetCreationDate(const Aws::String& value) { m_creationDate = value; } /** *

The UTC time at which the multipart upload was initiated.

*/ inline void SetCreationDate(Aws::String&& value) { m_creationDate = std::move(value); } /** *

The UTC time at which the multipart upload was initiated.

*/ inline void SetCreationDate(const char* value) { m_creationDate.assign(value); } /** *

The UTC time at which the multipart upload was initiated.

*/ inline ListPartsResult& WithCreationDate(const Aws::String& value) { SetCreationDate(value); return *this;} /** *

The UTC time at which the multipart upload was initiated.

*/ inline ListPartsResult& WithCreationDate(Aws::String&& value) { SetCreationDate(std::move(value)); return *this;} /** *

The UTC time at which the multipart upload was initiated.

*/ inline ListPartsResult& WithCreationDate(const char* value) { SetCreationDate(value); return *this;} /** *

A list of the part sizes of the multipart upload. Each object in the array * contains a RangeBytes and sha256-tree-hash name/value * pair.

*/ inline const Aws::Vector& GetParts() const{ return m_parts; } /** *

A list of the part sizes of the multipart upload. Each object in the array * contains a RangeBytes and sha256-tree-hash name/value * pair.

*/ inline void SetParts(const Aws::Vector& value) { m_parts = value; } /** *

A list of the part sizes of the multipart upload. Each object in the array * contains a RangeBytes and sha256-tree-hash name/value * pair.

*/ inline void SetParts(Aws::Vector&& value) { m_parts = std::move(value); } /** *

A list of the part sizes of the multipart upload. Each object in the array * contains a RangeBytes and sha256-tree-hash name/value * pair.

*/ inline ListPartsResult& WithParts(const Aws::Vector& value) { SetParts(value); return *this;} /** *

A list of the part sizes of the multipart upload. Each object in the array * contains a RangeBytes and sha256-tree-hash name/value * pair.

*/ inline ListPartsResult& WithParts(Aws::Vector&& value) { SetParts(std::move(value)); return *this;} /** *

A list of the part sizes of the multipart upload. Each object in the array * contains a RangeBytes and sha256-tree-hash name/value * pair.

*/ inline ListPartsResult& AddParts(const PartListElement& value) { m_parts.push_back(value); return *this; } /** *

A list of the part sizes of the multipart upload. Each object in the array * contains a RangeBytes and sha256-tree-hash name/value * pair.

*/ inline ListPartsResult& AddParts(PartListElement&& value) { m_parts.push_back(std::move(value)); return *this; } /** *

An opaque string that represents where to continue pagination of the results. * You use the marker in a new List Parts request to obtain more jobs in the list. * If there are no more parts, this value is null.

*/ inline const Aws::String& GetMarker() const{ return m_marker; } /** *

An opaque string that represents where to continue pagination of the results. * You use the marker in a new List Parts request to obtain more jobs in the list. * If there are no more parts, this value is null.

*/ inline void SetMarker(const Aws::String& value) { m_marker = value; } /** *

An opaque string that represents where to continue pagination of the results. * You use the marker in a new List Parts request to obtain more jobs in the list. * If there are no more parts, this value is null.

*/ inline void SetMarker(Aws::String&& value) { m_marker = std::move(value); } /** *

An opaque string that represents where to continue pagination of the results. * You use the marker in a new List Parts request to obtain more jobs in the list. * If there are no more parts, this value is null.

*/ inline void SetMarker(const char* value) { m_marker.assign(value); } /** *

An opaque string that represents where to continue pagination of the results. * You use the marker in a new List Parts request to obtain more jobs in the list. * If there are no more parts, this value is null.

*/ inline ListPartsResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;} /** *

An opaque string that represents where to continue pagination of the results. * You use the marker in a new List Parts request to obtain more jobs in the list. * If there are no more parts, this value is null.

*/ inline ListPartsResult& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;} /** *

An opaque string that represents where to continue pagination of the results. * You use the marker in a new List Parts request to obtain more jobs in the list. * If there are no more parts, this value is null.

*/ inline ListPartsResult& WithMarker(const char* value) { SetMarker(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline ListPartsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListPartsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListPartsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_multipartUploadId; Aws::String m_vaultARN; Aws::String m_archiveDescription; long long m_partSizeInBytes; Aws::String m_creationDate; Aws::Vector m_parts; Aws::String m_marker; Aws::String m_requestId; }; } // namespace Model } // namespace Glacier } // namespace Aws