AWS SDK for C++

AWS SDK for C++ Version 1.11.844

Loading...
Searching...
No Matches
UpdateObjectEncryptionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3-crt/S3CrtRequest.h>
10#include <aws/s3-crt/S3Crt_EXPORTS.h>
11#include <aws/s3-crt/model/ChecksumAlgorithm.h>
12#include <aws/s3-crt/model/ObjectEncryption.h>
13#include <aws/s3-crt/model/RequestPayer.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Http {
19class URI;
20} // namespace Http
21namespace S3Crt {
22namespace Model {
23
27 public:
28 AWS_S3CRT_API UpdateObjectEncryptionRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateObjectEncryption"; }
35
36 AWS_S3CRT_API Aws::String SerializePayload() const override;
37
38 AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
41
42 AWS_S3CRT_API Aws::String GetChecksumAlgorithmName() const override;
43 AWS_S3CRT_API bool ChecksumAlgorithmIsSet() const override;
44 inline bool RequestChecksumRequired() const override { return true; };
45
49 AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override;
50
52
66 inline const Aws::String& GetBucket() const { return m_bucket; }
67 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
68 template <typename BucketT = Aws::String>
69 void SetBucket(BucketT&& value) {
70 m_bucketHasBeenSet = true;
71 m_bucket = std::forward<BucketT>(value);
72 }
73 template <typename BucketT = Aws::String>
75 SetBucket(std::forward<BucketT>(value));
76 return *this;
77 }
79
81
85 inline const Aws::String& GetKey() const { return m_key; }
86 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
87 template <typename KeyT = Aws::String>
88 void SetKey(KeyT&& value) {
89 m_keyHasBeenSet = true;
90 m_key = std::forward<KeyT>(value);
91 }
92 template <typename KeyT = Aws::String>
94 SetKey(std::forward<KeyT>(value));
95 return *this;
96 }
98
100
104 inline const Aws::String& GetVersionId() const { return m_versionId; }
105 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
106 template <typename VersionIdT = Aws::String>
107 void SetVersionId(VersionIdT&& value) {
108 m_versionIdHasBeenSet = true;
109 m_versionId = std::forward<VersionIdT>(value);
110 }
111 template <typename VersionIdT = Aws::String>
113 SetVersionId(std::forward<VersionIdT>(value));
114 return *this;
115 }
117
119
125 inline const ObjectEncryption& GetObjectEncryption() const { return m_objectEncryption; }
126 inline bool ObjectEncryptionHasBeenSet() const { return m_objectEncryptionHasBeenSet; }
127 template <typename ObjectEncryptionT = ObjectEncryption>
128 void SetObjectEncryption(ObjectEncryptionT&& value) {
129 m_objectEncryptionHasBeenSet = true;
130 m_objectEncryption = std::forward<ObjectEncryptionT>(value);
131 }
132 template <typename ObjectEncryptionT = ObjectEncryption>
134 SetObjectEncryption(std::forward<ObjectEncryptionT>(value));
135 return *this;
136 }
138
140
141 inline RequestPayer GetRequestPayer() const { return m_requestPayer; }
142 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
143 inline void SetRequestPayer(RequestPayer value) {
144 m_requestPayerHasBeenSet = true;
145 m_requestPayer = value;
146 }
148 SetRequestPayer(value);
149 return *this;
150 }
152
154
159 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
160 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
161 template <typename ExpectedBucketOwnerT = Aws::String>
162 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
163 m_expectedBucketOwnerHasBeenSet = true;
164 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
165 }
166 template <typename ExpectedBucketOwnerT = Aws::String>
168 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
169 return *this;
170 }
172
174
179 inline const Aws::String& GetContentMD5() const { return m_contentMD5; }
180 inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
181 template <typename ContentMD5T = Aws::String>
182 void SetContentMD5(ContentMD5T&& value) {
183 m_contentMD5HasBeenSet = true;
184 m_contentMD5 = std::forward<ContentMD5T>(value);
185 }
186 template <typename ContentMD5T = Aws::String>
188 SetContentMD5(std::forward<ContentMD5T>(value));
189 return *this;
190 }
192
194
206 inline ChecksumAlgorithm GetChecksumAlgorithm() const { return m_checksumAlgorithm; }
207 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
209 m_checksumAlgorithmHasBeenSet = true;
210 m_checksumAlgorithm = value;
211 }
214 return *this;
215 }
217
219
220 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
221 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
222 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
223 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
224 m_customizedAccessLogTagHasBeenSet = true;
225 m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value);
226 }
227 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
229 SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value));
230 return *this;
231 }
232 template <typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
233 UpdateObjectEncryptionRequest& AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT&& key, CustomizedAccessLogTagValueT&& value) {
234 m_customizedAccessLogTagHasBeenSet = true;
235 m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
236 return *this;
237 }
239 private:
240 Aws::String m_bucket;
241
242 Aws::String m_key;
243
244 Aws::String m_versionId;
245
246 ObjectEncryption m_objectEncryption;
247
248 RequestPayer m_requestPayer{RequestPayer::NOT_SET};
249
250 Aws::String m_expectedBucketOwner;
251
252 Aws::String m_contentMD5;
253
255
256 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
257 bool m_bucketHasBeenSet = false;
258 bool m_keyHasBeenSet = false;
259 bool m_versionIdHasBeenSet = false;
260 bool m_objectEncryptionHasBeenSet = false;
261 bool m_requestPayerHasBeenSet = false;
262 bool m_expectedBucketOwnerHasBeenSet = false;
263 bool m_contentMD5HasBeenSet = false;
264 bool m_checksumAlgorithmHasBeenSet = false;
265 bool m_customizedAccessLogTagHasBeenSet = false;
266};
267
268} // namespace Model
269} // namespace S3Crt
270} // namespace Aws
UpdateObjectEncryptionRequest & WithRequestPayer(RequestPayer value)
AWS_S3CRT_API bool ChecksumAlgorithmIsSet() const override
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
AWS_S3CRT_API Aws::String SerializePayload() const override
UpdateObjectEncryptionRequest & WithChecksumAlgorithm(ChecksumAlgorithm value)
AWS_S3CRT_API UpdateObjectEncryptionRequest()=default
UpdateObjectEncryptionRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
UpdateObjectEncryptionRequest & WithContentMD5(ContentMD5T &&value)
UpdateObjectEncryptionRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
UpdateObjectEncryptionRequest & WithObjectEncryption(ObjectEncryptionT &&value)
UpdateObjectEncryptionRequest & WithVersionId(VersionIdT &&value)
UpdateObjectEncryptionRequest & WithKey(KeyT &&value)
AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
UpdateObjectEncryptionRequest & WithBucket(BucketT &&value)
virtual const char * GetServiceRequestName() const override
UpdateObjectEncryptionRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
AWS_S3CRT_API Aws::String GetChecksumAlgorithmName() const override
AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override
AWS_S3CRT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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_string< char, std::char_traits< char >, Aws::Allocator< char > > String