AWS SDK for C++

AWS SDK for C++ Version 1.11.748

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/S3Request.h>
10#include <aws/s3/S3_EXPORTS.h>
11#include <aws/s3/model/ChecksumAlgorithm.h>
12#include <aws/s3/model/ObjectEncryption.h>
13#include <aws/s3/model/RequestPayer.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Http {
19class URI;
20} // namespace Http
21namespace S3 {
22namespace Model {
23
27 public:
28 AWS_S3_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_S3_API Aws::String SerializePayload() const override;
37
38 AWS_S3_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
41
42 AWS_S3_API Aws::String GetChecksumAlgorithmName() const override;
43 inline bool RequestChecksumRequired() const override { return true; };
44
48 AWS_S3_API EndpointParameters GetEndpointContextParams() const override;
49
51
65 inline const Aws::String& GetBucket() const { return m_bucket; }
66 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
67 template <typename BucketT = Aws::String>
68 void SetBucket(BucketT&& value) {
69 m_bucketHasBeenSet = true;
70 m_bucket = std::forward<BucketT>(value);
71 }
72 template <typename BucketT = Aws::String>
74 SetBucket(std::forward<BucketT>(value));
75 return *this;
76 }
78
80
84 inline const Aws::String& GetKey() const { return m_key; }
85 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
86 template <typename KeyT = Aws::String>
87 void SetKey(KeyT&& value) {
88 m_keyHasBeenSet = true;
89 m_key = std::forward<KeyT>(value);
90 }
91 template <typename KeyT = Aws::String>
93 SetKey(std::forward<KeyT>(value));
94 return *this;
95 }
97
99
103 inline const Aws::String& GetVersionId() const { return m_versionId; }
104 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
105 template <typename VersionIdT = Aws::String>
106 void SetVersionId(VersionIdT&& value) {
107 m_versionIdHasBeenSet = true;
108 m_versionId = std::forward<VersionIdT>(value);
109 }
110 template <typename VersionIdT = Aws::String>
112 SetVersionId(std::forward<VersionIdT>(value));
113 return *this;
114 }
116
118
124 inline const ObjectEncryption& GetObjectEncryption() const { return m_objectEncryption; }
125 inline bool ObjectEncryptionHasBeenSet() const { return m_objectEncryptionHasBeenSet; }
126 template <typename ObjectEncryptionT = ObjectEncryption>
127 void SetObjectEncryption(ObjectEncryptionT&& value) {
128 m_objectEncryptionHasBeenSet = true;
129 m_objectEncryption = std::forward<ObjectEncryptionT>(value);
130 }
131 template <typename ObjectEncryptionT = ObjectEncryption>
133 SetObjectEncryption(std::forward<ObjectEncryptionT>(value));
134 return *this;
135 }
137
139
140 inline RequestPayer GetRequestPayer() const { return m_requestPayer; }
141 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
142 inline void SetRequestPayer(RequestPayer value) {
143 m_requestPayerHasBeenSet = true;
144 m_requestPayer = value;
145 }
147 SetRequestPayer(value);
148 return *this;
149 }
151
153
158 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
159 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
160 template <typename ExpectedBucketOwnerT = Aws::String>
161 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
162 m_expectedBucketOwnerHasBeenSet = true;
163 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
164 }
165 template <typename ExpectedBucketOwnerT = Aws::String>
167 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
168 return *this;
169 }
171
173
178 inline const Aws::String& GetContentMD5() const { return m_contentMD5; }
179 inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
180 template <typename ContentMD5T = Aws::String>
181 void SetContentMD5(ContentMD5T&& value) {
182 m_contentMD5HasBeenSet = true;
183 m_contentMD5 = std::forward<ContentMD5T>(value);
184 }
185 template <typename ContentMD5T = Aws::String>
187 SetContentMD5(std::forward<ContentMD5T>(value));
188 return *this;
189 }
191
193
205 inline ChecksumAlgorithm GetChecksumAlgorithm() const { return m_checksumAlgorithm; }
206 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
208 m_checksumAlgorithmHasBeenSet = true;
209 m_checksumAlgorithm = value;
210 }
213 return *this;
214 }
216
218
219 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
220 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
221 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
222 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
223 m_customizedAccessLogTagHasBeenSet = true;
224 m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value);
225 }
226 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
228 SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value));
229 return *this;
230 }
231 template <typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
232 UpdateObjectEncryptionRequest& AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT&& key, CustomizedAccessLogTagValueT&& value) {
233 m_customizedAccessLogTagHasBeenSet = true;
234 m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
235 return *this;
236 }
238 private:
239 Aws::String m_bucket;
240
241 Aws::String m_key;
242
243 Aws::String m_versionId;
244
245 ObjectEncryption m_objectEncryption;
246
247 RequestPayer m_requestPayer{RequestPayer::NOT_SET};
248
249 Aws::String m_expectedBucketOwner;
250
251 Aws::String m_contentMD5;
252
254
255 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
256 bool m_bucketHasBeenSet = false;
257 bool m_keyHasBeenSet = false;
258 bool m_versionIdHasBeenSet = false;
259 bool m_objectEncryptionHasBeenSet = false;
260 bool m_requestPayerHasBeenSet = false;
261 bool m_expectedBucketOwnerHasBeenSet = false;
262 bool m_contentMD5HasBeenSet = false;
263 bool m_checksumAlgorithmHasBeenSet = false;
264 bool m_customizedAccessLogTagHasBeenSet = false;
265};
266
267} // namespace Model
268} // namespace S3
269} // namespace Aws
UpdateObjectEncryptionRequest & WithChecksumAlgorithm(ChecksumAlgorithm value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_S3_API Aws::String SerializePayload() const override
UpdateObjectEncryptionRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
UpdateObjectEncryptionRequest & WithBucket(BucketT &&value)
UpdateObjectEncryptionRequest & WithKey(KeyT &&value)
AWS_S3_API Aws::String GetChecksumAlgorithmName() const override
UpdateObjectEncryptionRequest & WithContentMD5(ContentMD5T &&value)
UpdateObjectEncryptionRequest & WithRequestPayer(RequestPayer value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
virtual const char * GetServiceRequestName() const override
void SetCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateObjectEncryptionRequest & WithObjectEncryption(ObjectEncryptionT &&value)
UpdateObjectEncryptionRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
UpdateObjectEncryptionRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
UpdateObjectEncryptionRequest & WithVersionId(VersionIdT &&value)
Aws::Endpoint::EndpointParameters EndpointParameters
Definition S3Request.h:19
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