AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetObjectAttributesParts.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/s3/model/ObjectPart.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_S3_API GetObjectAttributesParts() = default;
38
39 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
41
43
46 inline int GetTotalPartsCount() const { return m_totalPartsCount; }
47 inline bool TotalPartsCountHasBeenSet() const { return m_totalPartsCountHasBeenSet; }
48 inline void SetTotalPartsCount(int value) { m_totalPartsCountHasBeenSet = true; m_totalPartsCount = value; }
49 inline GetObjectAttributesParts& WithTotalPartsCount(int value) { SetTotalPartsCount(value); return *this;}
51
53
56 inline int GetPartNumberMarker() const { return m_partNumberMarker; }
57 inline bool PartNumberMarkerHasBeenSet() const { return m_partNumberMarkerHasBeenSet; }
58 inline void SetPartNumberMarker(int value) { m_partNumberMarkerHasBeenSet = true; m_partNumberMarker = value; }
59 inline GetObjectAttributesParts& WithPartNumberMarker(int value) { SetPartNumberMarker(value); return *this;}
61
63
68 inline int GetNextPartNumberMarker() const { return m_nextPartNumberMarker; }
69 inline bool NextPartNumberMarkerHasBeenSet() const { return m_nextPartNumberMarkerHasBeenSet; }
70 inline void SetNextPartNumberMarker(int value) { m_nextPartNumberMarkerHasBeenSet = true; m_nextPartNumberMarker = value; }
73
75
78 inline int GetMaxParts() const { return m_maxParts; }
79 inline bool MaxPartsHasBeenSet() const { return m_maxPartsHasBeenSet; }
80 inline void SetMaxParts(int value) { m_maxPartsHasBeenSet = true; m_maxParts = value; }
81 inline GetObjectAttributesParts& WithMaxParts(int value) { SetMaxParts(value); return *this;}
83
85
91 inline bool GetIsTruncated() const { return m_isTruncated; }
92 inline bool IsTruncatedHasBeenSet() const { return m_isTruncatedHasBeenSet; }
93 inline void SetIsTruncated(bool value) { m_isTruncatedHasBeenSet = true; m_isTruncated = value; }
94 inline GetObjectAttributesParts& WithIsTruncated(bool value) { SetIsTruncated(value); return *this;}
96
98
111 inline const Aws::Vector<ObjectPart>& GetParts() const { return m_parts; }
112 inline bool PartsHasBeenSet() const { return m_partsHasBeenSet; }
113 template<typename PartsT = Aws::Vector<ObjectPart>>
114 void SetParts(PartsT&& value) { m_partsHasBeenSet = true; m_parts = std::forward<PartsT>(value); }
115 template<typename PartsT = Aws::Vector<ObjectPart>>
116 GetObjectAttributesParts& WithParts(PartsT&& value) { SetParts(std::forward<PartsT>(value)); return *this;}
117 template<typename PartsT = ObjectPart>
118 GetObjectAttributesParts& AddParts(PartsT&& value) { m_partsHasBeenSet = true; m_parts.emplace_back(std::forward<PartsT>(value)); return *this; }
120 private:
121
122 int m_totalPartsCount{0};
123 bool m_totalPartsCountHasBeenSet = false;
124
125 int m_partNumberMarker{0};
126 bool m_partNumberMarkerHasBeenSet = false;
127
128 int m_nextPartNumberMarker{0};
129 bool m_nextPartNumberMarkerHasBeenSet = false;
130
131 int m_maxParts{0};
132 bool m_maxPartsHasBeenSet = false;
133
134 bool m_isTruncated{false};
135 bool m_isTruncatedHasBeenSet = false;
136
138 bool m_partsHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace S3
143} // namespace Aws
GetObjectAttributesParts & WithNextPartNumberMarker(int value)
GetObjectAttributesParts & WithParts(PartsT &&value)
GetObjectAttributesParts & AddParts(PartsT &&value)
GetObjectAttributesParts & WithTotalPartsCount(int value)
GetObjectAttributesParts & WithPartNumberMarker(int value)
GetObjectAttributesParts & WithIsTruncated(bool value)
const Aws::Vector< ObjectPart > & GetParts() const
AWS_S3_API GetObjectAttributesParts(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
GetObjectAttributesParts & WithMaxParts(int value)
AWS_S3_API GetObjectAttributesParts & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API GetObjectAttributesParts()=default
std::vector< T, Aws::Allocator< T > > Vector