/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Container for all response elements.See Also:
AWS
* API Reference
Returns the ETag of the new object. The ETag reflects only changes to the * contents of an object, not its metadata.
*/ inline const Aws::String& GetETag() const{ return m_eTag; } /** *Returns the ETag of the new object. The ETag reflects only changes to the * contents of an object, not its metadata.
*/ inline bool ETagHasBeenSet() const { return m_eTagHasBeenSet; } /** *Returns the ETag of the new object. The ETag reflects only changes to the * contents of an object, not its metadata.
*/ inline void SetETag(const Aws::String& value) { m_eTagHasBeenSet = true; m_eTag = value; } /** *Returns the ETag of the new object. The ETag reflects only changes to the * contents of an object, not its metadata.
*/ inline void SetETag(Aws::String&& value) { m_eTagHasBeenSet = true; m_eTag = std::move(value); } /** *Returns the ETag of the new object. The ETag reflects only changes to the * contents of an object, not its metadata.
*/ inline void SetETag(const char* value) { m_eTagHasBeenSet = true; m_eTag.assign(value); } /** *Returns the ETag of the new object. The ETag reflects only changes to the * contents of an object, not its metadata.
*/ inline CopyObjectResultDetails& WithETag(const Aws::String& value) { SetETag(value); return *this;} /** *Returns the ETag of the new object. The ETag reflects only changes to the * contents of an object, not its metadata.
*/ inline CopyObjectResultDetails& WithETag(Aws::String&& value) { SetETag(std::move(value)); return *this;} /** *Returns the ETag of the new object. The ETag reflects only changes to the * contents of an object, not its metadata.
*/ inline CopyObjectResultDetails& WithETag(const char* value) { SetETag(value); return *this;} /** *Creation date of the object.
*/ inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; } /** *Creation date of the object.
*/ inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; } /** *Creation date of the object.
*/ inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModifiedHasBeenSet = true; m_lastModified = value; } /** *Creation date of the object.
*/ inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::move(value); } /** *Creation date of the object.
*/ inline CopyObjectResultDetails& WithLastModified(const Aws::Utils::DateTime& value) { SetLastModified(value); return *this;} /** *Creation date of the object.
*/ inline CopyObjectResultDetails& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(std::move(value)); return *this;} private: Aws::String m_eTag; bool m_eTagHasBeenSet; Aws::Utils::DateTime m_lastModified; bool m_lastModifiedHasBeenSet; }; } // namespace Model } // namespace S3 } // namespace Aws