AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
DeleteObjectRequest.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 "DeleteObject"; }
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 DeleteObjectRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
174
194 inline DeleteObjectRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
195
215 inline DeleteObjectRequest& 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 DeleteObjectRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
247
251 inline DeleteObjectRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
252
256 inline DeleteObjectRequest& WithKey(const char* value) { SetKey(value); return *this;}
257
258
265 inline const Aws::String& GetMFA() const{ return m_mFA; }
266
273 inline bool MFAHasBeenSet() const { return m_mFAHasBeenSet; }
274
281 inline void SetMFA(const Aws::String& value) { m_mFAHasBeenSet = true; m_mFA = value; }
282
289 inline void SetMFA(Aws::String&& value) { m_mFAHasBeenSet = true; m_mFA = std::move(value); }
290
297 inline void SetMFA(const char* value) { m_mFAHasBeenSet = true; m_mFA.assign(value); }
298
305 inline DeleteObjectRequest& WithMFA(const Aws::String& value) { SetMFA(value); return *this;}
306
313 inline DeleteObjectRequest& WithMFA(Aws::String&& value) { SetMFA(std::move(value)); return *this;}
314
321 inline DeleteObjectRequest& WithMFA(const char* value) { SetMFA(value); return *this;}
322
323
327 inline const Aws::String& GetVersionId() const{ return m_versionId; }
328
332 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
333
337 inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
338
342 inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
343
347 inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
348
352 inline DeleteObjectRequest& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
353
357 inline DeleteObjectRequest& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
358
362 inline DeleteObjectRequest& WithVersionId(const char* value) { SetVersionId(value); return *this;}
363
364
365
366 inline const RequestPayer& GetRequestPayer() const{ return m_requestPayer; }
367
368
369 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
370
371
372 inline void SetRequestPayer(const RequestPayer& value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
373
374
375 inline void SetRequestPayer(RequestPayer&& value) { m_requestPayerHasBeenSet = true; m_requestPayer = std::move(value); }
376
377
378 inline DeleteObjectRequest& WithRequestPayer(const RequestPayer& value) { SetRequestPayer(value); return *this;}
379
380
381 inline DeleteObjectRequest& WithRequestPayer(RequestPayer&& value) { SetRequestPayer(std::move(value)); return *this;}
382
383
389 inline bool GetBypassGovernanceRetention() const{ return m_bypassGovernanceRetention; }
390
396 inline bool BypassGovernanceRetentionHasBeenSet() const { return m_bypassGovernanceRetentionHasBeenSet; }
397
403 inline void SetBypassGovernanceRetention(bool value) { m_bypassGovernanceRetentionHasBeenSet = true; m_bypassGovernanceRetention = value; }
404
411
412
418 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
419
425 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
426
432 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
433
439 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
440
446 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
447
454
460 inline DeleteObjectRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
461
467 inline DeleteObjectRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
468
469
470
471 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
472
473
474 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
475
476
477 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
478
479
480 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
481
482
484
485
487
488
489 inline DeleteObjectRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
490
491
492 inline DeleteObjectRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
493
494
495 inline DeleteObjectRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
496
497
498 inline DeleteObjectRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
499
500
501 inline DeleteObjectRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
502
503
504 inline DeleteObjectRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
505
506
507 inline DeleteObjectRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
508
509 private:
510
511 Aws::String m_bucket;
512 bool m_bucketHasBeenSet = false;
513
514 Aws::String m_key;
515 bool m_keyHasBeenSet = false;
516
517 Aws::String m_mFA;
518 bool m_mFAHasBeenSet = false;
519
520 Aws::String m_versionId;
521 bool m_versionIdHasBeenSet = false;
522
523 RequestPayer m_requestPayer;
524 bool m_requestPayerHasBeenSet = false;
525
526 bool m_bypassGovernanceRetention;
527 bool m_bypassGovernanceRetentionHasBeenSet = false;
528
529 Aws::String m_expectedBucketOwner;
530 bool m_expectedBucketOwnerHasBeenSet = false;
531
532 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
533 bool m_customizedAccessLogTagHasBeenSet = false;
534 };
535
536} // namespace Model
537} // namespace S3
538} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
void SetBucket(const Aws::String &value)
DeleteObjectRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
DeleteObjectRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
DeleteObjectRequest & WithRequestPayer(RequestPayer &&value)
DeleteObjectRequest & WithRequestPayer(const RequestPayer &value)
const Aws::String & GetExpectedBucketOwner() const
DeleteObjectRequest & WithExpectedBucketOwner(const Aws::String &value)
void SetKey(const Aws::String &value)
DeleteObjectRequest & WithExpectedBucketOwner(const char *value)
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetBucket() const
void SetVersionId(Aws::String &&value)
DeleteObjectRequest & WithBucket(const char *value)
DeleteObjectRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
DeleteObjectRequest & WithBypassGovernanceRetention(bool value)
DeleteObjectRequest & WithKey(Aws::String &&value)
void SetRequestPayer(const RequestPayer &value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetMFA() const
const Aws::String & GetVersionId() const
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
const Aws::String & GetKey() const
const RequestPayer & GetRequestPayer() const
DeleteObjectRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
void SetRequestPayer(RequestPayer &&value)
DeleteObjectRequest & WithMFA(Aws::String &&value)
DeleteObjectRequest & WithKey(const Aws::String &value)
DeleteObjectRequest & WithBucket(const Aws::String &value)
DeleteObjectRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
DeleteObjectRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
DeleteObjectRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
DeleteObjectRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
DeleteObjectRequest & WithMFA(const Aws::String &value)
void SetVersionId(const Aws::String &value)
DeleteObjectRequest & WithVersionId(const Aws::String &value)
DeleteObjectRequest & WithMFA(const char *value)
DeleteObjectRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
AWS_S3_API Aws::String SerializePayload() const override
DeleteObjectRequest & WithBucket(Aws::String &&value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
DeleteObjectRequest & WithVersionId(Aws::String &&value)
DeleteObjectRequest & WithExpectedBucketOwner(Aws::String &&value)
DeleteObjectRequest & WithKey(const char *value)
void SetExpectedBucketOwner(const Aws::String &value)
DeleteObjectRequest & WithVersionId(const char *value)
void SetMFA(const Aws::String &value)
void SetExpectedBucketOwner(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
void SetExpectedBucketOwner(const char *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