AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListPartsResult.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/s3/model/Initiator.h>
12#include <aws/s3/model/Owner.h>
13#include <aws/s3/model/StorageClass.h>
14#include <aws/s3/model/RequestCharged.h>
15#include <aws/s3/model/ChecksumAlgorithm.h>
16#include <aws/s3/model/Part.h>
17#include <utility>
18
19namespace Aws
20{
21template<typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils
25{
26namespace Xml
27{
28 class XmlDocument;
29} // namespace Xml
30} // namespace Utils
31namespace S3
32{
33namespace Model
34{
36 {
37 public:
38 AWS_S3_API ListPartsResult();
41
42
44
57 inline const Aws::Utils::DateTime& GetAbortDate() const{ return m_abortDate; }
58 inline void SetAbortDate(const Aws::Utils::DateTime& value) { m_abortDate = value; }
59 inline void SetAbortDate(Aws::Utils::DateTime&& value) { m_abortDate = std::move(value); }
60 inline ListPartsResult& WithAbortDate(const Aws::Utils::DateTime& value) { SetAbortDate(value); return *this;}
61 inline ListPartsResult& WithAbortDate(Aws::Utils::DateTime&& value) { SetAbortDate(std::move(value)); return *this;}
63
65
71 inline const Aws::String& GetAbortRuleId() const{ return m_abortRuleId; }
72 inline void SetAbortRuleId(const Aws::String& value) { m_abortRuleId = value; }
73 inline void SetAbortRuleId(Aws::String&& value) { m_abortRuleId = std::move(value); }
74 inline void SetAbortRuleId(const char* value) { m_abortRuleId.assign(value); }
75 inline ListPartsResult& WithAbortRuleId(const Aws::String& value) { SetAbortRuleId(value); return *this;}
76 inline ListPartsResult& WithAbortRuleId(Aws::String&& value) { SetAbortRuleId(std::move(value)); return *this;}
77 inline ListPartsResult& WithAbortRuleId(const char* value) { SetAbortRuleId(value); return *this;}
79
81
85 inline const Aws::String& GetBucket() const{ return m_bucket; }
86 inline void SetBucket(const Aws::String& value) { m_bucket = value; }
87 inline void SetBucket(Aws::String&& value) { m_bucket = std::move(value); }
88 inline void SetBucket(const char* value) { m_bucket.assign(value); }
89 inline ListPartsResult& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
90 inline ListPartsResult& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
91 inline ListPartsResult& WithBucket(const char* value) { SetBucket(value); return *this;}
93
95
98 inline const Aws::String& GetKey() const{ return m_key; }
99 inline void SetKey(const Aws::String& value) { m_key = value; }
100 inline void SetKey(Aws::String&& value) { m_key = std::move(value); }
101 inline void SetKey(const char* value) { m_key.assign(value); }
102 inline ListPartsResult& WithKey(const Aws::String& value) { SetKey(value); return *this;}
103 inline ListPartsResult& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
104 inline ListPartsResult& WithKey(const char* value) { SetKey(value); return *this;}
106
108
111 inline const Aws::String& GetUploadId() const{ return m_uploadId; }
112 inline void SetUploadId(const Aws::String& value) { m_uploadId = value; }
113 inline void SetUploadId(Aws::String&& value) { m_uploadId = std::move(value); }
114 inline void SetUploadId(const char* value) { m_uploadId.assign(value); }
115 inline ListPartsResult& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;}
116 inline ListPartsResult& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;}
117 inline ListPartsResult& WithUploadId(const char* value) { SetUploadId(value); return *this;}
119
121
125 inline int GetPartNumberMarker() const{ return m_partNumberMarker; }
126 inline void SetPartNumberMarker(int value) { m_partNumberMarker = value; }
127 inline ListPartsResult& WithPartNumberMarker(int value) { SetPartNumberMarker(value); return *this;}
129
131
136 inline int GetNextPartNumberMarker() const{ return m_nextPartNumberMarker; }
137 inline void SetNextPartNumberMarker(int value) { m_nextPartNumberMarker = value; }
138 inline ListPartsResult& WithNextPartNumberMarker(int value) { SetNextPartNumberMarker(value); return *this;}
140
142
145 inline int GetMaxParts() const{ return m_maxParts; }
146 inline void SetMaxParts(int value) { m_maxParts = value; }
147 inline ListPartsResult& WithMaxParts(int value) { SetMaxParts(value); return *this;}
149
151
156 inline bool GetIsTruncated() const{ return m_isTruncated; }
157 inline void SetIsTruncated(bool value) { m_isTruncated = value; }
158 inline ListPartsResult& WithIsTruncated(bool value) { SetIsTruncated(value); return *this;}
160
162
166 inline const Aws::Vector<Part>& GetParts() const{ return m_parts; }
167 inline void SetParts(const Aws::Vector<Part>& value) { m_parts = value; }
168 inline void SetParts(Aws::Vector<Part>&& value) { m_parts = std::move(value); }
169 inline ListPartsResult& WithParts(const Aws::Vector<Part>& value) { SetParts(value); return *this;}
170 inline ListPartsResult& WithParts(Aws::Vector<Part>&& value) { SetParts(std::move(value)); return *this;}
171 inline ListPartsResult& AddParts(const Part& value) { m_parts.push_back(value); return *this; }
172 inline ListPartsResult& AddParts(Part&& value) { m_parts.push_back(std::move(value)); return *this; }
174
176
182 inline const Initiator& GetInitiator() const{ return m_initiator; }
183 inline void SetInitiator(const Initiator& value) { m_initiator = value; }
184 inline void SetInitiator(Initiator&& value) { m_initiator = std::move(value); }
185 inline ListPartsResult& WithInitiator(const Initiator& value) { SetInitiator(value); return *this;}
186 inline ListPartsResult& WithInitiator(Initiator&& value) { SetInitiator(std::move(value)); return *this;}
188
190
197 inline const Owner& GetOwner() const{ return m_owner; }
198 inline void SetOwner(const Owner& value) { m_owner = value; }
199 inline void SetOwner(Owner&& value) { m_owner = std::move(value); }
200 inline ListPartsResult& WithOwner(const Owner& value) { SetOwner(value); return *this;}
201 inline ListPartsResult& WithOwner(Owner&& value) { SetOwner(std::move(value)); return *this;}
203
205
210 inline const StorageClass& GetStorageClass() const{ return m_storageClass; }
211 inline void SetStorageClass(const StorageClass& value) { m_storageClass = value; }
212 inline void SetStorageClass(StorageClass&& value) { m_storageClass = std::move(value); }
213 inline ListPartsResult& WithStorageClass(const StorageClass& value) { SetStorageClass(value); return *this;}
214 inline ListPartsResult& WithStorageClass(StorageClass&& value) { SetStorageClass(std::move(value)); return *this;}
216
218
219 inline const RequestCharged& GetRequestCharged() const{ return m_requestCharged; }
220 inline void SetRequestCharged(const RequestCharged& value) { m_requestCharged = value; }
221 inline void SetRequestCharged(RequestCharged&& value) { m_requestCharged = std::move(value); }
222 inline ListPartsResult& WithRequestCharged(const RequestCharged& value) { SetRequestCharged(value); return *this;}
223 inline ListPartsResult& WithRequestCharged(RequestCharged&& value) { SetRequestCharged(std::move(value)); return *this;}
225
227
230 inline const ChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; }
231 inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithm = value; }
232 inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithm = std::move(value); }
234 inline ListPartsResult& WithChecksumAlgorithm(ChecksumAlgorithm&& value) { SetChecksumAlgorithm(std::move(value)); return *this;}
236
238
239 inline const Aws::String& GetRequestId() const{ return m_requestId; }
240 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
241 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
242 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
243 inline ListPartsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
244 inline ListPartsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
245 inline ListPartsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
247 private:
248
249 Aws::Utils::DateTime m_abortDate;
250
251 Aws::String m_abortRuleId;
252
253 Aws::String m_bucket;
254
255 Aws::String m_key;
256
257 Aws::String m_uploadId;
258
259 int m_partNumberMarker;
260
261 int m_nextPartNumberMarker;
262
263 int m_maxParts;
264
265 bool m_isTruncated;
266
267 Aws::Vector<Part> m_parts;
268
269 Initiator m_initiator;
270
271 Owner m_owner;
272
273 StorageClass m_storageClass;
274
275 RequestCharged m_requestCharged;
276
277 ChecksumAlgorithm m_checksumAlgorithm;
278
279 Aws::String m_requestId;
280 };
281
282} // namespace Model
283} // namespace S3
284} // namespace Aws
void SetKey(Aws::String &&value)
void SetChecksumAlgorithm(ChecksumAlgorithm &&value)
ListPartsResult & WithUploadId(Aws::String &&value)
ListPartsResult & WithKey(const Aws::String &value)
const Aws::String & GetRequestId() const
ListPartsResult & WithStorageClass(StorageClass &&value)
ListPartsResult & WithRequestCharged(RequestCharged &&value)
ListPartsResult & WithAbortRuleId(Aws::String &&value)
ListPartsResult & WithRequestId(const Aws::String &value)
ListPartsResult & WithAbortDate(const Aws::Utils::DateTime &value)
ListPartsResult & WithUploadId(const Aws::String &value)
void SetInitiator(Initiator &&value)
void SetAbortRuleId(Aws::String &&value)
ListPartsResult & WithInitiator(const Initiator &value)
void SetAbortDate(const Aws::Utils::DateTime &value)
void SetChecksumAlgorithm(const ChecksumAlgorithm &value)
ListPartsResult & WithParts(const Aws::Vector< Part > &value)
void SetRequestId(const char *value)
ListPartsResult & WithStorageClass(const StorageClass &value)
const Aws::String & GetAbortRuleId() const
ListPartsResult & WithAbortRuleId(const Aws::String &value)
ListPartsResult & WithRequestCharged(const RequestCharged &value)
ListPartsResult & WithRequestId(const char *value)
void SetStorageClass(StorageClass &&value)
ListPartsResult & WithNextPartNumberMarker(int value)
ListPartsResult & WithInitiator(Initiator &&value)
ListPartsResult & WithAbortRuleId(const char *value)
const Aws::Utils::DateTime & GetAbortDate() const
AWS_S3_API ListPartsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetUploadId(const char *value)
void SetUploadId(const Aws::String &value)
ListPartsResult & WithParts(Aws::Vector< Part > &&value)
ListPartsResult & WithMaxParts(int value)
ListPartsResult & WithKey(const char *value)
ListPartsResult & WithChecksumAlgorithm(ChecksumAlgorithm &&value)
ListPartsResult & WithBucket(Aws::String &&value)
void SetKey(const Aws::String &value)
ListPartsResult & WithUploadId(const char *value)
const RequestCharged & GetRequestCharged() const
void SetKey(const char *value)
ListPartsResult & WithAbortDate(Aws::Utils::DateTime &&value)
const Initiator & GetInitiator() const
void SetAbortRuleId(const Aws::String &value)
ListPartsResult & AddParts(Part &&value)
ListPartsResult & WithKey(Aws::String &&value)
AWS_S3_API ListPartsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetBucket(const Aws::String &value)
const Aws::String & GetKey() const
void SetRequestCharged(RequestCharged &&value)
ListPartsResult & WithBucket(const Aws::String &value)
ListPartsResult & WithOwner(const Owner &value)
const Aws::String & GetUploadId() const
void SetBucket(Aws::String &&value)
void SetRequestId(const Aws::String &value)
ListPartsResult & WithChecksumAlgorithm(const ChecksumAlgorithm &value)
const StorageClass & GetStorageClass() const
const ChecksumAlgorithm & GetChecksumAlgorithm() const
void SetParts(Aws::Vector< Part > &&value)
void SetAbortDate(Aws::Utils::DateTime &&value)
ListPartsResult & WithRequestId(Aws::String &&value)
void SetOwner(const Owner &value)
ListPartsResult & WithPartNumberMarker(int value)
ListPartsResult & WithBucket(const char *value)
void SetStorageClass(const StorageClass &value)
void SetRequestCharged(const RequestCharged &value)
ListPartsResult & WithOwner(Owner &&value)
void SetRequestId(Aws::String &&value)
ListPartsResult & AddParts(const Part &value)
void SetUploadId(Aws::String &&value)
void SetInitiator(const Initiator &value)
void SetBucket(const char *value)
void SetAbortRuleId(const char *value)
const Aws::Vector< Part > & GetParts() const
ListPartsResult & WithIsTruncated(bool value)
void SetParts(const Aws::Vector< Part > &value)
const Aws::String & GetBucket() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument