/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A metadata entry for a folder or object.See Also:
AWS
* API Reference
The name of the item.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the item.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the item.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the item.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the item.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the item.
*/ inline Item& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the item.
*/ inline Item& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the item.
*/ inline Item& WithName(const char* value) { SetName(value); return *this;} /** *The item type (folder or object).
*/ inline const ItemType& GetType() const{ return m_type; } /** *The item type (folder or object).
*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *The item type (folder or object).
*/ inline void SetType(const ItemType& value) { m_typeHasBeenSet = true; m_type = value; } /** *The item type (folder or object).
*/ inline void SetType(ItemType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *The item type (folder or object).
*/ inline Item& WithType(const ItemType& value) { SetType(value); return *this;} /** *The item type (folder or object).
*/ inline Item& WithType(ItemType&& value) { SetType(std::move(value)); return *this;} /** *The ETag that represents a unique instance of the item.
*/ inline const Aws::String& GetETag() const{ return m_eTag; } /** *The ETag that represents a unique instance of the item.
*/ inline bool ETagHasBeenSet() const { return m_eTagHasBeenSet; } /** *The ETag that represents a unique instance of the item.
*/ inline void SetETag(const Aws::String& value) { m_eTagHasBeenSet = true; m_eTag = value; } /** *The ETag that represents a unique instance of the item.
*/ inline void SetETag(Aws::String&& value) { m_eTagHasBeenSet = true; m_eTag = std::move(value); } /** *The ETag that represents a unique instance of the item.
*/ inline void SetETag(const char* value) { m_eTagHasBeenSet = true; m_eTag.assign(value); } /** *The ETag that represents a unique instance of the item.
*/ inline Item& WithETag(const Aws::String& value) { SetETag(value); return *this;} /** *The ETag that represents a unique instance of the item.
*/ inline Item& WithETag(Aws::String&& value) { SetETag(std::move(value)); return *this;} /** *The ETag that represents a unique instance of the item.
*/ inline Item& WithETag(const char* value) { SetETag(value); return *this;} /** *The date and time that the item was last modified.
*/ inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; } /** *The date and time that the item was last modified.
*/ inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; } /** *The date and time that the item was last modified.
*/ inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModifiedHasBeenSet = true; m_lastModified = value; } /** *The date and time that the item was last modified.
*/ inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::move(value); } /** *The date and time that the item was last modified.
*/ inline Item& WithLastModified(const Aws::Utils::DateTime& value) { SetLastModified(value); return *this;} /** *The date and time that the item was last modified.
*/ inline Item& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(std::move(value)); return *this;} /** *The content type of the item.
*/ inline const Aws::String& GetContentType() const{ return m_contentType; } /** *The content type of the item.
*/ inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; } /** *The content type of the item.
*/ inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; } /** *The content type of the item.
*/ inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); } /** *The content type of the item.
*/ inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); } /** *The content type of the item.
*/ inline Item& WithContentType(const Aws::String& value) { SetContentType(value); return *this;} /** *The content type of the item.
*/ inline Item& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;} /** *The content type of the item.
*/ inline Item& WithContentType(const char* value) { SetContentType(value); return *this;} /** *The length of the item in bytes.
*/ inline long long GetContentLength() const{ return m_contentLength; } /** *The length of the item in bytes.
*/ inline bool ContentLengthHasBeenSet() const { return m_contentLengthHasBeenSet; } /** *The length of the item in bytes.
*/ inline void SetContentLength(long long value) { m_contentLengthHasBeenSet = true; m_contentLength = value; } /** *The length of the item in bytes.
*/ inline Item& WithContentLength(long long value) { SetContentLength(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; ItemType m_type; bool m_typeHasBeenSet = false; Aws::String m_eTag; bool m_eTagHasBeenSet = false; Aws::Utils::DateTime m_lastModified; bool m_lastModifiedHasBeenSet = false; Aws::String m_contentType; bool m_contentTypeHasBeenSet = false; long long m_contentLength; bool m_contentLengthHasBeenSet = false; }; } // namespace Model } // namespace MediaStoreData } // namespace Aws