AWS SDK for C++  1.9.40
AWS SDK for C++
AbortMultipartUploadRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Http
17 {
18  class URI;
19 } //namespace Http
20 namespace S3Crt
21 {
22 namespace 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 
38  Aws::String SerializePayload() const override;
39 
40  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41 
43 
44 
64  inline const Aws::String& GetBucket() const{ return m_bucket; }
65 
85  inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
86 
106  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
107 
127  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
128 
148  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
149 
169  inline AbortMultipartUploadRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
170 
190  inline AbortMultipartUploadRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
191 
211  inline AbortMultipartUploadRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
212 
213 
217  inline const Aws::String& GetKey() const{ return m_key; }
218 
222  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
223 
227  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
228 
232  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
233 
237  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
238 
242  inline AbortMultipartUploadRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
243 
247  inline AbortMultipartUploadRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
248 
252  inline AbortMultipartUploadRequest& WithKey(const char* value) { SetKey(value); return *this;}
253 
254 
258  inline const Aws::String& GetUploadId() const{ return m_uploadId; }
259 
263  inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
264 
268  inline void SetUploadId(const Aws::String& value) { m_uploadIdHasBeenSet = true; m_uploadId = value; }
269 
273  inline void SetUploadId(Aws::String&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::move(value); }
274 
278  inline void SetUploadId(const char* value) { m_uploadIdHasBeenSet = true; m_uploadId.assign(value); }
279 
283  inline AbortMultipartUploadRequest& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;}
284 
288  inline AbortMultipartUploadRequest& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;}
289 
293  inline AbortMultipartUploadRequest& WithUploadId(const char* value) { SetUploadId(value); return *this;}
294 
295 
296 
297  inline const RequestPayer& GetRequestPayer() const{ return m_requestPayer; }
298 
299 
300  inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
301 
302 
303  inline void SetRequestPayer(const RequestPayer& value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
304 
305 
306  inline void SetRequestPayer(RequestPayer&& value) { m_requestPayerHasBeenSet = true; m_requestPayer = std::move(value); }
307 
308 
309  inline AbortMultipartUploadRequest& WithRequestPayer(const RequestPayer& value) { SetRequestPayer(value); return *this;}
310 
311 
312  inline AbortMultipartUploadRequest& WithRequestPayer(RequestPayer&& value) { SetRequestPayer(std::move(value)); return *this;}
313 
314 
320  inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
321 
327  inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
328 
334  inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
335 
341  inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
342 
348  inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
349 
355  inline AbortMultipartUploadRequest& WithExpectedBucketOwner(const Aws::String& value) { SetExpectedBucketOwner(value); return *this;}
356 
362  inline AbortMultipartUploadRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
363 
369  inline AbortMultipartUploadRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
370 
371 
372 
373  inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
374 
375 
376  inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
377 
378 
379  inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
380 
381 
382  inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
383 
384 
385  inline AbortMultipartUploadRequest& WithCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { SetCustomizedAccessLogTag(value); return *this;}
386 
387 
388  inline AbortMultipartUploadRequest& WithCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { SetCustomizedAccessLogTag(std::move(value)); return *this;}
389 
390 
391  inline AbortMultipartUploadRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
392 
393 
394  inline AbortMultipartUploadRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
395 
396 
397  inline AbortMultipartUploadRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
398 
399 
400  inline AbortMultipartUploadRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
401 
402 
403  inline AbortMultipartUploadRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
404 
405 
406  inline AbortMultipartUploadRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
407 
408 
409  inline AbortMultipartUploadRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
410 
411  private:
412 
413  Aws::String m_bucket;
414  bool m_bucketHasBeenSet;
415 
416  Aws::String m_key;
417  bool m_keyHasBeenSet;
418 
419  Aws::String m_uploadId;
420  bool m_uploadIdHasBeenSet;
421 
422  RequestPayer m_requestPayer;
423  bool m_requestPayerHasBeenSet;
424 
425  Aws::String m_expectedBucketOwner;
426  bool m_expectedBucketOwnerHasBeenSet;
427 
428  Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
429  bool m_customizedAccessLogTagHasBeenSet;
430  };
431 
432 } // namespace Model
433 } // namespace S3Crt
434 } // namespace Aws
Aws::S3Crt::Model::AbortMultipartUploadRequest::SetCustomizedAccessLogTag
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
Definition: AbortMultipartUploadRequest.h:379
Aws::S3Crt::Model::AbortMultipartUploadRequest::AddCustomizedAccessLogTag
AbortMultipartUploadRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
Definition: AbortMultipartUploadRequest.h:400
Aws::S3Crt::Model::AbortMultipartUploadRequest::WithUploadId
AbortMultipartUploadRequest & WithUploadId(const Aws::String &value)
Definition: AbortMultipartUploadRequest.h:283
Aws::Http::URI
Definition: URI.h:32
Aws::S3Crt::Model::AbortMultipartUploadRequest::SetKey
void SetKey(const char *value)
Definition: AbortMultipartUploadRequest.h:237
Aws::S3Crt::Model::AbortMultipartUploadRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(const char *value)
Definition: AbortMultipartUploadRequest.h:348
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::S3Crt::Model::AbortMultipartUploadRequest::WithCustomizedAccessLogTag
AbortMultipartUploadRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
Definition: AbortMultipartUploadRequest.h:388
Aws::S3Crt::Model::AbortMultipartUploadRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::S3Crt::Model::AbortMultipartUploadRequest::CustomizedAccessLogTagHasBeenSet
bool CustomizedAccessLogTagHasBeenSet() const
Definition: AbortMultipartUploadRequest.h:376
Aws::S3Crt::Model::AbortMultipartUploadRequest::WithExpectedBucketOwner
AbortMultipartUploadRequest & WithExpectedBucketOwner(const Aws::String &value)
Definition: AbortMultipartUploadRequest.h:355
Aws::S3Crt::Model::AbortMultipartUploadRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AbortMultipartUploadRequest.h:36
Aws::S3Crt::Model::AbortMultipartUploadRequest::SetUploadId
void SetUploadId(const Aws::String &value)
Definition: AbortMultipartUploadRequest.h:268
Aws::S3Crt::Model::AbortMultipartUploadRequest::WithBucket
AbortMultipartUploadRequest & WithBucket(const Aws::String &value)
Definition: AbortMultipartUploadRequest.h:169
Aws::S3Crt::Model::AbortMultipartUploadRequest::AddCustomizedAccessLogTag
AbortMultipartUploadRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
Definition: AbortMultipartUploadRequest.h:403
Aws::S3Crt::Model::AbortMultipartUploadRequest::SetBucket
void SetBucket(const Aws::String &value)
Definition: AbortMultipartUploadRequest.h:106
Aws::S3Crt::Model::AbortMultipartUploadRequest::GetRequestPayer
const RequestPayer & GetRequestPayer() const
Definition: AbortMultipartUploadRequest.h:297
RequestPayer.h
Aws::S3Crt::Model::AbortMultipartUploadRequest::AddCustomizedAccessLogTag
AbortMultipartUploadRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
Definition: AbortMultipartUploadRequest.h:391
Aws::S3Crt::Model::AbortMultipartUploadRequest::SetKey
void SetKey(const Aws::String &value)
Definition: AbortMultipartUploadRequest.h:227
Aws::S3Crt::Model::AbortMultipartUploadRequest::GetUploadId
const Aws::String & GetUploadId() const
Definition: AbortMultipartUploadRequest.h:258
Aws::S3Crt::Model::AbortMultipartUploadRequest::SetRequestPayer
void SetRequestPayer(const RequestPayer &value)
Definition: AbortMultipartUploadRequest.h:303
Aws::S3Crt::Model::AbortMultipartUploadRequest::ExpectedBucketOwnerHasBeenSet
bool ExpectedBucketOwnerHasBeenSet() const
Definition: AbortMultipartUploadRequest.h:327
Aws::S3Crt::Model::AbortMultipartUploadRequest::WithBucket
AbortMultipartUploadRequest & WithBucket(const char *value)
Definition: AbortMultipartUploadRequest.h:211
Aws::S3Crt::Model::AbortMultipartUploadRequest::WithBucket
AbortMultipartUploadRequest & WithBucket(Aws::String &&value)
Definition: AbortMultipartUploadRequest.h:190
Aws::S3Crt::Model::AbortMultipartUploadRequest::WithExpectedBucketOwner
AbortMultipartUploadRequest & WithExpectedBucketOwner(Aws::String &&value)
Definition: AbortMultipartUploadRequest.h:362
Aws::S3Crt::Model::AbortMultipartUploadRequest::SetUploadId
void SetUploadId(Aws::String &&value)
Definition: AbortMultipartUploadRequest.h:273
Aws::S3Crt::Model::AbortMultipartUploadRequest::WithUploadId
AbortMultipartUploadRequest & WithUploadId(const char *value)
Definition: AbortMultipartUploadRequest.h:293
S3CrtRequest.h
Aws::S3Crt::Model::AbortMultipartUploadRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(const Aws::String &value)
Definition: AbortMultipartUploadRequest.h:334
Aws::S3Crt::Model::AbortMultipartUploadRequest::SetKey
void SetKey(Aws::String &&value)
Definition: AbortMultipartUploadRequest.h:232
AWS_S3CRT_API
#define AWS_S3CRT_API
Definition: S3Crt_EXPORTS.h:28
Aws::S3Crt::Model::AbortMultipartUploadRequest::WithUploadId
AbortMultipartUploadRequest & WithUploadId(Aws::String &&value)
Definition: AbortMultipartUploadRequest.h:288
Aws::S3Crt::Model::AbortMultipartUploadRequest::GetKey
const Aws::String & GetKey() const
Definition: AbortMultipartUploadRequest.h:217
Aws::S3Crt::Model::AbortMultipartUploadRequest::WithRequestPayer
AbortMultipartUploadRequest & WithRequestPayer(RequestPayer &&value)
Definition: AbortMultipartUploadRequest.h:312
AWSString.h
Aws::S3Crt::S3CrtRequest
Definition: S3CrtRequest.h:18
Aws::S3Crt::Model::AbortMultipartUploadRequest::WithKey
AbortMultipartUploadRequest & WithKey(Aws::String &&value)
Definition: AbortMultipartUploadRequest.h:247
Aws::S3Crt::Model::AbortMultipartUploadRequest::AbortMultipartUploadRequest
AbortMultipartUploadRequest()
Aws::S3Crt::Model::AbortMultipartUploadRequest::WithRequestPayer
AbortMultipartUploadRequest & WithRequestPayer(const RequestPayer &value)
Definition: AbortMultipartUploadRequest.h:309
Aws::S3Crt::Model::AbortMultipartUploadRequest::GetCustomizedAccessLogTag
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
Definition: AbortMultipartUploadRequest.h:373
Aws::S3Crt::Model::AbortMultipartUploadRequest::BucketHasBeenSet
bool BucketHasBeenSet() const
Definition: AbortMultipartUploadRequest.h:85
Aws::S3Crt::Model::AbortMultipartUploadRequest::SetRequestPayer
void SetRequestPayer(RequestPayer &&value)
Definition: AbortMultipartUploadRequest.h:306
Aws::S3Crt::Model::AbortMultipartUploadRequest::UploadIdHasBeenSet
bool UploadIdHasBeenSet() const
Definition: AbortMultipartUploadRequest.h:263
Aws::S3Crt::Model::AbortMultipartUploadRequest::RequestPayerHasBeenSet
bool RequestPayerHasBeenSet() const
Definition: AbortMultipartUploadRequest.h:300
Aws::S3Crt::Model::AbortMultipartUploadRequest::SetCustomizedAccessLogTag
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
Definition: AbortMultipartUploadRequest.h:382
Aws::S3Crt::Model::AbortMultipartUploadRequest::SetBucket
void SetBucket(Aws::String &&value)
Definition: AbortMultipartUploadRequest.h:127
Aws::S3Crt::Model::RequestPayer
RequestPayer
Definition: RequestPayer.h:17
Aws::S3Crt::Model::AbortMultipartUploadRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws
Definition: AccessManagementClient.h:15
Aws::S3Crt::Model::AbortMultipartUploadRequest::AddCustomizedAccessLogTag
AbortMultipartUploadRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
Definition: AbortMultipartUploadRequest.h:406
Aws::S3Crt::Model::AbortMultipartUploadRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::S3Crt::Model::AbortMultipartUploadRequest::SetBucket
void SetBucket(const char *value)
Definition: AbortMultipartUploadRequest.h:148
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::S3Crt::Model::AbortMultipartUploadRequest::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: AbortMultipartUploadRequest.h:222
Aws::S3Crt::Model::AbortMultipartUploadRequest::WithKey
AbortMultipartUploadRequest & WithKey(const char *value)
Definition: AbortMultipartUploadRequest.h:252
Aws::S3Crt::Model::AbortMultipartUploadRequest
Definition: AbortMultipartUploadRequest.h:28
Aws::S3Crt::Model::AbortMultipartUploadRequest::AddCustomizedAccessLogTag
AbortMultipartUploadRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
Definition: AbortMultipartUploadRequest.h:397
Aws::S3Crt::Model::AbortMultipartUploadRequest::WithExpectedBucketOwner
AbortMultipartUploadRequest & WithExpectedBucketOwner(const char *value)
Definition: AbortMultipartUploadRequest.h:369
Aws::S3Crt::Model::AbortMultipartUploadRequest::WithKey
AbortMultipartUploadRequest & WithKey(const Aws::String &value)
Definition: AbortMultipartUploadRequest.h:242
Aws::S3Crt::Model::AbortMultipartUploadRequest::SetUploadId
void SetUploadId(const char *value)
Definition: AbortMultipartUploadRequest.h:278
Aws::S3Crt::Model::AbortMultipartUploadRequest::GetBucket
const Aws::String & GetBucket() const
Definition: AbortMultipartUploadRequest.h:64
Aws::S3Crt::Model::AbortMultipartUploadRequest::AddCustomizedAccessLogTag
AbortMultipartUploadRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
Definition: AbortMultipartUploadRequest.h:409
Aws::S3Crt::Model::AbortMultipartUploadRequest::AddCustomizedAccessLogTag
AbortMultipartUploadRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
Definition: AbortMultipartUploadRequest.h:394
AWSMap.h
Aws::S3Crt::Model::AbortMultipartUploadRequest::WithCustomizedAccessLogTag
AbortMultipartUploadRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
Definition: AbortMultipartUploadRequest.h:385
Aws::S3Crt::Model::AbortMultipartUploadRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(Aws::String &&value)
Definition: AbortMultipartUploadRequest.h:341
S3Crt_EXPORTS.h
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::S3Crt::Model::AbortMultipartUploadRequest::GetExpectedBucketOwner
const Aws::String & GetExpectedBucketOwner() const
Definition: AbortMultipartUploadRequest.h:320