AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AbortMultipartUploadRequest.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/S3Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3/model/RequestPayer.h>
11#include <aws/core/utils/DateTime.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 S3
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_S3_API AbortMultipartUploadRequest() = default;
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 "AbortMultipartUpload"; }
38
39 AWS_S3_API Aws::String SerializePayload() const override;
40
41 AWS_S3_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
44
45 AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override;
49 AWS_S3_API EndpointParameters GetEndpointContextParams() const override;
50
52
87 inline const Aws::String& GetBucket() const { return m_bucket; }
88 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
89 template<typename BucketT = Aws::String>
90 void SetBucket(BucketT&& value) { m_bucketHasBeenSet = true; m_bucket = std::forward<BucketT>(value); }
91 template<typename BucketT = Aws::String>
92 AbortMultipartUploadRequest& WithBucket(BucketT&& value) { SetBucket(std::forward<BucketT>(value)); return *this;}
94
96
99 inline const Aws::String& GetKey() const { return m_key; }
100 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
101 template<typename KeyT = Aws::String>
102 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
103 template<typename KeyT = Aws::String>
104 AbortMultipartUploadRequest& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
106
108
111 inline const Aws::String& GetUploadId() const { return m_uploadId; }
112 inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
113 template<typename UploadIdT = Aws::String>
114 void SetUploadId(UploadIdT&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::forward<UploadIdT>(value); }
115 template<typename UploadIdT = Aws::String>
116 AbortMultipartUploadRequest& WithUploadId(UploadIdT&& value) { SetUploadId(std::forward<UploadIdT>(value)); return *this;}
118
120
121 inline RequestPayer GetRequestPayer() const { return m_requestPayer; }
122 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
123 inline void SetRequestPayer(RequestPayer value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
126
128
133 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
134 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
135 template<typename ExpectedBucketOwnerT = Aws::String>
136 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value); }
137 template<typename ExpectedBucketOwnerT = Aws::String>
138 AbortMultipartUploadRequest& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) { SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value)); return *this;}
140
142
151 inline const Aws::Utils::DateTime& GetIfMatchInitiatedTime() const { return m_ifMatchInitiatedTime; }
152 inline bool IfMatchInitiatedTimeHasBeenSet() const { return m_ifMatchInitiatedTimeHasBeenSet; }
153 template<typename IfMatchInitiatedTimeT = Aws::Utils::DateTime>
154 void SetIfMatchInitiatedTime(IfMatchInitiatedTimeT&& value) { m_ifMatchInitiatedTimeHasBeenSet = true; m_ifMatchInitiatedTime = std::forward<IfMatchInitiatedTimeT>(value); }
155 template<typename IfMatchInitiatedTimeT = Aws::Utils::DateTime>
156 AbortMultipartUploadRequest& WithIfMatchInitiatedTime(IfMatchInitiatedTimeT&& value) { SetIfMatchInitiatedTime(std::forward<IfMatchInitiatedTimeT>(value)); return *this;}
158
160
161 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
162 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
163 template<typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
164 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value); }
165 template<typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
166 AbortMultipartUploadRequest& WithCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) { SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value)); return *this;}
167 template<typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
168 AbortMultipartUploadRequest& AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT&& key, CustomizedAccessLogTagValueT&& value) {
169 m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value)); return *this;
170 }
172 private:
173
174 Aws::String m_bucket;
175 bool m_bucketHasBeenSet = false;
176
177 Aws::String m_key;
178 bool m_keyHasBeenSet = false;
179
180 Aws::String m_uploadId;
181 bool m_uploadIdHasBeenSet = false;
182
183 RequestPayer m_requestPayer{RequestPayer::NOT_SET};
184 bool m_requestPayerHasBeenSet = false;
185
186 Aws::String m_expectedBucketOwner;
187 bool m_expectedBucketOwnerHasBeenSet = false;
188
189 Aws::Utils::DateTime m_ifMatchInitiatedTime{};
190 bool m_ifMatchInitiatedTimeHasBeenSet = false;
191
192 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
193 bool m_customizedAccessLogTagHasBeenSet = false;
194 };
195
196} // namespace Model
197} // namespace S3
198} // 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:22
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