AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
PutObjectLegalHoldRequest.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>
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 "PutObjectLegalHold"; }
39
41
43
45
47
52
64 inline const Aws::String& GetBucket() const{ return m_bucket; }
65
77 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
78
90 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
91
103 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
104
116 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
117
129 inline PutObjectLegalHoldRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
130
142 inline PutObjectLegalHoldRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
143
155 inline PutObjectLegalHoldRequest& 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 PutObjectLegalHoldRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
187
191 inline PutObjectLegalHoldRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
192
196 inline PutObjectLegalHoldRequest& WithKey(const char* value) { SetKey(value); return *this;}
197
198
203 inline const ObjectLockLegalHold& GetLegalHold() const{ return m_legalHold; }
204
209 inline bool LegalHoldHasBeenSet() const { return m_legalHoldHasBeenSet; }
210
215 inline void SetLegalHold(const ObjectLockLegalHold& value) { m_legalHoldHasBeenSet = true; m_legalHold = value; }
216
221 inline void SetLegalHold(ObjectLockLegalHold&& value) { m_legalHoldHasBeenSet = true; m_legalHold = std::move(value); }
222
227 inline PutObjectLegalHoldRequest& WithLegalHold(const ObjectLockLegalHold& value) { SetLegalHold(value); return *this;}
228
233 inline PutObjectLegalHoldRequest& WithLegalHold(ObjectLockLegalHold&& value) { SetLegalHold(std::move(value)); return *this;}
234
235
236
237 inline const RequestPayer& GetRequestPayer() const{ return m_requestPayer; }
238
239
240 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
241
242
243 inline void SetRequestPayer(const RequestPayer& value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
244
245
246 inline void SetRequestPayer(RequestPayer&& value) { m_requestPayerHasBeenSet = true; m_requestPayer = std::move(value); }
247
248
249 inline PutObjectLegalHoldRequest& WithRequestPayer(const RequestPayer& value) { SetRequestPayer(value); return *this;}
250
251
252 inline PutObjectLegalHoldRequest& WithRequestPayer(RequestPayer&& value) { SetRequestPayer(std::move(value)); return *this;}
253
254
258 inline const Aws::String& GetVersionId() const{ return m_versionId; }
259
263 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
264
268 inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
269
273 inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
274
278 inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
279
283 inline PutObjectLegalHoldRequest& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
284
288 inline PutObjectLegalHoldRequest& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
289
293 inline PutObjectLegalHoldRequest& WithVersionId(const char* value) { SetVersionId(value); return *this;}
294
295
301 inline const Aws::String& GetContentMD5() const{ return m_contentMD5; }
302
308 inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
309
315 inline void SetContentMD5(const Aws::String& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = value; }
316
322 inline void SetContentMD5(Aws::String&& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = std::move(value); }
323
329 inline void SetContentMD5(const char* value) { m_contentMD5HasBeenSet = true; m_contentMD5.assign(value); }
330
336 inline PutObjectLegalHoldRequest& WithContentMD5(const Aws::String& value) { SetContentMD5(value); return *this;}
337
343 inline PutObjectLegalHoldRequest& WithContentMD5(Aws::String&& value) { SetContentMD5(std::move(value)); return *this;}
344
350 inline PutObjectLegalHoldRequest& WithContentMD5(const char* value) { SetContentMD5(value); return *this;}
351
352
365 inline const ChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; }
366
379 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
380
393 inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
394
407 inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = std::move(value); }
408
422
436
437
443 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
444
450 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
451
457 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
458
464 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
465
471 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
472
479
485 inline PutObjectLegalHoldRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
486
492 inline PutObjectLegalHoldRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
493
494
495
496 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
497
498
499 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
500
501
502 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
503
504
505 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
506
507
509
510
512
513
514 inline PutObjectLegalHoldRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
515
516
517 inline PutObjectLegalHoldRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
518
519
520 inline PutObjectLegalHoldRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
521
522
523 inline PutObjectLegalHoldRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
524
525
526 inline PutObjectLegalHoldRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
527
528
529 inline PutObjectLegalHoldRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
530
531
532 inline PutObjectLegalHoldRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
533
534 private:
535
536 Aws::String m_bucket;
537 bool m_bucketHasBeenSet = false;
538
539 Aws::String m_key;
540 bool m_keyHasBeenSet = false;
541
542 ObjectLockLegalHold m_legalHold;
543 bool m_legalHoldHasBeenSet = false;
544
545 RequestPayer m_requestPayer;
546 bool m_requestPayerHasBeenSet = false;
547
548 Aws::String m_versionId;
549 bool m_versionIdHasBeenSet = false;
550
551 Aws::String m_contentMD5;
552 bool m_contentMD5HasBeenSet = false;
553
554 ChecksumAlgorithm m_checksumAlgorithm;
555 bool m_checksumAlgorithmHasBeenSet = false;
556
557 Aws::String m_expectedBucketOwner;
558 bool m_expectedBucketOwnerHasBeenSet = false;
559
560 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
561 bool m_customizedAccessLogTagHasBeenSet = false;
562 };
563
564} // namespace Model
565} // namespace S3
566} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
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