AWS SDK for C++

AWS SDK for C++ Version 1.11.844

Loading...
Searching...
No Matches
DeleteObjectsRequest.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/Delete.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 DeleteObjectsRequest() = 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 "DeleteObjects"; }
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 bool HasEmbeddedError(IOStream& body, const Http::HeaderValueCollection& header) const override;
43 AWS_S3CRT_API Aws::String GetChecksumAlgorithmName() const override;
44 AWS_S3CRT_API bool ChecksumAlgorithmIsSet() const override;
45 inline bool RequestChecksumRequired() const override { return true; };
46
50 AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override;
51
53
88 inline const Aws::String& GetBucket() const { return m_bucket; }
89 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
90 template <typename BucketT = Aws::String>
91 void SetBucket(BucketT&& value) {
92 m_bucketHasBeenSet = true;
93 m_bucket = std::forward<BucketT>(value);
94 }
95 template <typename BucketT = Aws::String>
96 DeleteObjectsRequest& WithBucket(BucketT&& value) {
97 SetBucket(std::forward<BucketT>(value));
98 return *this;
99 }
101
103
106 inline const Delete& GetDelete() const { return m_delete; }
107 inline bool DeleteHasBeenSet() const { return m_deleteHasBeenSet; }
108 template <typename DeleteT = Delete>
109 void SetDelete(DeleteT&& value) {
110 m_deleteHasBeenSet = true;
111 m_delete = std::forward<DeleteT>(value);
112 }
113 template <typename DeleteT = Delete>
115 SetDelete(std::forward<DeleteT>(value));
116 return *this;
117 }
119
121
136 inline const Aws::String& GetMFA() const { return m_mFA; }
137 inline bool MFAHasBeenSet() const { return m_mFAHasBeenSet; }
138 template <typename MFAT = Aws::String>
139 void SetMFA(MFAT&& value) {
140 m_mFAHasBeenSet = true;
141 m_mFA = std::forward<MFAT>(value);
142 }
143 template <typename MFAT = Aws::String>
145 SetMFA(std::forward<MFAT>(value));
146 return *this;
147 }
149
151
152 inline RequestPayer GetRequestPayer() const { return m_requestPayer; }
153 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
154 inline void SetRequestPayer(RequestPayer value) {
155 m_requestPayerHasBeenSet = true;
156 m_requestPayer = value;
157 }
159 SetRequestPayer(value);
160 return *this;
161 }
163
165
171 inline bool GetBypassGovernanceRetention() const { return m_bypassGovernanceRetention; }
172 inline bool BypassGovernanceRetentionHasBeenSet() const { return m_bypassGovernanceRetentionHasBeenSet; }
173 inline void SetBypassGovernanceRetention(bool value) {
174 m_bypassGovernanceRetentionHasBeenSet = true;
175 m_bypassGovernanceRetention = value;
176 }
179 return *this;
180 }
182
184
189 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
190 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
191 template <typename ExpectedBucketOwnerT = Aws::String>
192 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
193 m_expectedBucketOwnerHasBeenSet = true;
194 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
195 }
196 template <typename ExpectedBucketOwnerT = Aws::String>
197 DeleteObjectsRequest& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
198 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
199 return *this;
200 }
202
204
228 inline ChecksumAlgorithm GetChecksumAlgorithm() const { return m_checksumAlgorithm; }
229 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
231 m_checksumAlgorithmHasBeenSet = true;
232 m_checksumAlgorithm = value;
233 }
236 return *this;
237 }
239
241
242 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
243 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
244 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
245 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
246 m_customizedAccessLogTagHasBeenSet = true;
247 m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value);
248 }
249 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
250 DeleteObjectsRequest& WithCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
251 SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value));
252 return *this;
253 }
254 template <typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
255 DeleteObjectsRequest& AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT&& key, CustomizedAccessLogTagValueT&& value) {
256 m_customizedAccessLogTagHasBeenSet = true;
257 m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
258 return *this;
259 }
261 private:
262 Aws::String m_bucket;
263
264 Delete m_delete;
265
266 Aws::String m_mFA;
267
268 RequestPayer m_requestPayer{RequestPayer::NOT_SET};
269
270 bool m_bypassGovernanceRetention{false};
271
272 Aws::String m_expectedBucketOwner;
273
275
276 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
277 bool m_bucketHasBeenSet = false;
278 bool m_deleteHasBeenSet = false;
279 bool m_mFAHasBeenSet = false;
280 bool m_requestPayerHasBeenSet = false;
281 bool m_bypassGovernanceRetentionHasBeenSet = false;
282 bool m_expectedBucketOwnerHasBeenSet = false;
283 bool m_checksumAlgorithmHasBeenSet = false;
284 bool m_customizedAccessLogTagHasBeenSet = false;
285};
286
287} // namespace Model
288} // namespace S3Crt
289} // namespace Aws
DeleteObjectsRequest & WithChecksumAlgorithm(ChecksumAlgorithm value)
DeleteObjectsRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
DeleteObjectsRequest & WithDelete(DeleteT &&value)
void SetChecksumAlgorithm(ChecksumAlgorithm value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
void SetExpectedBucketOwner(ExpectedBucketOwnerT &&value)
AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override
void SetCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
AWS_S3CRT_API DeleteObjectsRequest()=default
AWS_S3CRT_API bool ChecksumAlgorithmIsSet() const override
const Aws::String & GetExpectedBucketOwner() const
DeleteObjectsRequest & WithRequestPayer(RequestPayer value)
AWS_S3CRT_API Aws::String GetChecksumAlgorithmName() const override
DeleteObjectsRequest & WithBucket(BucketT &&value)
AWS_S3CRT_API Aws::String SerializePayload() const override
AWS_S3CRT_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
DeleteObjectsRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
DeleteObjectsRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
DeleteObjectsRequest & WithBypassGovernanceRetention(bool value)
DeleteObjectsRequest & WithMFA(MFAT &&value)
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_iostream< char, std::char_traits< char > > IOStream
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String