AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
AbortMultipartUploadRequest.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/S3Request.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace S3
21{
22namespace Model
23{
24
28 {
29 public:
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "AbortMultipartUpload"; }
37
39
41
43
48
68 inline const Aws::String& GetBucket() const{ return m_bucket; }
69
89 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
90
110 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
111
131 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
132
152 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
153
173 inline AbortMultipartUploadRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
174
194 inline AbortMultipartUploadRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
195
215 inline AbortMultipartUploadRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
216
217
221 inline const Aws::String& GetKey() const{ return m_key; }
222
226 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
227
231 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
232
236 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
237
241 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
242
246 inline AbortMultipartUploadRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
247
251 inline AbortMultipartUploadRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
252
256 inline AbortMultipartUploadRequest& WithKey(const char* value) { SetKey(value); return *this;}
257
258
262 inline const Aws::String& GetUploadId() const{ return m_uploadId; }
263
267 inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
268
272 inline void SetUploadId(const Aws::String& value) { m_uploadIdHasBeenSet = true; m_uploadId = value; }
273
277 inline void SetUploadId(Aws::String&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::move(value); }
278
282 inline void SetUploadId(const char* value) { m_uploadIdHasBeenSet = true; m_uploadId.assign(value); }
283
287 inline AbortMultipartUploadRequest& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;}
288
292 inline AbortMultipartUploadRequest& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;}
293
297 inline AbortMultipartUploadRequest& WithUploadId(const char* value) { SetUploadId(value); return *this;}
298
299
300
301 inline const RequestPayer& GetRequestPayer() const{ return m_requestPayer; }
302
303
304 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
305
306
307 inline void SetRequestPayer(const RequestPayer& value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
308
309
310 inline void SetRequestPayer(RequestPayer&& value) { m_requestPayerHasBeenSet = true; m_requestPayer = std::move(value); }
311
312
313 inline AbortMultipartUploadRequest& WithRequestPayer(const RequestPayer& value) { SetRequestPayer(value); return *this;}
314
315
316 inline AbortMultipartUploadRequest& WithRequestPayer(RequestPayer&& value) { SetRequestPayer(std::move(value)); return *this;}
317
318
324 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
325
331 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
332
338 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
339
345 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
346
352 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
353
360
367
373 inline AbortMultipartUploadRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
374
375
376
377 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
378
379
380 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
381
382
383 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
384
385
386 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
387
388
390
391
393
394
395 inline AbortMultipartUploadRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
396
397
398 inline AbortMultipartUploadRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
399
400
401 inline AbortMultipartUploadRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
402
403
404 inline AbortMultipartUploadRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
405
406
407 inline AbortMultipartUploadRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
408
409
410 inline AbortMultipartUploadRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
411
412
413 inline AbortMultipartUploadRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
414
415 private:
416
417 Aws::String m_bucket;
418 bool m_bucketHasBeenSet = false;
419
420 Aws::String m_key;
421 bool m_keyHasBeenSet = false;
422
423 Aws::String m_uploadId;
424 bool m_uploadIdHasBeenSet = false;
425
426 RequestPayer m_requestPayer;
427 bool m_requestPayerHasBeenSet = false;
428
429 Aws::String m_expectedBucketOwner;
430 bool m_expectedBucketOwnerHasBeenSet = false;
431
432 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
433 bool m_customizedAccessLogTagHasBeenSet = false;
434 };
435
436} // namespace Model
437} // namespace S3
438} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
AbortMultipartUploadRequest & WithKey(const Aws::String &value)
AbortMultipartUploadRequest & WithBucket(const Aws::String &value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
AbortMultipartUploadRequest & WithRequestPayer(RequestPayer &&value)
AbortMultipartUploadRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
AbortMultipartUploadRequest & WithKey(Aws::String &&value)
AbortMultipartUploadRequest & WithBucket(const char *value)
AbortMultipartUploadRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
AbortMultipartUploadRequest & WithRequestPayer(const RequestPayer &value)
AbortMultipartUploadRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
AbortMultipartUploadRequest & WithExpectedBucketOwner(Aws::String &&value)
AbortMultipartUploadRequest & WithExpectedBucketOwner(const char *value)
AbortMultipartUploadRequest & WithUploadId(const Aws::String &value)
AbortMultipartUploadRequest & WithKey(const char *value)
AbortMultipartUploadRequest & WithExpectedBucketOwner(const Aws::String &value)
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
AbortMultipartUploadRequest & WithUploadId(const char *value)
AbortMultipartUploadRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
AbortMultipartUploadRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
virtual const char * GetServiceRequestName() const override
AbortMultipartUploadRequest & WithBucket(Aws::String &&value)
AbortMultipartUploadRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AbortMultipartUploadRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
AbortMultipartUploadRequest & WithUploadId(Aws::String &&value)
AbortMultipartUploadRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
AWS_S3_API Aws::String SerializePayload() const override
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
AbortMultipartUploadRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
Aws::Endpoint::EndpointParameters EndpointParameters
Definition: S3Request.h:22
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String