AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ListPartsResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/glacier/Glacier_EXPORTS.h>
10#include <aws/glacier/model/PartListElement.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace Glacier {
24namespace Model {
32 public:
33 AWS_GLACIER_API ListPartsResult() = default;
36
38
41 inline const Aws::String& GetMultipartUploadId() const { return m_multipartUploadId; }
42 template <typename MultipartUploadIdT = Aws::String>
43 void SetMultipartUploadId(MultipartUploadIdT&& value) {
44 m_multipartUploadIdHasBeenSet = true;
45 m_multipartUploadId = std::forward<MultipartUploadIdT>(value);
46 }
47 template <typename MultipartUploadIdT = Aws::String>
48 ListPartsResult& WithMultipartUploadId(MultipartUploadIdT&& value) {
49 SetMultipartUploadId(std::forward<MultipartUploadIdT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetVaultARN() const { return m_vaultARN; }
60 template <typename VaultARNT = Aws::String>
61 void SetVaultARN(VaultARNT&& value) {
62 m_vaultARNHasBeenSet = true;
63 m_vaultARN = std::forward<VaultARNT>(value);
64 }
65 template <typename VaultARNT = Aws::String>
66 ListPartsResult& WithVaultARN(VaultARNT&& value) {
67 SetVaultARN(std::forward<VaultARNT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetArchiveDescription() const { return m_archiveDescription; }
78 template <typename ArchiveDescriptionT = Aws::String>
79 void SetArchiveDescription(ArchiveDescriptionT&& value) {
80 m_archiveDescriptionHasBeenSet = true;
81 m_archiveDescription = std::forward<ArchiveDescriptionT>(value);
82 }
83 template <typename ArchiveDescriptionT = Aws::String>
84 ListPartsResult& WithArchiveDescription(ArchiveDescriptionT&& value) {
85 SetArchiveDescription(std::forward<ArchiveDescriptionT>(value));
86 return *this;
87 }
89
91
95 inline long long GetPartSizeInBytes() const { return m_partSizeInBytes; }
96 inline void SetPartSizeInBytes(long long value) {
97 m_partSizeInBytesHasBeenSet = true;
98 m_partSizeInBytes = value;
99 }
100 inline ListPartsResult& WithPartSizeInBytes(long long value) {
101 SetPartSizeInBytes(value);
102 return *this;
103 }
105
107
110 inline const Aws::String& GetCreationDate() const { return m_creationDate; }
111 template <typename CreationDateT = Aws::String>
112 void SetCreationDate(CreationDateT&& value) {
113 m_creationDateHasBeenSet = true;
114 m_creationDate = std::forward<CreationDateT>(value);
115 }
116 template <typename CreationDateT = Aws::String>
117 ListPartsResult& WithCreationDate(CreationDateT&& value) {
118 SetCreationDate(std::forward<CreationDateT>(value));
119 return *this;
120 }
122
124
129 inline const Aws::Vector<PartListElement>& GetParts() const { return m_parts; }
130 template <typename PartsT = Aws::Vector<PartListElement>>
131 void SetParts(PartsT&& value) {
132 m_partsHasBeenSet = true;
133 m_parts = std::forward<PartsT>(value);
134 }
135 template <typename PartsT = Aws::Vector<PartListElement>>
136 ListPartsResult& WithParts(PartsT&& value) {
137 SetParts(std::forward<PartsT>(value));
138 return *this;
139 }
140 template <typename PartsT = PartListElement>
141 ListPartsResult& AddParts(PartsT&& value) {
142 m_partsHasBeenSet = true;
143 m_parts.emplace_back(std::forward<PartsT>(value));
144 return *this;
145 }
147
149
154 inline const Aws::String& GetMarker() const { return m_marker; }
155 template <typename MarkerT = Aws::String>
156 void SetMarker(MarkerT&& value) {
157 m_markerHasBeenSet = true;
158 m_marker = std::forward<MarkerT>(value);
159 }
160 template <typename MarkerT = Aws::String>
161 ListPartsResult& WithMarker(MarkerT&& value) {
162 SetMarker(std::forward<MarkerT>(value));
163 return *this;
164 }
166
168
169 inline const Aws::String& GetRequestId() const { return m_requestId; }
170 template <typename RequestIdT = Aws::String>
171 void SetRequestId(RequestIdT&& value) {
172 m_requestIdHasBeenSet = true;
173 m_requestId = std::forward<RequestIdT>(value);
174 }
175 template <typename RequestIdT = Aws::String>
176 ListPartsResult& WithRequestId(RequestIdT&& value) {
177 SetRequestId(std::forward<RequestIdT>(value));
178 return *this;
179 }
181 private:
182 Aws::String m_multipartUploadId;
183
184 Aws::String m_vaultARN;
185
186 Aws::String m_archiveDescription;
187
188 long long m_partSizeInBytes{0};
189
190 Aws::String m_creationDate;
191
193
194 Aws::String m_marker;
195
196 Aws::String m_requestId;
197 bool m_multipartUploadIdHasBeenSet = false;
198 bool m_vaultARNHasBeenSet = false;
199 bool m_archiveDescriptionHasBeenSet = false;
200 bool m_partSizeInBytesHasBeenSet = false;
201 bool m_creationDateHasBeenSet = false;
202 bool m_partsHasBeenSet = false;
203 bool m_markerHasBeenSet = false;
204 bool m_requestIdHasBeenSet = false;
205};
206
207} // namespace Model
208} // namespace Glacier
209} // 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)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue