AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
GetObjectTorrentRequest.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/S3Request.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace S3
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 "GetObjectTorrent"; }
37
39
41
43
48
53 inline const Aws::String& GetBucket() const{ return m_bucket; }
54
59 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
60
65 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
66
71 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
72
77 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
78
83 inline GetObjectTorrentRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
84
89 inline GetObjectTorrentRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
90
95 inline GetObjectTorrentRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
96
97
101 inline const Aws::String& GetKey() const{ return m_key; }
102
106 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
107
111 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
112
116 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
117
121 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
122
126 inline GetObjectTorrentRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
127
131 inline GetObjectTorrentRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
132
136 inline GetObjectTorrentRequest& WithKey(const char* value) { SetKey(value); return *this;}
137
138
139
140 inline const RequestPayer& GetRequestPayer() const{ return m_requestPayer; }
141
142
143 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
144
145
146 inline void SetRequestPayer(const RequestPayer& value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
147
148
149 inline void SetRequestPayer(RequestPayer&& value) { m_requestPayerHasBeenSet = true; m_requestPayer = std::move(value); }
150
151
152 inline GetObjectTorrentRequest& WithRequestPayer(const RequestPayer& value) { SetRequestPayer(value); return *this;}
153
154
155 inline GetObjectTorrentRequest& WithRequestPayer(RequestPayer&& value) { SetRequestPayer(std::move(value)); return *this;}
156
157
163 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
164
170 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
171
177 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
178
184 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
185
191 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
192
199
205 inline GetObjectTorrentRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
206
212 inline GetObjectTorrentRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
213
214
215
216 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
217
218
219 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
220
221
222 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
223
224
225 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
226
227
229
230
232
233
234 inline GetObjectTorrentRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
235
236
237 inline GetObjectTorrentRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
238
239
240 inline GetObjectTorrentRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
241
242
243 inline GetObjectTorrentRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
244
245
246 inline GetObjectTorrentRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
247
248
249 inline GetObjectTorrentRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
250
251
252 inline GetObjectTorrentRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
253
254 private:
255
256 Aws::String m_bucket;
257 bool m_bucketHasBeenSet = false;
258
259 Aws::String m_key;
260 bool m_keyHasBeenSet = false;
261
262 RequestPayer m_requestPayer;
263 bool m_requestPayerHasBeenSet = false;
264
265 Aws::String m_expectedBucketOwner;
266 bool m_expectedBucketOwnerHasBeenSet = false;
267
268 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
269 bool m_customizedAccessLogTagHasBeenSet = false;
270 };
271
272} // namespace Model
273} // namespace S3
274} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
GetObjectTorrentRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
GetObjectTorrentRequest & WithRequestPayer(const RequestPayer &value)
GetObjectTorrentRequest & WithExpectedBucketOwner(Aws::String &&value)
GetObjectTorrentRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetObjectTorrentRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
GetObjectTorrentRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
GetObjectTorrentRequest & WithBucket(const char *value)
GetObjectTorrentRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
GetObjectTorrentRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetObjectTorrentRequest & WithRequestPayer(RequestPayer &&value)
GetObjectTorrentRequest & WithKey(Aws::String &&value)
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
GetObjectTorrentRequest & WithBucket(const Aws::String &value)
GetObjectTorrentRequest & WithKey(const char *value)
GetObjectTorrentRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
GetObjectTorrentRequest & WithBucket(Aws::String &&value)
void SetBucket(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetExpectedBucketOwner(const Aws::String &value)
void SetRequestPayer(const RequestPayer &value)
GetObjectTorrentRequest & WithExpectedBucketOwner(const Aws::String &value)
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::String & GetExpectedBucketOwner() const
GetObjectTorrentRequest & WithExpectedBucketOwner(const char *value)
GetObjectTorrentRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
AWS_S3_API Aws::String SerializePayload() const override
GetObjectTorrentRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
GetObjectTorrentRequest & WithKey(const Aws::String &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_string< char, std::char_traits< char >, Aws::Allocator< char > > String