/** * 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 namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace S3Crt { namespace Model { class GetObjectAttributesResult { public: AWS_S3CRT_API GetObjectAttributesResult(); AWS_S3CRT_API GetObjectAttributesResult(const Aws::AmazonWebServiceResult& result); AWS_S3CRT_API GetObjectAttributesResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Specifies whether the object retrieved was (true) or was not * (false) a delete marker. If false, this response * header does not appear in the response.

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

Specifies whether the object retrieved was (true) or was not * (false) a delete marker. If false, this response * header does not appear in the response.

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

Specifies whether the object retrieved was (true) or was not * (false) a delete marker. If false, this response * header does not appear in the response.

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

The creation date of the object.

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

The creation date of the object.

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

The creation date of the object.

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

The creation date of the object.

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

The creation date of the object.

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

The version ID of the object.

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

The version ID of the object.

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

The version ID of the object.

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

The version ID of the object.

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

The version ID of the object.

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

The version ID of the object.

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

The version ID of the object.

*/ inline GetObjectAttributesResult& WithVersionId(const char* value) { SetVersionId(value); return *this;} inline const RequestCharged& GetRequestCharged() const{ return m_requestCharged; } inline void SetRequestCharged(const RequestCharged& value) { m_requestCharged = value; } inline void SetRequestCharged(RequestCharged&& value) { m_requestCharged = std::move(value); } inline GetObjectAttributesResult& WithRequestCharged(const RequestCharged& value) { SetRequestCharged(value); return *this;} inline GetObjectAttributesResult& WithRequestCharged(RequestCharged&& value) { SetRequestCharged(std::move(value)); return *this;} /** *

An ETag is 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 ETag is 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_eTag = value; } /** *

An ETag is 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_eTag = std::move(value); } /** *

An ETag is 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_eTag.assign(value); } /** *

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

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

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

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

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

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

The checksum or digest of the object.

*/ inline const Checksum& GetChecksum() const{ return m_checksum; } /** *

The checksum or digest of the object.

*/ inline void SetChecksum(const Checksum& value) { m_checksum = value; } /** *

The checksum or digest of the object.

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

The checksum or digest of the object.

*/ inline GetObjectAttributesResult& WithChecksum(const Checksum& value) { SetChecksum(value); return *this;} /** *

The checksum or digest of the object.

*/ inline GetObjectAttributesResult& WithChecksum(Checksum&& value) { SetChecksum(std::move(value)); return *this;} /** *

A collection of parts associated with a multipart upload.

*/ inline const GetObjectAttributesParts& GetObjectParts() const{ return m_objectParts; } /** *

A collection of parts associated with a multipart upload.

*/ inline void SetObjectParts(const GetObjectAttributesParts& value) { m_objectParts = value; } /** *

A collection of parts associated with a multipart upload.

*/ inline void SetObjectParts(GetObjectAttributesParts&& value) { m_objectParts = std::move(value); } /** *

A collection of parts associated with a multipart upload.

*/ inline GetObjectAttributesResult& WithObjectParts(const GetObjectAttributesParts& value) { SetObjectParts(value); return *this;} /** *

A collection of parts associated with a multipart upload.

*/ inline GetObjectAttributesResult& WithObjectParts(GetObjectAttributesParts&& value) { SetObjectParts(std::move(value)); return *this;} /** *

Provides the storage class information of the object. Amazon S3 returns this * header for all objects except for S3 Standard storage class objects.

For * more information, see Storage * Classes.

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

Provides the storage class information of the object. Amazon S3 returns this * header for all objects except for S3 Standard storage class objects.

For * more information, see Storage * Classes.

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

Provides the storage class information of the object. Amazon S3 returns this * header for all objects except for S3 Standard storage class objects.

For * more information, see Storage * Classes.

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

Provides the storage class information of the object. Amazon S3 returns this * header for all objects except for S3 Standard storage class objects.

For * more information, see Storage * Classes.

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

Provides the storage class information of the object. Amazon S3 returns this * header for all objects except for S3 Standard storage class objects.

For * more information, see Storage * Classes.

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

The size of the object in bytes.

*/ inline long long GetObjectSize() const{ return m_objectSize; } /** *

The size of the object in bytes.

*/ inline void SetObjectSize(long long value) { m_objectSize = value; } /** *

The size of the object in bytes.

*/ inline GetObjectAttributesResult& WithObjectSize(long long value) { SetObjectSize(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 GetObjectAttributesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetObjectAttributesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetObjectAttributesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: bool m_deleteMarker; Aws::Utils::DateTime m_lastModified; Aws::String m_versionId; RequestCharged m_requestCharged; Aws::String m_eTag; Checksum m_checksum; GetObjectAttributesParts m_objectParts; StorageClass m_storageClass; long long m_objectSize; Aws::String m_requestId; }; } // namespace Model } // namespace S3Crt } // namespace Aws