AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
ListPartsResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/glacier/Glacier_EXPORTS.h>
11#include <aws/glacier/model/PartListElement.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Glacier {
25namespace Model {
33 public:
34 AWS_GLACIER_API ListPartsResult() = default;
37
39
42 inline const Aws::String& GetMultipartUploadId() const { return m_multipartUploadId; }
43 template <typename MultipartUploadIdT = Aws::String>
44 void SetMultipartUploadId(MultipartUploadIdT&& value) {
45 m_multipartUploadIdHasBeenSet = true;
46 m_multipartUploadId = std::forward<MultipartUploadIdT>(value);
47 }
48 template <typename MultipartUploadIdT = Aws::String>
49 ListPartsResult& WithMultipartUploadId(MultipartUploadIdT&& value) {
50 SetMultipartUploadId(std::forward<MultipartUploadIdT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetVaultARN() const { return m_vaultARN; }
61 template <typename VaultARNT = Aws::String>
62 void SetVaultARN(VaultARNT&& value) {
63 m_vaultARNHasBeenSet = true;
64 m_vaultARN = std::forward<VaultARNT>(value);
65 }
66 template <typename VaultARNT = Aws::String>
67 ListPartsResult& WithVaultARN(VaultARNT&& value) {
68 SetVaultARN(std::forward<VaultARNT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetArchiveDescription() const { return m_archiveDescription; }
79 template <typename ArchiveDescriptionT = Aws::String>
80 void SetArchiveDescription(ArchiveDescriptionT&& value) {
81 m_archiveDescriptionHasBeenSet = true;
82 m_archiveDescription = std::forward<ArchiveDescriptionT>(value);
83 }
84 template <typename ArchiveDescriptionT = Aws::String>
85 ListPartsResult& WithArchiveDescription(ArchiveDescriptionT&& value) {
86 SetArchiveDescription(std::forward<ArchiveDescriptionT>(value));
87 return *this;
88 }
90
92
96 inline long long GetPartSizeInBytes() const { return m_partSizeInBytes; }
97 inline void SetPartSizeInBytes(long long value) {
98 m_partSizeInBytesHasBeenSet = true;
99 m_partSizeInBytes = value;
100 }
101 inline ListPartsResult& WithPartSizeInBytes(long long value) {
102 SetPartSizeInBytes(value);
103 return *this;
104 }
106
108
111 inline const Aws::String& GetCreationDate() const { return m_creationDate; }
112 template <typename CreationDateT = Aws::String>
113 void SetCreationDate(CreationDateT&& value) {
114 m_creationDateHasBeenSet = true;
115 m_creationDate = std::forward<CreationDateT>(value);
116 }
117 template <typename CreationDateT = Aws::String>
118 ListPartsResult& WithCreationDate(CreationDateT&& value) {
119 SetCreationDate(std::forward<CreationDateT>(value));
120 return *this;
121 }
123
125
130 inline const Aws::Vector<PartListElement>& GetParts() const { return m_parts; }
131 template <typename PartsT = Aws::Vector<PartListElement>>
132 void SetParts(PartsT&& value) {
133 m_partsHasBeenSet = true;
134 m_parts = std::forward<PartsT>(value);
135 }
136 template <typename PartsT = Aws::Vector<PartListElement>>
137 ListPartsResult& WithParts(PartsT&& value) {
138 SetParts(std::forward<PartsT>(value));
139 return *this;
140 }
141 template <typename PartsT = PartListElement>
142 ListPartsResult& AddParts(PartsT&& value) {
143 m_partsHasBeenSet = true;
144 m_parts.emplace_back(std::forward<PartsT>(value));
145 return *this;
146 }
148
150
155 inline const Aws::String& GetMarker() const { return m_marker; }
156 template <typename MarkerT = Aws::String>
157 void SetMarker(MarkerT&& value) {
158 m_markerHasBeenSet = true;
159 m_marker = std::forward<MarkerT>(value);
160 }
161 template <typename MarkerT = Aws::String>
162 ListPartsResult& WithMarker(MarkerT&& value) {
163 SetMarker(std::forward<MarkerT>(value));
164 return *this;
165 }
167
169
170 inline const Aws::String& GetRequestId() const { return m_requestId; }
171 template <typename RequestIdT = Aws::String>
172 void SetRequestId(RequestIdT&& value) {
173 m_requestIdHasBeenSet = true;
174 m_requestId = std::forward<RequestIdT>(value);
175 }
176 template <typename RequestIdT = Aws::String>
177 ListPartsResult& WithRequestId(RequestIdT&& value) {
178 SetRequestId(std::forward<RequestIdT>(value));
179 return *this;
180 }
182 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
183
184 private:
185 Aws::String m_multipartUploadId;
186
187 Aws::String m_vaultARN;
188
189 Aws::String m_archiveDescription;
190
191 long long m_partSizeInBytes{0};
192
193 Aws::String m_creationDate;
194
196
197 Aws::String m_marker;
198
199 Aws::String m_requestId;
200 Aws::Http::HttpResponseCode m_HttpResponseCode;
201 bool m_multipartUploadIdHasBeenSet = false;
202 bool m_vaultARNHasBeenSet = false;
203 bool m_archiveDescriptionHasBeenSet = false;
204 bool m_partSizeInBytesHasBeenSet = false;
205 bool m_creationDateHasBeenSet = false;
206 bool m_partsHasBeenSet = false;
207 bool m_markerHasBeenSet = false;
208 bool m_requestIdHasBeenSet = false;
209};
210
211} // namespace Model
212} // namespace Glacier
213} // namespace Aws
ListPartsResult & WithCreationDate(CreationDateT &&value)
const Aws::String & GetCreationDate() const
ListPartsResult & WithVaultARN(VaultARNT &&value)
ListPartsResult & WithParts(PartsT &&value)
const Aws::String & GetArchiveDescription() const
const Aws::String & GetVaultARN() const
AWS_GLACIER_API ListPartsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetArchiveDescription(ArchiveDescriptionT &&value)
const Aws::String & GetRequestId() const
const Aws::String & GetMultipartUploadId() const
AWS_GLACIER_API ListPartsResult()=default
void SetPartSizeInBytes(long long value)
ListPartsResult & WithMultipartUploadId(MultipartUploadIdT &&value)
ListPartsResult & WithArchiveDescription(ArchiveDescriptionT &&value)
ListPartsResult & WithRequestId(RequestIdT &&value)
ListPartsResult & WithPartSizeInBytes(long long value)
const Aws::Vector< PartListElement > & GetParts() const
AWS_GLACIER_API ListPartsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListPartsResult & AddParts(PartsT &&value)
ListPartsResult & WithMarker(MarkerT &&value)
void SetVaultARN(VaultARNT &&value)
void SetCreationDate(CreationDateT &&value)
void SetMultipartUploadId(MultipartUploadIdT &&value)
const Aws::String & GetMarker() const
void SetRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue