AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetObjectAttributesParts.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/s3-crt/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 S3Crt
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_S3CRT_API GetObjectAttributesParts();
38
39 AWS_S3CRT_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
110 inline const Aws::Vector<ObjectPart>& GetParts() const{ return m_parts; }
111 inline bool PartsHasBeenSet() const { return m_partsHasBeenSet; }
112 inline void SetParts(const Aws::Vector<ObjectPart>& value) { m_partsHasBeenSet = true; m_parts = value; }
113 inline void SetParts(Aws::Vector<ObjectPart>&& value) { m_partsHasBeenSet = true; m_parts = std::move(value); }
114 inline GetObjectAttributesParts& WithParts(const Aws::Vector<ObjectPart>& value) { SetParts(value); return *this;}
115 inline GetObjectAttributesParts& WithParts(Aws::Vector<ObjectPart>&& value) { SetParts(std::move(value)); return *this;}
116 inline GetObjectAttributesParts& AddParts(const ObjectPart& value) { m_partsHasBeenSet = true; m_parts.push_back(value); return *this; }
117 inline GetObjectAttributesParts& AddParts(ObjectPart&& value) { m_partsHasBeenSet = true; m_parts.push_back(std::move(value)); return *this; }
119 private:
120
121 int m_totalPartsCount;
122 bool m_totalPartsCountHasBeenSet = false;
123
124 int m_partNumberMarker;
125 bool m_partNumberMarkerHasBeenSet = false;
126
127 int m_nextPartNumberMarker;
128 bool m_nextPartNumberMarkerHasBeenSet = false;
129
130 int m_maxParts;
131 bool m_maxPartsHasBeenSet = false;
132
133 bool m_isTruncated;
134 bool m_isTruncatedHasBeenSet = false;
135
137 bool m_partsHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace S3Crt
142} // namespace Aws
void SetParts(Aws::Vector< ObjectPart > &&value)
AWS_S3CRT_API GetObjectAttributesParts & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
GetObjectAttributesParts & WithPartNumberMarker(int value)
void SetParts(const Aws::Vector< ObjectPart > &value)
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
GetObjectAttributesParts & WithParts(const Aws::Vector< ObjectPart > &value)
GetObjectAttributesParts & WithIsTruncated(bool value)
const Aws::Vector< ObjectPart > & GetParts() const
GetObjectAttributesParts & AddParts(const ObjectPart &value)
AWS_S3CRT_API GetObjectAttributesParts(const Aws::Utils::Xml::XmlNode &xmlNode)
GetObjectAttributesParts & WithNextPartNumberMarker(int value)
GetObjectAttributesParts & AddParts(ObjectPart &&value)
GetObjectAttributesParts & WithParts(Aws::Vector< ObjectPart > &&value)
GetObjectAttributesParts & WithTotalPartsCount(int value)
GetObjectAttributesParts & WithMaxParts(int value)
std::vector< T, Aws::Allocator< T > > Vector