/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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.

For * information about the underlying REST API, see Upload * Archive. For conceptual information, see Working * with Archives in Amazon S3 Glacier.

See Also:

AWS * API Reference

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

The relative URI path of the newly added archive resource.

*/ inline const Aws::String& GetLocation() const{ return m_location; } /** *

The relative URI path of the newly added archive resource.

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

The relative URI path of the newly added archive resource.

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

The relative URI path of the newly added archive resource.

*/ inline void SetLocation(const char* value) { m_location.assign(value); } /** *

The relative URI path of the newly added archive resource.

*/ inline CompleteMultipartUploadResult& WithLocation(const Aws::String& value) { SetLocation(value); return *this;} /** *

The relative URI path of the newly added archive resource.

*/ inline CompleteMultipartUploadResult& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;} /** *

The relative URI path of the newly added archive resource.

*/ inline CompleteMultipartUploadResult& WithLocation(const char* value) { SetLocation(value); return *this;} /** *

The checksum of the archive computed by Amazon S3 Glacier.

*/ inline const Aws::String& GetChecksum() const{ return m_checksum; } /** *

The checksum of the archive computed by Amazon S3 Glacier.

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

The checksum of the archive computed by Amazon S3 Glacier.

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

The checksum of the archive computed by Amazon S3 Glacier.

*/ inline void SetChecksum(const char* value) { m_checksum.assign(value); } /** *

The checksum of the archive computed by Amazon S3 Glacier.

*/ inline CompleteMultipartUploadResult& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;} /** *

The checksum of the archive computed by Amazon S3 Glacier.

*/ inline CompleteMultipartUploadResult& WithChecksum(Aws::String&& value) { SetChecksum(std::move(value)); return *this;} /** *

The checksum of the archive computed by Amazon S3 Glacier.

*/ inline CompleteMultipartUploadResult& WithChecksum(const char* value) { SetChecksum(value); return *this;} /** *

The ID of the archive. This value is also included as part of the * location.

*/ inline const Aws::String& GetArchiveId() const{ return m_archiveId; } /** *

The ID of the archive. This value is also included as part of the * location.

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

The ID of the archive. This value is also included as part of the * location.

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

The ID of the archive. This value is also included as part of the * location.

*/ inline void SetArchiveId(const char* value) { m_archiveId.assign(value); } /** *

The ID of the archive. This value is also included as part of the * location.

*/ inline CompleteMultipartUploadResult& WithArchiveId(const Aws::String& value) { SetArchiveId(value); return *this;} /** *

The ID of the archive. This value is also included as part of the * location.

*/ inline CompleteMultipartUploadResult& WithArchiveId(Aws::String&& value) { SetArchiveId(std::move(value)); return *this;} /** *

The ID of the archive. This value is also included as part of the * location.

*/ inline CompleteMultipartUploadResult& WithArchiveId(const char* value) { SetArchiveId(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 CompleteMultipartUploadResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CompleteMultipartUploadResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CompleteMultipartUploadResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_location; Aws::String m_checksum; Aws::String m_archiveId; Aws::String m_requestId; }; } // namespace Model } // namespace Glacier } // namespace Aws