AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
PutBucketEncryptionRequest.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>
13#include <utility>
14
15namespace Aws
16{
17namespace Http
18{
19 class URI;
20} //namespace Http
21namespace S3
22{
23namespace Model
24{
25
29 {
30 public:
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "PutBucketEncryption"; }
38
40
42
44
46
51
59 inline const Aws::String& GetBucket() const{ return m_bucket; }
60
68 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
69
77 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
78
86 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
87
95 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
96
104 inline PutBucketEncryptionRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
105
113 inline PutBucketEncryptionRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
114
122 inline PutBucketEncryptionRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
123
124
131 inline const Aws::String& GetContentMD5() const{ return m_contentMD5; }
132
139 inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
140
147 inline void SetContentMD5(const Aws::String& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = value; }
148
155 inline void SetContentMD5(Aws::String&& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = std::move(value); }
156
163 inline void SetContentMD5(const char* value) { m_contentMD5HasBeenSet = true; m_contentMD5.assign(value); }
164
171 inline PutBucketEncryptionRequest& WithContentMD5(const Aws::String& value) { SetContentMD5(value); return *this;}
172
179 inline PutBucketEncryptionRequest& WithContentMD5(Aws::String&& value) { SetContentMD5(std::move(value)); return *this;}
180
187 inline PutBucketEncryptionRequest& WithContentMD5(const char* value) { SetContentMD5(value); return *this;}
188
189
202 inline const ChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; }
203
216 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
217
230 inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
231
244 inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = std::move(value); }
245
259
273
274
275
276 inline const ServerSideEncryptionConfiguration& GetServerSideEncryptionConfiguration() const{ return m_serverSideEncryptionConfiguration; }
277
278
279 inline bool ServerSideEncryptionConfigurationHasBeenSet() const { return m_serverSideEncryptionConfigurationHasBeenSet; }
280
281
282 inline void SetServerSideEncryptionConfiguration(const ServerSideEncryptionConfiguration& value) { m_serverSideEncryptionConfigurationHasBeenSet = true; m_serverSideEncryptionConfiguration = value; }
283
284
285 inline void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration&& value) { m_serverSideEncryptionConfigurationHasBeenSet = true; m_serverSideEncryptionConfiguration = std::move(value); }
286
287
289
290
292
293
299 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
300
306 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
307
313 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
314
320 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
321
327 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
328
335
342
348 inline PutBucketEncryptionRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
349
350
351
352 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
353
354
355 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
356
357
358 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
359
360
361 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
362
363
365
366
368
369
370 inline PutBucketEncryptionRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
371
372
373 inline PutBucketEncryptionRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
374
375
376 inline PutBucketEncryptionRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
377
378
379 inline PutBucketEncryptionRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
380
381
382 inline PutBucketEncryptionRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
383
384
385 inline PutBucketEncryptionRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
386
387
388 inline PutBucketEncryptionRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
389
390 private:
391
392 Aws::String m_bucket;
393 bool m_bucketHasBeenSet = false;
394
395 Aws::String m_contentMD5;
396 bool m_contentMD5HasBeenSet = false;
397
398 ChecksumAlgorithm m_checksumAlgorithm;
399 bool m_checksumAlgorithmHasBeenSet = false;
400
401 ServerSideEncryptionConfiguration m_serverSideEncryptionConfiguration;
402 bool m_serverSideEncryptionConfigurationHasBeenSet = false;
403
404 Aws::String m_expectedBucketOwner;
405 bool m_expectedBucketOwnerHasBeenSet = false;
406
407 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
408 bool m_customizedAccessLogTagHasBeenSet = false;
409 };
410
411} // namespace Model
412} // namespace S3
413} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
PutBucketEncryptionRequest & WithExpectedBucketOwner(const Aws::String &value)
PutBucketEncryptionRequest & WithExpectedBucketOwner(const char *value)
PutBucketEncryptionRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
void SetServerSideEncryptionConfiguration(const ServerSideEncryptionConfiguration &value)
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetChecksumAlgorithm(const ChecksumAlgorithm &value)
PutBucketEncryptionRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
virtual const char * GetServiceRequestName() const override
AWS_S3_API Aws::String GetChecksumAlgorithmName() const override
PutBucketEncryptionRequest & WithBucket(const char *value)
const ChecksumAlgorithm & GetChecksumAlgorithm() const
PutBucketEncryptionRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
PutBucketEncryptionRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
PutBucketEncryptionRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
PutBucketEncryptionRequest & WithBucket(Aws::String &&value)
void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration &&value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
PutBucketEncryptionRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
PutBucketEncryptionRequest & WithServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration &&value)
PutBucketEncryptionRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
PutBucketEncryptionRequest & WithContentMD5(const char *value)
PutBucketEncryptionRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
PutBucketEncryptionRequest & WithContentMD5(const Aws::String &value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
PutBucketEncryptionRequest & WithChecksumAlgorithm(ChecksumAlgorithm &&value)
PutBucketEncryptionRequest & WithServerSideEncryptionConfiguration(const ServerSideEncryptionConfiguration &value)
PutBucketEncryptionRequest & WithExpectedBucketOwner(Aws::String &&value)
AWS_S3_API Aws::String SerializePayload() const override
PutBucketEncryptionRequest & WithBucket(const Aws::String &value)
void SetChecksumAlgorithm(ChecksumAlgorithm &&value)
PutBucketEncryptionRequest & WithChecksumAlgorithm(const ChecksumAlgorithm &value)
const ServerSideEncryptionConfiguration & GetServerSideEncryptionConfiguration() const
PutBucketEncryptionRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
PutBucketEncryptionRequest & WithContentMD5(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
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