AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AbortMultipartUploadRequest.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/s3-crt/S3CrtRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3-crt/model/RequestPayer.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace S3Crt
21{
22namespace Model
23{
24
28 {
29 public:
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "AbortMultipartUpload"; }
37
38 AWS_S3CRT_API Aws::String SerializePayload() const override;
39
40 AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
43
44 AWS_S3CRT_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override;
48 AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override;
49
51
84 inline const Aws::String& GetBucket() const{ return m_bucket; }
85 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
86 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
87 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
88 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
89 inline AbortMultipartUploadRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
90 inline AbortMultipartUploadRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
91 inline AbortMultipartUploadRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
93
95
98 inline const Aws::String& GetKey() const{ return m_key; }
99 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
100 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
101 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
102 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
103 inline AbortMultipartUploadRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
104 inline AbortMultipartUploadRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
105 inline AbortMultipartUploadRequest& WithKey(const char* value) { SetKey(value); return *this;}
107
109
112 inline const Aws::String& GetUploadId() const{ return m_uploadId; }
113 inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
114 inline void SetUploadId(const Aws::String& value) { m_uploadIdHasBeenSet = true; m_uploadId = value; }
115 inline void SetUploadId(Aws::String&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::move(value); }
116 inline void SetUploadId(const char* value) { m_uploadIdHasBeenSet = true; m_uploadId.assign(value); }
117 inline AbortMultipartUploadRequest& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;}
118 inline AbortMultipartUploadRequest& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;}
119 inline AbortMultipartUploadRequest& WithUploadId(const char* value) { SetUploadId(value); return *this;}
121
123
124 inline const RequestPayer& GetRequestPayer() const{ return m_requestPayer; }
125 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
126 inline void SetRequestPayer(const RequestPayer& value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
127 inline void SetRequestPayer(RequestPayer&& value) { m_requestPayerHasBeenSet = true; m_requestPayer = std::move(value); }
128 inline AbortMultipartUploadRequest& WithRequestPayer(const RequestPayer& value) { SetRequestPayer(value); return *this;}
129 inline AbortMultipartUploadRequest& WithRequestPayer(RequestPayer&& value) { SetRequestPayer(std::move(value)); return *this;}
131
133
138 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
139 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
140 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
141 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
142 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
145 inline AbortMultipartUploadRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
147
149
150 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
151 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
152 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
153 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
156 inline AbortMultipartUploadRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
157 inline AbortMultipartUploadRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
158 inline AbortMultipartUploadRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
159 inline AbortMultipartUploadRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
160 inline AbortMultipartUploadRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
161 inline AbortMultipartUploadRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
162 inline AbortMultipartUploadRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
164 private:
165
166 Aws::String m_bucket;
167 bool m_bucketHasBeenSet = false;
168
169 Aws::String m_key;
170 bool m_keyHasBeenSet = false;
171
172 Aws::String m_uploadId;
173 bool m_uploadIdHasBeenSet = false;
174
175 RequestPayer m_requestPayer;
176 bool m_requestPayerHasBeenSet = false;
177
178 Aws::String m_expectedBucketOwner;
179 bool m_expectedBucketOwnerHasBeenSet = false;
180
181 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
182 bool m_customizedAccessLogTagHasBeenSet = false;
183 };
184
185} // namespace Model
186} // namespace S3Crt
187} // namespace Aws
AbortMultipartUploadRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
AbortMultipartUploadRequest & WithBucket(Aws::String &&value)
AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AbortMultipartUploadRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
AbortMultipartUploadRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
AbortMultipartUploadRequest & WithKey(const char *value)
AbortMultipartUploadRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
AbortMultipartUploadRequest & WithBucket(const Aws::String &value)
AWS_S3CRT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AbortMultipartUploadRequest & WithBucket(const char *value)
AbortMultipartUploadRequest & WithExpectedBucketOwner(const char *value)
AbortMultipartUploadRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
AbortMultipartUploadRequest & WithUploadId(const char *value)
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
AbortMultipartUploadRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
AbortMultipartUploadRequest & WithRequestPayer(const RequestPayer &value)
AbortMultipartUploadRequest & WithKey(Aws::String &&value)
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
AbortMultipartUploadRequest & WithRequestPayer(RequestPayer &&value)
AbortMultipartUploadRequest & WithKey(const Aws::String &value)
AbortMultipartUploadRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
AbortMultipartUploadRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override
AWS_S3CRT_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
AbortMultipartUploadRequest & WithUploadId(Aws::String &&value)
AbortMultipartUploadRequest & WithExpectedBucketOwner(Aws::String &&value)
AWS_S3CRT_API Aws::String SerializePayload() const override
AbortMultipartUploadRequest & WithUploadId(const Aws::String &value)
AbortMultipartUploadRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
AbortMultipartUploadRequest & WithExpectedBucketOwner(const Aws::String &value)
virtual const char * GetServiceRequestName() 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