AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutBucketEncryptionRequest.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/s3-crt/S3CrtRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3-crt/model/ChecksumAlgorithm.h>
11#include <aws/s3-crt/model/ServerSideEncryptionConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Http
18{
19 class URI;
20} //namespace Http
21namespace S3Crt
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
39 AWS_S3CRT_API Aws::String SerializePayload() const override;
40
41 AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
44
45 AWS_S3CRT_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override;
46 AWS_S3CRT_API Aws::String GetChecksumAlgorithmName() const override;
47
51 AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override;
52
54
68 inline const Aws::String& GetBucket() const{ return m_bucket; }
69 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
70 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
71 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
72 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
73 inline PutBucketEncryptionRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
74 inline PutBucketEncryptionRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
75 inline PutBucketEncryptionRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
77
79
86 inline const Aws::String& GetContentMD5() const{ return m_contentMD5; }
87 inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
88 inline void SetContentMD5(const Aws::String& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = value; }
89 inline void SetContentMD5(Aws::String&& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = std::move(value); }
90 inline void SetContentMD5(const char* value) { m_contentMD5HasBeenSet = true; m_contentMD5.assign(value); }
91 inline PutBucketEncryptionRequest& WithContentMD5(const Aws::String& value) { SetContentMD5(value); return *this;}
92 inline PutBucketEncryptionRequest& WithContentMD5(Aws::String&& value) { SetContentMD5(std::move(value)); return *this;}
93 inline PutBucketEncryptionRequest& WithContentMD5(const char* value) { SetContentMD5(value); return *this;}
95
97
111 inline const ChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; }
112 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
113 inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
114 inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = std::move(value); }
118
120
121 inline const ServerSideEncryptionConfiguration& GetServerSideEncryptionConfiguration() const{ return m_serverSideEncryptionConfiguration; }
122 inline bool ServerSideEncryptionConfigurationHasBeenSet() const { return m_serverSideEncryptionConfigurationHasBeenSet; }
123 inline void SetServerSideEncryptionConfiguration(const ServerSideEncryptionConfiguration& value) { m_serverSideEncryptionConfigurationHasBeenSet = true; m_serverSideEncryptionConfiguration = value; }
124 inline void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration&& value) { m_serverSideEncryptionConfigurationHasBeenSet = true; m_serverSideEncryptionConfiguration = std::move(value); }
128
130
138 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
139 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
140 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
141 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
142 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
145 inline PutBucketEncryptionRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
147
149
150 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
151 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
152 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
153 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
156 inline PutBucketEncryptionRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
157 inline PutBucketEncryptionRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
158 inline PutBucketEncryptionRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
159 inline PutBucketEncryptionRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
160 inline PutBucketEncryptionRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
161 inline PutBucketEncryptionRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
162 inline PutBucketEncryptionRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
164 private:
165
166 Aws::String m_bucket;
167 bool m_bucketHasBeenSet = false;
168
169 Aws::String m_contentMD5;
170 bool m_contentMD5HasBeenSet = false;
171
172 ChecksumAlgorithm m_checksumAlgorithm;
173 bool m_checksumAlgorithmHasBeenSet = false;
174
175 ServerSideEncryptionConfiguration m_serverSideEncryptionConfiguration;
176 bool m_serverSideEncryptionConfigurationHasBeenSet = false;
177
178 Aws::String m_expectedBucketOwner;
179 bool m_expectedBucketOwnerHasBeenSet = false;
180
181 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
182 bool m_customizedAccessLogTagHasBeenSet = false;
183 };
184
185} // namespace Model
186} // namespace S3Crt
187} // namespace Aws
PutBucketEncryptionRequest & WithBucket(const Aws::String &value)
AWS_S3CRT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutBucketEncryptionRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
PutBucketEncryptionRequest & WithContentMD5(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
void SetServerSideEncryptionConfiguration(const ServerSideEncryptionConfiguration &value)
PutBucketEncryptionRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
PutBucketEncryptionRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
AWS_S3CRT_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
PutBucketEncryptionRequest & WithChecksumAlgorithm(const ChecksumAlgorithm &value)
AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override
PutBucketEncryptionRequest & WithChecksumAlgorithm(ChecksumAlgorithm &&value)
PutBucketEncryptionRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
PutBucketEncryptionRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
PutBucketEncryptionRequest & WithServerSideEncryptionConfiguration(const ServerSideEncryptionConfiguration &value)
PutBucketEncryptionRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
PutBucketEncryptionRequest & WithBucket(Aws::String &&value)
void SetChecksumAlgorithm(const ChecksumAlgorithm &value)
PutBucketEncryptionRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
PutBucketEncryptionRequest & WithBucket(const char *value)
const ServerSideEncryptionConfiguration & GetServerSideEncryptionConfiguration() const
PutBucketEncryptionRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
PutBucketEncryptionRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
PutBucketEncryptionRequest & WithContentMD5(const char *value)
PutBucketEncryptionRequest & WithExpectedBucketOwner(const char *value)
AWS_S3CRT_API Aws::String SerializePayload() const override
PutBucketEncryptionRequest & WithContentMD5(const Aws::String &value)
PutBucketEncryptionRequest & WithServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration &&value)
PutBucketEncryptionRequest & WithExpectedBucketOwner(Aws::String &&value)
AWS_S3CRT_API Aws::String GetChecksumAlgorithmName() const override
PutBucketEncryptionRequest & WithExpectedBucketOwner(const Aws::String &value)
void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration &&value)
Aws::Endpoint::EndpointParameters EndpointParameters
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_iostream< char, std::char_traits< char > > IOStream
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String