/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The metadata of a single part of a file that was added to a multipart
* upload. A list of these parts is returned in the response to the
* ListReadSetUploadParts API. See Also:
AWS
* API Reference
The number identifying the part in an upload.
*/ inline int GetPartNumber() const{ return m_partNumber; } /** *The number identifying the part in an upload.
*/ inline bool PartNumberHasBeenSet() const { return m_partNumberHasBeenSet; } /** *The number identifying the part in an upload.
*/ inline void SetPartNumber(int value) { m_partNumberHasBeenSet = true; m_partNumber = value; } /** *The number identifying the part in an upload.
*/ inline ReadSetUploadPartListItem& WithPartNumber(int value) { SetPartNumber(value); return *this;} /** *The size of the the part in an upload.
*/ inline long long GetPartSize() const{ return m_partSize; } /** *The size of the the part in an upload.
*/ inline bool PartSizeHasBeenSet() const { return m_partSizeHasBeenSet; } /** *The size of the the part in an upload.
*/ inline void SetPartSize(long long value) { m_partSizeHasBeenSet = true; m_partSize = value; } /** *The size of the the part in an upload.
*/ inline ReadSetUploadPartListItem& WithPartSize(long long value) { SetPartSize(value); return *this;} /** *The origin of the part being direct uploaded.
*/ inline const ReadSetPartSource& GetPartSource() const{ return m_partSource; } /** *The origin of the part being direct uploaded.
*/ inline bool PartSourceHasBeenSet() const { return m_partSourceHasBeenSet; } /** *The origin of the part being direct uploaded.
*/ inline void SetPartSource(const ReadSetPartSource& value) { m_partSourceHasBeenSet = true; m_partSource = value; } /** *The origin of the part being direct uploaded.
*/ inline void SetPartSource(ReadSetPartSource&& value) { m_partSourceHasBeenSet = true; m_partSource = std::move(value); } /** *The origin of the part being direct uploaded.
*/ inline ReadSetUploadPartListItem& WithPartSource(const ReadSetPartSource& value) { SetPartSource(value); return *this;} /** *The origin of the part being direct uploaded.
*/ inline ReadSetUploadPartListItem& WithPartSource(ReadSetPartSource&& value) { SetPartSource(std::move(value)); return *this;} /** *A unique identifier used to confirm that parts are being added to the * correct upload.
*/ inline const Aws::String& GetChecksum() const{ return m_checksum; } /** *A unique identifier used to confirm that parts are being added to the * correct upload.
*/ inline bool ChecksumHasBeenSet() const { return m_checksumHasBeenSet; } /** *A unique identifier used to confirm that parts are being added to the * correct upload.
*/ inline void SetChecksum(const Aws::String& value) { m_checksumHasBeenSet = true; m_checksum = value; } /** *A unique identifier used to confirm that parts are being added to the * correct upload.
*/ inline void SetChecksum(Aws::String&& value) { m_checksumHasBeenSet = true; m_checksum = std::move(value); } /** *A unique identifier used to confirm that parts are being added to the * correct upload.
*/ inline void SetChecksum(const char* value) { m_checksumHasBeenSet = true; m_checksum.assign(value); } /** *A unique identifier used to confirm that parts are being added to the * correct upload.
*/ inline ReadSetUploadPartListItem& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;} /** *A unique identifier used to confirm that parts are being added to the * correct upload.
*/ inline ReadSetUploadPartListItem& WithChecksum(Aws::String&& value) { SetChecksum(std::move(value)); return *this;} /** *A unique identifier used to confirm that parts are being added to the * correct upload.
*/ inline ReadSetUploadPartListItem& WithChecksum(const char* value) { SetChecksum(value); return *this;} /** *The time stamp for when a direct upload was created.
*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *The time stamp for when a direct upload was created.
*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *The time stamp for when a direct upload was created.
*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *The time stamp for when a direct upload was created.
*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *The time stamp for when a direct upload was created.
*/ inline ReadSetUploadPartListItem& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *The time stamp for when a direct upload was created.
*/ inline ReadSetUploadPartListItem& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *The time stamp for the most recent update to an uploaded part.
*/ inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; } /** *The time stamp for the most recent update to an uploaded part.
*/ inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; } /** *The time stamp for the most recent update to an uploaded part.
*/ inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; } /** *The time stamp for the most recent update to an uploaded part.
*/ inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); } /** *The time stamp for the most recent update to an uploaded part.
*/ inline ReadSetUploadPartListItem& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;} /** *The time stamp for the most recent update to an uploaded part.
*/ inline ReadSetUploadPartListItem& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;} private: int m_partNumber; bool m_partNumberHasBeenSet = false; long long m_partSize; bool m_partSizeHasBeenSet = false; ReadSetPartSource m_partSource; bool m_partSourceHasBeenSet = false; Aws::String m_checksum; bool m_checksumHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedTime; bool m_lastUpdatedTimeHasBeenSet = false; }; } // namespace Model } // namespace Omics } // namespace Aws