AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
PutObjectLockConfigurationRequest.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 "PutObjectLockConfiguration"; }
39
41
43
45
47
52
56 inline const Aws::String& GetBucket() const{ return m_bucket; }
57
61 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
62
66 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
67
71 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
72
76 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
77
81 inline PutObjectLockConfigurationRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
82
86 inline PutObjectLockConfigurationRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
87
91 inline PutObjectLockConfigurationRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
92
93
98 inline const ObjectLockConfiguration& GetObjectLockConfiguration() const{ return m_objectLockConfiguration; }
99
104 inline bool ObjectLockConfigurationHasBeenSet() const { return m_objectLockConfigurationHasBeenSet; }
105
110 inline void SetObjectLockConfiguration(const ObjectLockConfiguration& value) { m_objectLockConfigurationHasBeenSet = true; m_objectLockConfiguration = value; }
111
116 inline void SetObjectLockConfiguration(ObjectLockConfiguration&& value) { m_objectLockConfigurationHasBeenSet = true; m_objectLockConfiguration = std::move(value); }
117
123
129
130
131
132 inline const RequestPayer& GetRequestPayer() const{ return m_requestPayer; }
133
134
135 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
136
137
138 inline void SetRequestPayer(const RequestPayer& value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
139
140
141 inline void SetRequestPayer(RequestPayer&& value) { m_requestPayerHasBeenSet = true; m_requestPayer = std::move(value); }
142
143
145
146
147 inline PutObjectLockConfigurationRequest& WithRequestPayer(RequestPayer&& value) { SetRequestPayer(std::move(value)); return *this;}
148
149
153 inline const Aws::String& GetToken() const{ return m_token; }
154
158 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
159
163 inline void SetToken(const Aws::String& value) { m_tokenHasBeenSet = true; m_token = value; }
164
168 inline void SetToken(Aws::String&& value) { m_tokenHasBeenSet = true; m_token = std::move(value); }
169
173 inline void SetToken(const char* value) { m_tokenHasBeenSet = true; m_token.assign(value); }
174
178 inline PutObjectLockConfigurationRequest& WithToken(const Aws::String& value) { SetToken(value); return *this;}
179
183 inline PutObjectLockConfigurationRequest& WithToken(Aws::String&& value) { SetToken(std::move(value)); return *this;}
184
188 inline PutObjectLockConfigurationRequest& WithToken(const char* value) { SetToken(value); return *this;}
189
190
196 inline const Aws::String& GetContentMD5() const{ return m_contentMD5; }
197
203 inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
204
210 inline void SetContentMD5(const Aws::String& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = value; }
211
217 inline void SetContentMD5(Aws::String&& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = std::move(value); }
218
224 inline void SetContentMD5(const char* value) { m_contentMD5HasBeenSet = true; m_contentMD5.assign(value); }
225
231 inline PutObjectLockConfigurationRequest& WithContentMD5(const Aws::String& value) { SetContentMD5(value); return *this;}
232
238 inline PutObjectLockConfigurationRequest& WithContentMD5(Aws::String&& value) { SetContentMD5(std::move(value)); return *this;}
239
245 inline PutObjectLockConfigurationRequest& WithContentMD5(const char* value) { SetContentMD5(value); return *this;}
246
247
260 inline const ChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; }
261
274 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
275
288 inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
289
302 inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = std::move(value); }
303
317
331
332
338 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
339
345 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
346
352 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
353
359 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
360
366 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
367
374
381
387 inline PutObjectLockConfigurationRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
388
389
390
391 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
392
393
394 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
395
396
397 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
398
399
400 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
401
402
404
405
407
408
409 inline PutObjectLockConfigurationRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
410
411
412 inline PutObjectLockConfigurationRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
413
414
415 inline PutObjectLockConfigurationRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
416
417
418 inline PutObjectLockConfigurationRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
419
420
421 inline PutObjectLockConfigurationRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
422
423
424 inline PutObjectLockConfigurationRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
425
426
427 inline PutObjectLockConfigurationRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
428
429 private:
430
431 Aws::String m_bucket;
432 bool m_bucketHasBeenSet = false;
433
434 ObjectLockConfiguration m_objectLockConfiguration;
435 bool m_objectLockConfigurationHasBeenSet = false;
436
437 RequestPayer m_requestPayer;
438 bool m_requestPayerHasBeenSet = false;
439
440 Aws::String m_token;
441 bool m_tokenHasBeenSet = false;
442
443 Aws::String m_contentMD5;
444 bool m_contentMD5HasBeenSet = false;
445
446 ChecksumAlgorithm m_checksumAlgorithm;
447 bool m_checksumAlgorithmHasBeenSet = false;
448
449 Aws::String m_expectedBucketOwner;
450 bool m_expectedBucketOwnerHasBeenSet = false;
451
452 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
453 bool m_customizedAccessLogTagHasBeenSet = false;
454 };
455
456} // namespace Model
457} // namespace S3
458} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
PutObjectLockConfigurationRequest & WithToken(Aws::String &&value)
PutObjectLockConfigurationRequest & WithBucket(Aws::String &&value)
PutObjectLockConfigurationRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
PutObjectLockConfigurationRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
void SetObjectLockConfiguration(const ObjectLockConfiguration &value)
const ObjectLockConfiguration & GetObjectLockConfiguration() const
PutObjectLockConfigurationRequest & WithChecksumAlgorithm(const ChecksumAlgorithm &value)
PutObjectLockConfigurationRequest & WithBucket(const char *value)
PutObjectLockConfigurationRequest & WithContentMD5(const Aws::String &value)
PutObjectLockConfigurationRequest & WithRequestPayer(const RequestPayer &value)
PutObjectLockConfigurationRequest & WithRequestPayer(RequestPayer &&value)
PutObjectLockConfigurationRequest & WithBucket(const Aws::String &value)
PutObjectLockConfigurationRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
AWS_S3_API Aws::String GetChecksumAlgorithmName() const override
PutObjectLockConfigurationRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
PutObjectLockConfigurationRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
PutObjectLockConfigurationRequest & WithToken(const Aws::String &value)
AWS_S3_API Aws::String SerializePayload() const override
PutObjectLockConfigurationRequest & WithObjectLockConfiguration(const ObjectLockConfiguration &value)
PutObjectLockConfigurationRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
PutObjectLockConfigurationRequest & WithContentMD5(const char *value)
PutObjectLockConfigurationRequest & WithExpectedBucketOwner(const Aws::String &value)
PutObjectLockConfigurationRequest & WithToken(const char *value)
PutObjectLockConfigurationRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
PutObjectLockConfigurationRequest & WithExpectedBucketOwner(Aws::String &&value)
PutObjectLockConfigurationRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
PutObjectLockConfigurationRequest & WithContentMD5(Aws::String &&value)
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutObjectLockConfigurationRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
PutObjectLockConfigurationRequest & WithExpectedBucketOwner(const char *value)
PutObjectLockConfigurationRequest & WithChecksumAlgorithm(ChecksumAlgorithm &&value)
PutObjectLockConfigurationRequest & WithObjectLockConfiguration(ObjectLockConfiguration &&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