/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace S3 { namespace Model { /** *

A collection of parts associated with a multipart upload.

See * Also:

AWS * API Reference

*/ class GetObjectAttributesParts { public: AWS_S3_API GetObjectAttributesParts(); AWS_S3_API GetObjectAttributesParts(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_S3_API GetObjectAttributesParts& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; /** *

The total number of parts.

*/ inline int GetTotalPartsCount() const{ return m_totalPartsCount; } /** *

The total number of parts.

*/ inline bool TotalPartsCountHasBeenSet() const { return m_totalPartsCountHasBeenSet; } /** *

The total number of parts.

*/ inline void SetTotalPartsCount(int value) { m_totalPartsCountHasBeenSet = true; m_totalPartsCount = value; } /** *

The total number of parts.

*/ inline GetObjectAttributesParts& WithTotalPartsCount(int value) { SetTotalPartsCount(value); return *this;} /** *

The marker for the current part.

*/ inline int GetPartNumberMarker() const{ return m_partNumberMarker; } /** *

The marker for the current part.

*/ inline bool PartNumberMarkerHasBeenSet() const { return m_partNumberMarkerHasBeenSet; } /** *

The marker for the current part.

*/ inline void SetPartNumberMarker(int value) { m_partNumberMarkerHasBeenSet = true; m_partNumberMarker = value; } /** *

The marker for the current part.

*/ inline GetObjectAttributesParts& WithPartNumberMarker(int value) { SetPartNumberMarker(value); return *this;} /** *

When a list is truncated, this element specifies the last part in the list, * as well as the value to use for the PartNumberMarker request * parameter in a subsequent request.

*/ inline int GetNextPartNumberMarker() const{ return m_nextPartNumberMarker; } /** *

When a list is truncated, this element specifies the last part in the list, * as well as the value to use for the PartNumberMarker request * parameter in a subsequent request.

*/ inline bool NextPartNumberMarkerHasBeenSet() const { return m_nextPartNumberMarkerHasBeenSet; } /** *

When a list is truncated, this element specifies the last part in the list, * as well as the value to use for the PartNumberMarker request * parameter in a subsequent request.

*/ inline void SetNextPartNumberMarker(int value) { m_nextPartNumberMarkerHasBeenSet = true; m_nextPartNumberMarker = value; } /** *

When a list is truncated, this element specifies the last part in the list, * as well as the value to use for the PartNumberMarker request * parameter in a subsequent request.

*/ inline GetObjectAttributesParts& WithNextPartNumberMarker(int value) { SetNextPartNumberMarker(value); return *this;} /** *

The maximum number of parts allowed in the response.

*/ inline int GetMaxParts() const{ return m_maxParts; } /** *

The maximum number of parts allowed in the response.

*/ inline bool MaxPartsHasBeenSet() const { return m_maxPartsHasBeenSet; } /** *

The maximum number of parts allowed in the response.

*/ inline void SetMaxParts(int value) { m_maxPartsHasBeenSet = true; m_maxParts = value; } /** *

The maximum number of parts allowed in the response.

*/ inline GetObjectAttributesParts& WithMaxParts(int value) { SetMaxParts(value); return *this;} /** *

Indicates whether the returned list of parts is truncated. A value of * true indicates that the list was truncated. A list can be truncated * if the number of parts exceeds the limit returned in the MaxParts * element.

*/ inline bool GetIsTruncated() const{ return m_isTruncated; } /** *

Indicates whether the returned list of parts is truncated. A value of * true indicates that the list was truncated. A list can be truncated * if the number of parts exceeds the limit returned in the MaxParts * element.

*/ inline bool IsTruncatedHasBeenSet() const { return m_isTruncatedHasBeenSet; } /** *

Indicates whether the returned list of parts is truncated. A value of * true indicates that the list was truncated. A list can be truncated * if the number of parts exceeds the limit returned in the MaxParts * element.

*/ inline void SetIsTruncated(bool value) { m_isTruncatedHasBeenSet = true; m_isTruncated = value; } /** *

Indicates whether the returned list of parts is truncated. A value of * true indicates that the list was truncated. A list can be truncated * if the number of parts exceeds the limit returned in the MaxParts * element.

*/ inline GetObjectAttributesParts& WithIsTruncated(bool value) { SetIsTruncated(value); return *this;} /** *

A container for elements related to a particular part. A response can contain * zero or more Parts elements.

*/ inline const Aws::Vector& GetParts() const{ return m_parts; } /** *

A container for elements related to a particular part. A response can contain * zero or more Parts elements.

*/ inline bool PartsHasBeenSet() const { return m_partsHasBeenSet; } /** *

A container for elements related to a particular part. A response can contain * zero or more Parts elements.

*/ inline void SetParts(const Aws::Vector& value) { m_partsHasBeenSet = true; m_parts = value; } /** *

A container for elements related to a particular part. A response can contain * zero or more Parts elements.

*/ inline void SetParts(Aws::Vector&& value) { m_partsHasBeenSet = true; m_parts = std::move(value); } /** *

A container for elements related to a particular part. A response can contain * zero or more Parts elements.

*/ inline GetObjectAttributesParts& WithParts(const Aws::Vector& value) { SetParts(value); return *this;} /** *

A container for elements related to a particular part. A response can contain * zero or more Parts elements.

*/ inline GetObjectAttributesParts& WithParts(Aws::Vector&& value) { SetParts(std::move(value)); return *this;} /** *

A container for elements related to a particular part. A response can contain * zero or more Parts elements.

*/ inline GetObjectAttributesParts& AddParts(const ObjectPart& value) { m_partsHasBeenSet = true; m_parts.push_back(value); return *this; } /** *

A container for elements related to a particular part. A response can contain * zero or more Parts elements.

*/ inline GetObjectAttributesParts& AddParts(ObjectPart&& value) { m_partsHasBeenSet = true; m_parts.push_back(std::move(value)); return *this; } private: int m_totalPartsCount; bool m_totalPartsCountHasBeenSet = false; int m_partNumberMarker; bool m_partNumberMarkerHasBeenSet = false; int m_nextPartNumberMarker; bool m_nextPartNumberMarkerHasBeenSet = false; int m_maxParts; bool m_maxPartsHasBeenSet = false; bool m_isTruncated; bool m_isTruncatedHasBeenSet = false; Aws::Vector m_parts; bool m_partsHasBeenSet = false; }; } // namespace Model } // namespace S3 } // namespace Aws