AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
AbortMultipartUploadRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3/S3Request.h>
11#include <aws/s3/S3_EXPORTS.h>
12#include <aws/s3/model/RequestPayer.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Http {
18class URI;
19} // namespace Http
20namespace S3 {
21namespace Model {
22
26 public:
27 AWS_S3_API AbortMultipartUploadRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "AbortMultipartUpload"; }
34
35 AWS_S3_API Aws::String SerializePayload() const override;
36
37 AWS_S3_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
38
40
41 AWS_S3_API bool HasEmbeddedError(IOStream& body, const Http::HeaderValueCollection& header) const override;
45 AWS_S3_API EndpointParameters GetEndpointContextParams() const override;
46
48
83 inline const Aws::String& GetBucket() const { return m_bucket; }
84 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
85 template <typename BucketT = Aws::String>
86 void SetBucket(BucketT&& value) {
87 m_bucketHasBeenSet = true;
88 m_bucket = std::forward<BucketT>(value);
89 }
90 template <typename BucketT = Aws::String>
92 SetBucket(std::forward<BucketT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetKey() const { return m_key; }
102 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
103 template <typename KeyT = Aws::String>
104 void SetKey(KeyT&& value) {
105 m_keyHasBeenSet = true;
106 m_key = std::forward<KeyT>(value);
107 }
108 template <typename KeyT = Aws::String>
110 SetKey(std::forward<KeyT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::String& GetUploadId() const { return m_uploadId; }
120 inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
121 template <typename UploadIdT = Aws::String>
122 void SetUploadId(UploadIdT&& value) {
123 m_uploadIdHasBeenSet = true;
124 m_uploadId = std::forward<UploadIdT>(value);
125 }
126 template <typename UploadIdT = Aws::String>
128 SetUploadId(std::forward<UploadIdT>(value));
129 return *this;
130 }
132
134
135 inline RequestPayer GetRequestPayer() const { return m_requestPayer; }
136 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
137 inline void SetRequestPayer(RequestPayer value) {
138 m_requestPayerHasBeenSet = true;
139 m_requestPayer = value;
140 }
142 SetRequestPayer(value);
143 return *this;
144 }
146
148
153 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
154 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
155 template <typename ExpectedBucketOwnerT = Aws::String>
156 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
157 m_expectedBucketOwnerHasBeenSet = true;
158 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
159 }
160 template <typename ExpectedBucketOwnerT = Aws::String>
162 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
163 return *this;
164 }
166
168
177 inline const Aws::Utils::DateTime& GetIfMatchInitiatedTime() const { return m_ifMatchInitiatedTime; }
178 inline bool IfMatchInitiatedTimeHasBeenSet() const { return m_ifMatchInitiatedTimeHasBeenSet; }
179 template <typename IfMatchInitiatedTimeT = Aws::Utils::DateTime>
180 void SetIfMatchInitiatedTime(IfMatchInitiatedTimeT&& value) {
181 m_ifMatchInitiatedTimeHasBeenSet = true;
182 m_ifMatchInitiatedTime = std::forward<IfMatchInitiatedTimeT>(value);
183 }
184 template <typename IfMatchInitiatedTimeT = Aws::Utils::DateTime>
186 SetIfMatchInitiatedTime(std::forward<IfMatchInitiatedTimeT>(value));
187 return *this;
188 }
190
192
193 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
194 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
195 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
196 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
197 m_customizedAccessLogTagHasBeenSet = true;
198 m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value);
199 }
200 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
201 AbortMultipartUploadRequest& WithCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
202 SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value));
203 return *this;
204 }
205 template <typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
206 AbortMultipartUploadRequest& AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT&& key, CustomizedAccessLogTagValueT&& value) {
207 m_customizedAccessLogTagHasBeenSet = true;
208 m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
209 return *this;
210 }
212 private:
213 Aws::String m_bucket;
214 bool m_bucketHasBeenSet = false;
215
216 Aws::String m_key;
217 bool m_keyHasBeenSet = false;
218
219 Aws::String m_uploadId;
220 bool m_uploadIdHasBeenSet = false;
221
222 RequestPayer m_requestPayer{RequestPayer::NOT_SET};
223 bool m_requestPayerHasBeenSet = false;
224
225 Aws::String m_expectedBucketOwner;
226 bool m_expectedBucketOwnerHasBeenSet = false;
227
228 Aws::Utils::DateTime m_ifMatchInitiatedTime{};
229 bool m_ifMatchInitiatedTimeHasBeenSet = false;
230
231 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
232 bool m_customizedAccessLogTagHasBeenSet = false;
233};
234
235} // namespace Model
236} // namespace S3
237} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
AbortMultipartUploadRequest & WithBucket(BucketT &&value)
AbortMultipartUploadRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
void SetCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
AbortMultipartUploadRequest & WithRequestPayer(RequestPayer value)
AbortMultipartUploadRequest & WithIfMatchInitiatedTime(IfMatchInitiatedTimeT &&value)
AbortMultipartUploadRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
void SetExpectedBucketOwner(ExpectedBucketOwnerT &&value)
AWS_S3_API AbortMultipartUploadRequest()=default
AbortMultipartUploadRequest & WithKey(KeyT &&value)
AbortMultipartUploadRequest & WithUploadId(UploadIdT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Utils::DateTime & GetIfMatchInitiatedTime() const
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_S3_API Aws::String SerializePayload() const override
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetIfMatchInitiatedTime(IfMatchInitiatedTimeT &&value)
AbortMultipartUploadRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&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_iostream< char, std::char_traits< char > > IOStream
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String