AWS SDK for C++  1.8.55
AWS SDK for C++
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 
14 namespace Aws
15 {
16 namespace Http
17 {
18  class URI;
19 } //namespace Http
20 namespace S3
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 
42  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
43 
44 
57  inline const Aws::String& GetBucket() const{ return m_bucket; }
58 
71  inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
72 
85  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
86 
99  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
100 
113  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
114 
127  inline AbortMultipartUploadRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
128 
141  inline AbortMultipartUploadRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
142 
155  inline AbortMultipartUploadRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
156 
157 
161  inline const Aws::String& GetKey() const{ return m_key; }
162 
166  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
167 
171  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
172 
176  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
177 
181  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
182 
186  inline AbortMultipartUploadRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
187 
191  inline AbortMultipartUploadRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
192 
196  inline AbortMultipartUploadRequest& WithKey(const char* value) { SetKey(value); return *this;}
197 
198 
202  inline const Aws::String& GetUploadId() const{ return m_uploadId; }
203 
207  inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
208 
212  inline void SetUploadId(const Aws::String& value) { m_uploadIdHasBeenSet = true; m_uploadId = value; }
213 
217  inline void SetUploadId(Aws::String&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::move(value); }
218 
222  inline void SetUploadId(const char* value) { m_uploadIdHasBeenSet = true; m_uploadId.assign(value); }
223 
227  inline AbortMultipartUploadRequest& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;}
228 
232  inline AbortMultipartUploadRequest& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;}
233 
237  inline AbortMultipartUploadRequest& WithUploadId(const char* value) { SetUploadId(value); return *this;}
238 
239 
240 
241  inline const RequestPayer& GetRequestPayer() const{ return m_requestPayer; }
242 
243 
244  inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
245 
246 
247  inline void SetRequestPayer(const RequestPayer& value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
248 
249 
250  inline void SetRequestPayer(RequestPayer&& value) { m_requestPayerHasBeenSet = true; m_requestPayer = std::move(value); }
251 
252 
253  inline AbortMultipartUploadRequest& WithRequestPayer(const RequestPayer& value) { SetRequestPayer(value); return *this;}
254 
255 
256  inline AbortMultipartUploadRequest& WithRequestPayer(RequestPayer&& value) { SetRequestPayer(std::move(value)); return *this;}
257 
258 
264  inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
265 
271  inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
272 
278  inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
279 
285  inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
286 
292  inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
293 
299  inline AbortMultipartUploadRequest& WithExpectedBucketOwner(const Aws::String& value) { SetExpectedBucketOwner(value); return *this;}
300 
306  inline AbortMultipartUploadRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
307 
313  inline AbortMultipartUploadRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
314 
315 
316 
317  inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
318 
319 
320  inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
321 
322 
323  inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
324 
325 
326  inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
327 
328 
329  inline AbortMultipartUploadRequest& WithCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { SetCustomizedAccessLogTag(value); return *this;}
330 
331 
332  inline AbortMultipartUploadRequest& WithCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { SetCustomizedAccessLogTag(std::move(value)); return *this;}
333 
334 
335  inline AbortMultipartUploadRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
336 
337 
338  inline AbortMultipartUploadRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
339 
340 
341  inline AbortMultipartUploadRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
342 
343 
344  inline AbortMultipartUploadRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
345 
346 
347  inline AbortMultipartUploadRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
348 
349 
350  inline AbortMultipartUploadRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
351 
352 
353  inline AbortMultipartUploadRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
354 
355  private:
356 
357  Aws::String m_bucket;
358  bool m_bucketHasBeenSet;
359 
360  Aws::String m_key;
361  bool m_keyHasBeenSet;
362 
363  Aws::String m_uploadId;
364  bool m_uploadIdHasBeenSet;
365 
366  RequestPayer m_requestPayer;
367  bool m_requestPayerHasBeenSet;
368 
369  Aws::String m_expectedBucketOwner;
370  bool m_expectedBucketOwnerHasBeenSet;
371 
372  Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
373  bool m_customizedAccessLogTagHasBeenSet;
374  };
375 
376 } // namespace Model
377 } // namespace S3
378 } // namespace Aws
AbortMultipartUploadRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
AbortMultipartUploadRequest & WithRequestPayer(RequestPayer &&value)
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
AbortMultipartUploadRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
AbortMultipartUploadRequest & WithUploadId(const Aws::String &value)
AbortMultipartUploadRequest & WithExpectedBucketOwner(const Aws::String &value)
AbortMultipartUploadRequest & WithUploadId(const char *value)
AbortMultipartUploadRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
AbortMultipartUploadRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
AbortMultipartUploadRequest & WithExpectedBucketOwner(const char *value)
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
AbortMultipartUploadRequest & WithBucket(const Aws::String &value)
AbortMultipartUploadRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
AbortMultipartUploadRequest & WithRequestPayer(const RequestPayer &value)
AbortMultipartUploadRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
AbortMultipartUploadRequest & WithBucket(Aws::String &&value)
AbortMultipartUploadRequest & WithExpectedBucketOwner(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
AbortMultipartUploadRequest & WithKey(const Aws::String &value)
AbortMultipartUploadRequest & WithUploadId(Aws::String &&value)
AbortMultipartUploadRequest & WithKey(Aws::String &&value)
AbortMultipartUploadRequest & WithBucket(const char *value)
AbortMultipartUploadRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AbortMultipartUploadRequest & WithKey(const char *value)
AbortMultipartUploadRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
AbortMultipartUploadRequest & AddCustomizedAccessLogTag(const char *key, const char *value)