/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace MediaStoreData { namespace Model { class PutObjectResult { public: AWS_MEDIASTOREDATA_API PutObjectResult(); AWS_MEDIASTOREDATA_API PutObjectResult(const Aws::AmazonWebServiceResult& result); AWS_MEDIASTOREDATA_API PutObjectResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The SHA256 digest of the object that is persisted.

*/ inline const Aws::String& GetContentSHA256() const{ return m_contentSHA256; } /** *

The SHA256 digest of the object that is persisted.

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

The SHA256 digest of the object that is persisted.

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

The SHA256 digest of the object that is persisted.

*/ inline void SetContentSHA256(const char* value) { m_contentSHA256.assign(value); } /** *

The SHA256 digest of the object that is persisted.

*/ inline PutObjectResult& WithContentSHA256(const Aws::String& value) { SetContentSHA256(value); return *this;} /** *

The SHA256 digest of the object that is persisted.

*/ inline PutObjectResult& WithContentSHA256(Aws::String&& value) { SetContentSHA256(std::move(value)); return *this;} /** *

The SHA256 digest of the object that is persisted.

*/ inline PutObjectResult& WithContentSHA256(const char* value) { SetContentSHA256(value); return *this;} /** *

Unique identifier of the object in the container.

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

Unique identifier of the object in the container.

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

Unique identifier of the object in the container.

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

Unique identifier of the object in the container.

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

Unique identifier of the object in the container.

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

Unique identifier of the object in the container.

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

Unique identifier of the object in the container.

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

The storage class where the object was persisted. The class should be * “Temporal”.

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

The storage class where the object was persisted. The class should be * “Temporal”.

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

The storage class where the object was persisted. The class should be * “Temporal”.

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

The storage class where the object was persisted. The class should be * “Temporal”.

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

The storage class where the object was persisted. The class should be * “Temporal”.

*/ inline PutObjectResult& WithStorageClass(StorageClass&& value) { SetStorageClass(std::move(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 PutObjectResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline PutObjectResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline PutObjectResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_contentSHA256; Aws::String m_eTag; StorageClass m_storageClass; Aws::String m_requestId; }; } // namespace Model } // namespace MediaStoreData } // namespace Aws