blob: b0dad12ce04ca850342afdc83bd6fff815f1f216 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
|
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/s3/S3_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <aws/s3/model/StorageClass.h>
#include <aws/s3/model/Owner.h>
#include <aws/s3/model/Initiator.h>
#include <aws/s3/model/ChecksumAlgorithm.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Xml
{
class XmlNode;
} // namespace Xml
} // namespace Utils
namespace S3
{
namespace Model
{
/**
* <p>Container for the <code>MultipartUpload</code> for the Amazon S3
* object.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/MultipartUpload">AWS
* API Reference</a></p>
*/
class MultipartUpload
{
public:
AWS_S3_API MultipartUpload();
AWS_S3_API MultipartUpload(const Aws::Utils::Xml::XmlNode& xmlNode);
AWS_S3_API MultipartUpload& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
/**
* <p>Upload ID that identifies the multipart upload.</p>
*/
inline const Aws::String& GetUploadId() const{ return m_uploadId; }
/**
* <p>Upload ID that identifies the multipart upload.</p>
*/
inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
/**
* <p>Upload ID that identifies the multipart upload.</p>
*/
inline void SetUploadId(const Aws::String& value) { m_uploadIdHasBeenSet = true; m_uploadId = value; }
/**
* <p>Upload ID that identifies the multipart upload.</p>
*/
inline void SetUploadId(Aws::String&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::move(value); }
/**
* <p>Upload ID that identifies the multipart upload.</p>
*/
inline void SetUploadId(const char* value) { m_uploadIdHasBeenSet = true; m_uploadId.assign(value); }
/**
* <p>Upload ID that identifies the multipart upload.</p>
*/
inline MultipartUpload& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;}
/**
* <p>Upload ID that identifies the multipart upload.</p>
*/
inline MultipartUpload& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;}
/**
* <p>Upload ID that identifies the multipart upload.</p>
*/
inline MultipartUpload& WithUploadId(const char* value) { SetUploadId(value); return *this;}
/**
* <p>Key of the object for which the multipart upload was initiated.</p>
*/
inline const Aws::String& GetKey() const{ return m_key; }
/**
* <p>Key of the object for which the multipart upload was initiated.</p>
*/
inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
/**
* <p>Key of the object for which the multipart upload was initiated.</p>
*/
inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
/**
* <p>Key of the object for which the multipart upload was initiated.</p>
*/
inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
/**
* <p>Key of the object for which the multipart upload was initiated.</p>
*/
inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
/**
* <p>Key of the object for which the multipart upload was initiated.</p>
*/
inline MultipartUpload& WithKey(const Aws::String& value) { SetKey(value); return *this;}
/**
* <p>Key of the object for which the multipart upload was initiated.</p>
*/
inline MultipartUpload& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
/**
* <p>Key of the object for which the multipart upload was initiated.</p>
*/
inline MultipartUpload& WithKey(const char* value) { SetKey(value); return *this;}
/**
* <p>Date and time at which the multipart upload was initiated.</p>
*/
inline const Aws::Utils::DateTime& GetInitiated() const{ return m_initiated; }
/**
* <p>Date and time at which the multipart upload was initiated.</p>
*/
inline bool InitiatedHasBeenSet() const { return m_initiatedHasBeenSet; }
/**
* <p>Date and time at which the multipart upload was initiated.</p>
*/
inline void SetInitiated(const Aws::Utils::DateTime& value) { m_initiatedHasBeenSet = true; m_initiated = value; }
/**
* <p>Date and time at which the multipart upload was initiated.</p>
*/
inline void SetInitiated(Aws::Utils::DateTime&& value) { m_initiatedHasBeenSet = true; m_initiated = std::move(value); }
/**
* <p>Date and time at which the multipart upload was initiated.</p>
*/
inline MultipartUpload& WithInitiated(const Aws::Utils::DateTime& value) { SetInitiated(value); return *this;}
/**
* <p>Date and time at which the multipart upload was initiated.</p>
*/
inline MultipartUpload& WithInitiated(Aws::Utils::DateTime&& value) { SetInitiated(std::move(value)); return *this;}
/**
* <p>The class of storage used to store the object.</p>
*/
inline const StorageClass& GetStorageClass() const{ return m_storageClass; }
/**
* <p>The class of storage used to store the object.</p>
*/
inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; }
/**
* <p>The class of storage used to store the object.</p>
*/
inline void SetStorageClass(const StorageClass& value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
/**
* <p>The class of storage used to store the object.</p>
*/
inline void SetStorageClass(StorageClass&& value) { m_storageClassHasBeenSet = true; m_storageClass = std::move(value); }
/**
* <p>The class of storage used to store the object.</p>
*/
inline MultipartUpload& WithStorageClass(const StorageClass& value) { SetStorageClass(value); return *this;}
/**
* <p>The class of storage used to store the object.</p>
*/
inline MultipartUpload& WithStorageClass(StorageClass&& value) { SetStorageClass(std::move(value)); return *this;}
/**
* <p>Specifies the owner of the object that is part of the multipart upload. </p>
*/
inline const Owner& GetOwner() const{ return m_owner; }
/**
* <p>Specifies the owner of the object that is part of the multipart upload. </p>
*/
inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
/**
* <p>Specifies the owner of the object that is part of the multipart upload. </p>
*/
inline void SetOwner(const Owner& value) { m_ownerHasBeenSet = true; m_owner = value; }
/**
* <p>Specifies the owner of the object that is part of the multipart upload. </p>
*/
inline void SetOwner(Owner&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
/**
* <p>Specifies the owner of the object that is part of the multipart upload. </p>
*/
inline MultipartUpload& WithOwner(const Owner& value) { SetOwner(value); return *this;}
/**
* <p>Specifies the owner of the object that is part of the multipart upload. </p>
*/
inline MultipartUpload& WithOwner(Owner&& value) { SetOwner(std::move(value)); return *this;}
/**
* <p>Identifies who initiated the multipart upload.</p>
*/
inline const Initiator& GetInitiator() const{ return m_initiator; }
/**
* <p>Identifies who initiated the multipart upload.</p>
*/
inline bool InitiatorHasBeenSet() const { return m_initiatorHasBeenSet; }
/**
* <p>Identifies who initiated the multipart upload.</p>
*/
inline void SetInitiator(const Initiator& value) { m_initiatorHasBeenSet = true; m_initiator = value; }
/**
* <p>Identifies who initiated the multipart upload.</p>
*/
inline void SetInitiator(Initiator&& value) { m_initiatorHasBeenSet = true; m_initiator = std::move(value); }
/**
* <p>Identifies who initiated the multipart upload.</p>
*/
inline MultipartUpload& WithInitiator(const Initiator& value) { SetInitiator(value); return *this;}
/**
* <p>Identifies who initiated the multipart upload.</p>
*/
inline MultipartUpload& WithInitiator(Initiator&& value) { SetInitiator(std::move(value)); return *this;}
/**
* <p>The algorithm that was used to create a checksum of the object.</p>
*/
inline const ChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; }
/**
* <p>The algorithm that was used to create a checksum of the object.</p>
*/
inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
/**
* <p>The algorithm that was used to create a checksum of the object.</p>
*/
inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
/**
* <p>The algorithm that was used to create a checksum of the object.</p>
*/
inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = std::move(value); }
/**
* <p>The algorithm that was used to create a checksum of the object.</p>
*/
inline MultipartUpload& WithChecksumAlgorithm(const ChecksumAlgorithm& value) { SetChecksumAlgorithm(value); return *this;}
/**
* <p>The algorithm that was used to create a checksum of the object.</p>
*/
inline MultipartUpload& WithChecksumAlgorithm(ChecksumAlgorithm&& value) { SetChecksumAlgorithm(std::move(value)); return *this;}
private:
Aws::String m_uploadId;
bool m_uploadIdHasBeenSet = false;
Aws::String m_key;
bool m_keyHasBeenSet = false;
Aws::Utils::DateTime m_initiated;
bool m_initiatedHasBeenSet = false;
StorageClass m_storageClass;
bool m_storageClassHasBeenSet = false;
Owner m_owner;
bool m_ownerHasBeenSet = false;
Initiator m_initiator;
bool m_initiatorHasBeenSet = false;
ChecksumAlgorithm m_checksumAlgorithm;
bool m_checksumAlgorithmHasBeenSet = false;
};
} // namespace Model
} // namespace S3
} // namespace Aws
|