AWS SDK for C++  1.8.186
AWS SDK for C++
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 
14 namespace Aws
15 {
16 namespace Http
17 {
18  class URI;
19 } //namespace Http
20 namespace S3
21 {
22 namespace 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 
38  Aws::String SerializePayload() const override;
39 
40  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41 
43 
44 
49  inline const Aws::String& GetBucket() const{ return m_bucket; }
50 
55  inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
56 
61  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
62 
67  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
68 
73  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
74 
79  inline GetObjectTorrentRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
80 
85  inline GetObjectTorrentRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
86 
91  inline GetObjectTorrentRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
92 
93 
97  inline const Aws::String& GetKey() const{ return m_key; }
98 
102  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
103 
107  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
108 
112  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
113 
117  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
118 
122  inline GetObjectTorrentRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
123 
127  inline GetObjectTorrentRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
128 
132  inline GetObjectTorrentRequest& WithKey(const char* value) { SetKey(value); return *this;}
133 
134 
135 
136  inline const RequestPayer& GetRequestPayer() const{ return m_requestPayer; }
137 
138 
139  inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
140 
141 
142  inline void SetRequestPayer(const RequestPayer& value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
143 
144 
145  inline void SetRequestPayer(RequestPayer&& value) { m_requestPayerHasBeenSet = true; m_requestPayer = std::move(value); }
146 
147 
148  inline GetObjectTorrentRequest& WithRequestPayer(const RequestPayer& value) { SetRequestPayer(value); return *this;}
149 
150 
151  inline GetObjectTorrentRequest& WithRequestPayer(RequestPayer&& value) { SetRequestPayer(std::move(value)); return *this;}
152 
153 
159  inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
160 
166  inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
167 
173  inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
174 
180  inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
181 
187  inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
188 
194  inline GetObjectTorrentRequest& WithExpectedBucketOwner(const Aws::String& value) { SetExpectedBucketOwner(value); return *this;}
195 
201  inline GetObjectTorrentRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
202 
208  inline GetObjectTorrentRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
209 
210 
211 
212  inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
213 
214 
215  inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
216 
217 
218  inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
219 
220 
221  inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
222 
223 
224  inline GetObjectTorrentRequest& WithCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { SetCustomizedAccessLogTag(value); return *this;}
225 
226 
227  inline GetObjectTorrentRequest& WithCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { SetCustomizedAccessLogTag(std::move(value)); return *this;}
228 
229 
230  inline GetObjectTorrentRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
231 
232 
233  inline GetObjectTorrentRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
234 
235 
236  inline GetObjectTorrentRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
237 
238 
239  inline GetObjectTorrentRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
240 
241 
242  inline GetObjectTorrentRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
243 
244 
245  inline GetObjectTorrentRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
246 
247 
248  inline GetObjectTorrentRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
249 
250  private:
251 
252  Aws::String m_bucket;
253  bool m_bucketHasBeenSet;
254 
255  Aws::String m_key;
256  bool m_keyHasBeenSet;
257 
258  RequestPayer m_requestPayer;
259  bool m_requestPayerHasBeenSet;
260 
261  Aws::String m_expectedBucketOwner;
262  bool m_expectedBucketOwnerHasBeenSet;
263 
264  Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
265  bool m_customizedAccessLogTagHasBeenSet;
266  };
267 
268 } // namespace Model
269 } // namespace S3
270 } // namespace Aws
Aws::S3::Model::GetObjectTorrentRequest::SetCustomizedAccessLogTag
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
Definition: GetObjectTorrentRequest.h:221
Aws::Http::URI
Definition: URI.h:32
Aws::S3::Model::GetObjectTorrentRequest::AddCustomizedAccessLogTag
GetObjectTorrentRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
Definition: GetObjectTorrentRequest.h:236
Aws::S3::Model::GetObjectTorrentRequest::WithKey
GetObjectTorrentRequest & WithKey(Aws::String &&value)
Definition: GetObjectTorrentRequest.h:127
Aws::S3::Model::GetObjectTorrentRequest::WithExpectedBucketOwner
GetObjectTorrentRequest & WithExpectedBucketOwner(Aws::String &&value)
Definition: GetObjectTorrentRequest.h:201
Aws::S3::Model::GetObjectTorrentRequest::SetKey
void SetKey(const Aws::String &value)
Definition: GetObjectTorrentRequest.h:107
Aws::S3::Model::GetObjectTorrentRequest::SetBucket
void SetBucket(Aws::String &&value)
Definition: GetObjectTorrentRequest.h:67
Aws::S3::Model::GetObjectTorrentRequest::GetRequestPayer
const RequestPayer & GetRequestPayer() const
Definition: GetObjectTorrentRequest.h:136
RequestPayer.h
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
S3Request.h
Aws::S3::Model::GetObjectTorrentRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(const Aws::String &value)
Definition: GetObjectTorrentRequest.h:173
Aws::S3::Model::GetObjectTorrentRequest::GetExpectedBucketOwner
const Aws::String & GetExpectedBucketOwner() const
Definition: GetObjectTorrentRequest.h:159
Aws::S3::Model::GetObjectTorrentRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetObjectTorrentRequest.h:36
Aws::S3::Model::GetObjectTorrentRequest::AddCustomizedAccessLogTag
GetObjectTorrentRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
Definition: GetObjectTorrentRequest.h:248
Aws::S3::Model::GetObjectTorrentRequest::AddCustomizedAccessLogTag
GetObjectTorrentRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
Definition: GetObjectTorrentRequest.h:242
Aws::S3::Model::GetObjectTorrentRequest::ExpectedBucketOwnerHasBeenSet
bool ExpectedBucketOwnerHasBeenSet() const
Definition: GetObjectTorrentRequest.h:166
Aws::S3::Model::GetObjectTorrentRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(Aws::String &&value)
Definition: GetObjectTorrentRequest.h:180
Aws::S3::Model::GetObjectTorrentRequest::AddCustomizedAccessLogTag
GetObjectTorrentRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
Definition: GetObjectTorrentRequest.h:245
Aws::S3::Model::GetObjectTorrentRequest::WithBucket
GetObjectTorrentRequest & WithBucket(const Aws::String &value)
Definition: GetObjectTorrentRequest.h:79
Aws::S3::Model::GetObjectTorrentRequest::SetBucket
void SetBucket(const Aws::String &value)
Definition: GetObjectTorrentRequest.h:61
S3_EXPORTS.h
AWS_S3_API
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
Aws::S3::Model::GetObjectTorrentRequest::WithCustomizedAccessLogTag
GetObjectTorrentRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
Definition: GetObjectTorrentRequest.h:224
Aws::S3::Model::GetObjectTorrentRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::S3::Model::RequestPayer
RequestPayer
Definition: RequestPayer.h:17
Aws::S3::S3Request
Definition: S3Request.h:18
Aws::S3::Model::GetObjectTorrentRequest::SetKey
void SetKey(Aws::String &&value)
Definition: GetObjectTorrentRequest.h:112
Aws::S3::Model::GetObjectTorrentRequest::GetBucket
const Aws::String & GetBucket() const
Definition: GetObjectTorrentRequest.h:49
Aws::S3::Model::GetObjectTorrentRequest::SetBucket
void SetBucket(const char *value)
Definition: GetObjectTorrentRequest.h:73
Aws::S3::Model::GetObjectTorrentRequest::GetCustomizedAccessLogTag
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
Definition: GetObjectTorrentRequest.h:212
Aws::S3::Model::GetObjectTorrentRequest::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: GetObjectTorrentRequest.h:102
Aws::S3::Model::GetObjectTorrentRequest::AddCustomizedAccessLogTag
GetObjectTorrentRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
Definition: GetObjectTorrentRequest.h:230
Aws::S3::Model::GetObjectTorrentRequest::SetCustomizedAccessLogTag
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
Definition: GetObjectTorrentRequest.h:218
Aws::S3::Model::GetObjectTorrentRequest::SetRequestPayer
void SetRequestPayer(const RequestPayer &value)
Definition: GetObjectTorrentRequest.h:142
Aws::S3::Model::GetObjectTorrentRequest
Definition: GetObjectTorrentRequest.h:28
Aws::S3::Model::GetObjectTorrentRequest::AddCustomizedAccessLogTag
GetObjectTorrentRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
Definition: GetObjectTorrentRequest.h:239
Aws::S3::Model::GetObjectTorrentRequest::WithRequestPayer
GetObjectTorrentRequest & WithRequestPayer(RequestPayer &&value)
Definition: GetObjectTorrentRequest.h:151
AWSString.h
Aws::S3::Model::GetObjectTorrentRequest::WithBucket
GetObjectTorrentRequest & WithBucket(Aws::String &&value)
Definition: GetObjectTorrentRequest.h:85
Aws::S3::Model::GetObjectTorrentRequest::WithBucket
GetObjectTorrentRequest & WithBucket(const char *value)
Definition: GetObjectTorrentRequest.h:91
Aws::S3::Model::GetObjectTorrentRequest::WithCustomizedAccessLogTag
GetObjectTorrentRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
Definition: GetObjectTorrentRequest.h:227
Aws::S3::Model::GetObjectTorrentRequest::WithKey
GetObjectTorrentRequest & WithKey(const char *value)
Definition: GetObjectTorrentRequest.h:132
Aws::S3::Model::GetObjectTorrentRequest::WithKey
GetObjectTorrentRequest & WithKey(const Aws::String &value)
Definition: GetObjectTorrentRequest.h:122
Aws::S3::Model::GetObjectTorrentRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::S3::Model::GetObjectTorrentRequest::SetRequestPayer
void SetRequestPayer(RequestPayer &&value)
Definition: GetObjectTorrentRequest.h:145
Aws::S3::Model::GetObjectTorrentRequest::GetObjectTorrentRequest
GetObjectTorrentRequest()
Aws::S3::Model::GetObjectTorrentRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(const char *value)
Definition: GetObjectTorrentRequest.h:187
Aws::S3::Model::GetObjectTorrentRequest::CustomizedAccessLogTagHasBeenSet
bool CustomizedAccessLogTagHasBeenSet() const
Definition: GetObjectTorrentRequest.h:215
Aws::S3::Model::GetObjectTorrentRequest::AddCustomizedAccessLogTag
GetObjectTorrentRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
Definition: GetObjectTorrentRequest.h:233
Aws::S3::Model::GetObjectTorrentRequest::BucketHasBeenSet
bool BucketHasBeenSet() const
Definition: GetObjectTorrentRequest.h:55
Aws::S3::Model::GetObjectTorrentRequest::SetKey
void SetKey(const char *value)
Definition: GetObjectTorrentRequest.h:117
Aws
Definition: AccessManagementClient.h:15
Aws::S3::Model::GetObjectTorrentRequest::WithRequestPayer
GetObjectTorrentRequest & WithRequestPayer(const RequestPayer &value)
Definition: GetObjectTorrentRequest.h:148
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::S3::Model::GetObjectTorrentRequest::WithExpectedBucketOwner
GetObjectTorrentRequest & WithExpectedBucketOwner(const char *value)
Definition: GetObjectTorrentRequest.h:208
Aws::S3::Model::GetObjectTorrentRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::S3::Model::GetObjectTorrentRequest::GetKey
const Aws::String & GetKey() const
Definition: GetObjectTorrentRequest.h:97
AWSMap.h
Aws::S3::Model::GetObjectTorrentRequest::WithExpectedBucketOwner
GetObjectTorrentRequest & WithExpectedBucketOwner(const Aws::String &value)
Definition: GetObjectTorrentRequest.h:194
Aws::S3::ARNService::S3
static const char S3[]
Definition: S3ARN.h:25
Aws::S3::Model::GetObjectTorrentRequest::RequestPayerHasBeenSet
bool RequestPayerHasBeenSet() const
Definition: GetObjectTorrentRequest.h:139
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19