/** * 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 DescribeObjectResult { public: AWS_MEDIASTOREDATA_API DescribeObjectResult(); AWS_MEDIASTOREDATA_API DescribeObjectResult(const Aws::AmazonWebServiceResult& result); AWS_MEDIASTOREDATA_API DescribeObjectResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ETag that represents a unique instance of the object.

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

The ETag that represents a unique instance of the object.

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

The ETag that represents a unique instance of the object.

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

The ETag that represents a unique instance of the object.

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

The ETag that represents a unique instance of the object.

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

The ETag that represents a unique instance of the object.

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

The ETag that represents a unique instance of the object.

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

The content type of the object.

*/ inline const Aws::String& GetContentType() const{ return m_contentType; } /** *

The content type of the object.

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

The content type of the object.

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

The content type of the object.

*/ inline void SetContentType(const char* value) { m_contentType.assign(value); } /** *

The content type of the object.

*/ inline DescribeObjectResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;} /** *

The content type of the object.

*/ inline DescribeObjectResult& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;} /** *

The content type of the object.

*/ inline DescribeObjectResult& WithContentType(const char* value) { SetContentType(value); return *this;} /** *

The length of the object in bytes.

*/ inline long long GetContentLength() const{ return m_contentLength; } /** *

The length of the object in bytes.

*/ inline void SetContentLength(long long value) { m_contentLength = value; } /** *

The length of the object in bytes.

*/ inline DescribeObjectResult& WithContentLength(long long value) { SetContentLength(value); return *this;} /** *

An optional CacheControl header that allows the caller to * control the object's cache behavior. Headers can be passed in as specified in * the HTTP at https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.

*

Headers with a custom user-defined value are also accepted.

*/ inline const Aws::String& GetCacheControl() const{ return m_cacheControl; } /** *

An optional CacheControl header that allows the caller to * control the object's cache behavior. Headers can be passed in as specified in * the HTTP at https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.

*

Headers with a custom user-defined value are also accepted.

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

An optional CacheControl header that allows the caller to * control the object's cache behavior. Headers can be passed in as specified in * the HTTP at https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.

*

Headers with a custom user-defined value are also accepted.

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

An optional CacheControl header that allows the caller to * control the object's cache behavior. Headers can be passed in as specified in * the HTTP at https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.

*

Headers with a custom user-defined value are also accepted.

*/ inline void SetCacheControl(const char* value) { m_cacheControl.assign(value); } /** *

An optional CacheControl header that allows the caller to * control the object's cache behavior. Headers can be passed in as specified in * the HTTP at https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.

*

Headers with a custom user-defined value are also accepted.

*/ inline DescribeObjectResult& WithCacheControl(const Aws::String& value) { SetCacheControl(value); return *this;} /** *

An optional CacheControl header that allows the caller to * control the object's cache behavior. Headers can be passed in as specified in * the HTTP at https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.

*

Headers with a custom user-defined value are also accepted.

*/ inline DescribeObjectResult& WithCacheControl(Aws::String&& value) { SetCacheControl(std::move(value)); return *this;} /** *

An optional CacheControl header that allows the caller to * control the object's cache behavior. Headers can be passed in as specified in * the HTTP at https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.

*

Headers with a custom user-defined value are also accepted.

*/ inline DescribeObjectResult& WithCacheControl(const char* value) { SetCacheControl(value); return *this;} /** *

The date and time that the object was last modified.

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

The date and time that the object was last modified.

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

The date and time that the object was last modified.

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

The date and time that the object was last modified.

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

The date and time that the object was last modified.

*/ inline DescribeObjectResult& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(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 DescribeObjectResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeObjectResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeObjectResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_eTag; Aws::String m_contentType; long long m_contentLength; Aws::String m_cacheControl; Aws::Utils::DateTime m_lastModified; Aws::String m_requestId; }; } // namespace Model } // namespace MediaStoreData } // namespace Aws