AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
DeleteObjectsRequest.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>
10#include <aws/s3/model/Delete.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Http
19{
20 class URI;
21} //namespace Http
22namespace S3
23{
24namespace Model
25{
26
30 {
31 public:
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "DeleteObjects"; }
39
41
43
45
47
52
72 inline const Aws::String& GetBucket() const{ return m_bucket; }
73
93 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
94
114 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
115
135 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
136
156 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
157
177 inline DeleteObjectsRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
178
198 inline DeleteObjectsRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
199
219 inline DeleteObjectsRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
220
221
225 inline const Delete& GetDelete() const{ return m_delete; }
226
230 inline bool DeleteHasBeenSet() const { return m_deleteHasBeenSet; }
231
235 inline void SetDelete(const Delete& value) { m_deleteHasBeenSet = true; m_delete = value; }
236
240 inline void SetDelete(Delete&& value) { m_deleteHasBeenSet = true; m_delete = std::move(value); }
241
245 inline DeleteObjectsRequest& WithDelete(const Delete& value) { SetDelete(value); return *this;}
246
250 inline DeleteObjectsRequest& WithDelete(Delete&& value) { SetDelete(std::move(value)); return *this;}
251
252
259 inline const Aws::String& GetMFA() const{ return m_mFA; }
260
267 inline bool MFAHasBeenSet() const { return m_mFAHasBeenSet; }
268
275 inline void SetMFA(const Aws::String& value) { m_mFAHasBeenSet = true; m_mFA = value; }
276
283 inline void SetMFA(Aws::String&& value) { m_mFAHasBeenSet = true; m_mFA = std::move(value); }
284
291 inline void SetMFA(const char* value) { m_mFAHasBeenSet = true; m_mFA.assign(value); }
292
299 inline DeleteObjectsRequest& WithMFA(const Aws::String& value) { SetMFA(value); return *this;}
300
307 inline DeleteObjectsRequest& WithMFA(Aws::String&& value) { SetMFA(std::move(value)); return *this;}
308
315 inline DeleteObjectsRequest& WithMFA(const char* value) { SetMFA(value); return *this;}
316
317
318
319 inline const RequestPayer& GetRequestPayer() const{ return m_requestPayer; }
320
321
322 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
323
324
325 inline void SetRequestPayer(const RequestPayer& value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
326
327
328 inline void SetRequestPayer(RequestPayer&& value) { m_requestPayerHasBeenSet = true; m_requestPayer = std::move(value); }
329
330
331 inline DeleteObjectsRequest& WithRequestPayer(const RequestPayer& value) { SetRequestPayer(value); return *this;}
332
333
334 inline DeleteObjectsRequest& WithRequestPayer(RequestPayer&& value) { SetRequestPayer(std::move(value)); return *this;}
335
336
342 inline bool GetBypassGovernanceRetention() const{ return m_bypassGovernanceRetention; }
343
349 inline bool BypassGovernanceRetentionHasBeenSet() const { return m_bypassGovernanceRetentionHasBeenSet; }
350
356 inline void SetBypassGovernanceRetention(bool value) { m_bypassGovernanceRetentionHasBeenSet = true; m_bypassGovernanceRetention = value; }
357
364
365
371 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
372
378 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
379
385 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
386
392 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
393
399 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
400
407
413 inline DeleteObjectsRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
414
420 inline DeleteObjectsRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
421
422
437 inline const ChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; }
438
453 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
454
469 inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
470
485 inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = std::move(value); }
486
502
517 inline DeleteObjectsRequest& WithChecksumAlgorithm(ChecksumAlgorithm&& value) { SetChecksumAlgorithm(std::move(value)); return *this;}
518
519
520
521 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
522
523
524 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
525
526
527 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
528
529
530 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
531
532
534
535
537
538
539 inline DeleteObjectsRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
540
541
542 inline DeleteObjectsRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
543
544
545 inline DeleteObjectsRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
546
547
548 inline DeleteObjectsRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
549
550
551 inline DeleteObjectsRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
552
553
554 inline DeleteObjectsRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
555
556
557 inline DeleteObjectsRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
558
559 private:
560
561 Aws::String m_bucket;
562 bool m_bucketHasBeenSet = false;
563
564 Delete m_delete;
565 bool m_deleteHasBeenSet = false;
566
567 Aws::String m_mFA;
568 bool m_mFAHasBeenSet = false;
569
570 RequestPayer m_requestPayer;
571 bool m_requestPayerHasBeenSet = false;
572
573 bool m_bypassGovernanceRetention;
574 bool m_bypassGovernanceRetentionHasBeenSet = false;
575
576 Aws::String m_expectedBucketOwner;
577 bool m_expectedBucketOwnerHasBeenSet = false;
578
579 ChecksumAlgorithm m_checksumAlgorithm;
580 bool m_checksumAlgorithmHasBeenSet = false;
581
582 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
583 bool m_customizedAccessLogTagHasBeenSet = false;
584 };
585
586} // namespace Model
587} // namespace S3
588} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
DeleteObjectsRequest & WithExpectedBucketOwner(const Aws::String &value)
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DeleteObjectsRequest & WithBucket(Aws::String &&value)
void SetExpectedBucketOwner(const Aws::String &value)
void SetBucket(const Aws::String &value)
DeleteObjectsRequest & WithExpectedBucketOwner(const char *value)
const RequestPayer & GetRequestPayer() const
DeleteObjectsRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
DeleteObjectsRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
DeleteObjectsRequest & WithChecksumAlgorithm(ChecksumAlgorithm &&value)
DeleteObjectsRequest & WithMFA(Aws::String &&value)
DeleteObjectsRequest & WithChecksumAlgorithm(const ChecksumAlgorithm &value)
DeleteObjectsRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetBucket() const
AWS_S3_API Aws::String GetChecksumAlgorithmName() const override
void SetRequestPayer(const RequestPayer &value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
DeleteObjectsRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
DeleteObjectsRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
void SetExpectedBucketOwner(const char *value)
AWS_S3_API Aws::String SerializePayload() const override
DeleteObjectsRequest & WithExpectedBucketOwner(Aws::String &&value)
DeleteObjectsRequest & WithBucket(const Aws::String &value)
DeleteObjectsRequest & WithBypassGovernanceRetention(bool value)
const ChecksumAlgorithm & GetChecksumAlgorithm() const
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
DeleteObjectsRequest & WithMFA(const char *value)
void SetChecksumAlgorithm(const ChecksumAlgorithm &value)
DeleteObjectsRequest & WithBucket(const char *value)
DeleteObjectsRequest & WithDelete(const Delete &value)
DeleteObjectsRequest & WithRequestPayer(const RequestPayer &value)
const Aws::String & GetExpectedBucketOwner() const
void SetChecksumAlgorithm(ChecksumAlgorithm &&value)
DeleteObjectsRequest & WithDelete(Delete &&value)
void SetRequestPayer(RequestPayer &&value)
void SetMFA(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
DeleteObjectsRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
DeleteObjectsRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetExpectedBucketOwner(Aws::String &&value)
DeleteObjectsRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
DeleteObjectsRequest & WithRequestPayer(RequestPayer &&value)
DeleteObjectsRequest & WithMFA(const Aws::String &value)
DeleteObjectsRequest & AddCustomizedAccessLogTag(const char *key, 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