AWS SDK for C++  1.9.14
AWS SDK for C++
GetObjectTaggingRequest.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 "GetObjectTagging"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41 
43 
44 
65  inline const Aws::String& GetBucket() const{ return m_bucket; }
66 
87  inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
88 
109  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
110 
131  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
132 
153  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
154 
175  inline GetObjectTaggingRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
176 
197  inline GetObjectTaggingRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
198 
219  inline GetObjectTaggingRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
220 
221 
225  inline const Aws::String& GetKey() const{ return m_key; }
226 
230  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
231 
235  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
236 
240  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
241 
245  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
246 
250  inline GetObjectTaggingRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
251 
255  inline GetObjectTaggingRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
256 
260  inline GetObjectTaggingRequest& WithKey(const char* value) { SetKey(value); return *this;}
261 
262 
266  inline const Aws::String& GetVersionId() const{ return m_versionId; }
267 
271  inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
272 
276  inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
277 
281  inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
282 
286  inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
287 
291  inline GetObjectTaggingRequest& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
292 
296  inline GetObjectTaggingRequest& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
297 
301  inline GetObjectTaggingRequest& WithVersionId(const char* value) { SetVersionId(value); return *this;}
302 
303 
309  inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
310 
316  inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
317 
323  inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
324 
330  inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
331 
337  inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
338 
344  inline GetObjectTaggingRequest& WithExpectedBucketOwner(const Aws::String& value) { SetExpectedBucketOwner(value); return *this;}
345 
351  inline GetObjectTaggingRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
352 
358  inline GetObjectTaggingRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
359 
360 
361 
362  inline const RequestPayer& GetRequestPayer() const{ return m_requestPayer; }
363 
364 
365  inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
366 
367 
368  inline void SetRequestPayer(const RequestPayer& value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
369 
370 
371  inline void SetRequestPayer(RequestPayer&& value) { m_requestPayerHasBeenSet = true; m_requestPayer = std::move(value); }
372 
373 
374  inline GetObjectTaggingRequest& WithRequestPayer(const RequestPayer& value) { SetRequestPayer(value); return *this;}
375 
376 
377  inline GetObjectTaggingRequest& WithRequestPayer(RequestPayer&& value) { SetRequestPayer(std::move(value)); return *this;}
378 
379 
380 
381  inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
382 
383 
384  inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
385 
386 
387  inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
388 
389 
390  inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
391 
392 
393  inline GetObjectTaggingRequest& WithCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { SetCustomizedAccessLogTag(value); return *this;}
394 
395 
396  inline GetObjectTaggingRequest& WithCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { SetCustomizedAccessLogTag(std::move(value)); return *this;}
397 
398 
399  inline GetObjectTaggingRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
400 
401 
402  inline GetObjectTaggingRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
403 
404 
405  inline GetObjectTaggingRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
406 
407 
408  inline GetObjectTaggingRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
409 
410 
411  inline GetObjectTaggingRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
412 
413 
414  inline GetObjectTaggingRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
415 
416 
417  inline GetObjectTaggingRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
418 
419  private:
420 
421  Aws::String m_bucket;
422  bool m_bucketHasBeenSet;
423 
424  Aws::String m_key;
425  bool m_keyHasBeenSet;
426 
427  Aws::String m_versionId;
428  bool m_versionIdHasBeenSet;
429 
430  Aws::String m_expectedBucketOwner;
431  bool m_expectedBucketOwnerHasBeenSet;
432 
433  RequestPayer m_requestPayer;
434  bool m_requestPayerHasBeenSet;
435 
436  Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
437  bool m_customizedAccessLogTagHasBeenSet;
438  };
439 
440 } // namespace Model
441 } // namespace S3
442 } // namespace Aws
Aws::S3::Model::GetObjectTaggingRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Http::URI
Definition: URI.h:32
Aws::S3::Model::GetObjectTaggingRequest::RequestPayerHasBeenSet
bool RequestPayerHasBeenSet() const
Definition: GetObjectTaggingRequest.h:365
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
S3Request.h
Aws::S3::Model::GetObjectTaggingRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(const Aws::String &value)
Definition: GetObjectTaggingRequest.h:323
Aws::S3::Model::GetObjectTaggingRequest::SetRequestPayer
void SetRequestPayer(RequestPayer &&value)
Definition: GetObjectTaggingRequest.h:371
Aws::S3::Model::GetObjectTaggingRequest::WithExpectedBucketOwner
GetObjectTaggingRequest & WithExpectedBucketOwner(Aws::String &&value)
Definition: GetObjectTaggingRequest.h:351
Aws::S3::Model::GetObjectTaggingRequest::WithBucket
GetObjectTaggingRequest & WithBucket(const Aws::String &value)
Definition: GetObjectTaggingRequest.h:175
Aws::S3::Model::GetObjectTaggingRequest::WithExpectedBucketOwner
GetObjectTaggingRequest & WithExpectedBucketOwner(const Aws::String &value)
Definition: GetObjectTaggingRequest.h:344
Aws::S3::Model::GetObjectTaggingRequest::WithKey
GetObjectTaggingRequest & WithKey(Aws::String &&value)
Definition: GetObjectTaggingRequest.h:255
Aws::S3::Model::GetObjectTaggingRequest::WithBucket
GetObjectTaggingRequest & WithBucket(Aws::String &&value)
Definition: GetObjectTaggingRequest.h:197
Aws::S3::Model::GetObjectTaggingRequest::SetVersionId
void SetVersionId(Aws::String &&value)
Definition: GetObjectTaggingRequest.h:281
Aws::S3::Model::GetObjectTaggingRequest::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: GetObjectTaggingRequest.h:230
Aws::S3::Model::GetObjectTaggingRequest::AddCustomizedAccessLogTag
GetObjectTaggingRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
Definition: GetObjectTaggingRequest.h:402
Aws::S3::Model::GetObjectTaggingRequest::GetKey
const Aws::String & GetKey() const
Definition: GetObjectTaggingRequest.h:225
Aws::S3::Model::GetObjectTaggingRequest::WithVersionId
GetObjectTaggingRequest & WithVersionId(const Aws::String &value)
Definition: GetObjectTaggingRequest.h:291
Aws::S3::Model::GetObjectTaggingRequest::WithBucket
GetObjectTaggingRequest & WithBucket(const char *value)
Definition: GetObjectTaggingRequest.h:219
Aws::S3::Model::GetObjectTaggingRequest::SetKey
void SetKey(Aws::String &&value)
Definition: GetObjectTaggingRequest.h:240
Aws::S3::Model::GetObjectTaggingRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetObjectTaggingRequest.h:36
S3_EXPORTS.h
Aws::S3::Model::GetObjectTaggingRequest::AddCustomizedAccessLogTag
GetObjectTaggingRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
Definition: GetObjectTaggingRequest.h:411
AWS_S3_API
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
Aws::S3::Model::RequestPayer
RequestPayer
Definition: RequestPayer.h:17
Aws::S3::S3Request
Definition: S3Request.h:18
Aws::S3::Model::GetObjectTaggingRequest::GetVersionId
const Aws::String & GetVersionId() const
Definition: GetObjectTaggingRequest.h:266
Aws::S3::Model::GetObjectTaggingRequest::ExpectedBucketOwnerHasBeenSet
bool ExpectedBucketOwnerHasBeenSet() const
Definition: GetObjectTaggingRequest.h:316
Aws::S3::Model::GetObjectTaggingRequest::SetBucket
void SetBucket(const Aws::String &value)
Definition: GetObjectTaggingRequest.h:109
Aws::S3::Model::GetObjectTaggingRequest::SetBucket
void SetBucket(const char *value)
Definition: GetObjectTaggingRequest.h:153
Aws::S3::Model::GetObjectTaggingRequest::SetVersionId
void SetVersionId(const char *value)
Definition: GetObjectTaggingRequest.h:286
Aws::S3::Model::GetObjectTaggingRequest::WithRequestPayer
GetObjectTaggingRequest & WithRequestPayer(const RequestPayer &value)
Definition: GetObjectTaggingRequest.h:374
Aws::S3::Model::GetObjectTaggingRequest::AddCustomizedAccessLogTag
GetObjectTaggingRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
Definition: GetObjectTaggingRequest.h:408
Aws::S3::Model::GetObjectTaggingRequest::SetCustomizedAccessLogTag
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
Definition: GetObjectTaggingRequest.h:387
Aws::S3::Model::GetObjectTaggingRequest::SetCustomizedAccessLogTag
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
Definition: GetObjectTaggingRequest.h:390
Aws::S3::Model::GetObjectTaggingRequest::GetCustomizedAccessLogTag
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
Definition: GetObjectTaggingRequest.h:381
Aws::S3::Model::GetObjectTaggingRequest::WithKey
GetObjectTaggingRequest & WithKey(const Aws::String &value)
Definition: GetObjectTaggingRequest.h:250
Aws::S3::Model::GetObjectTaggingRequest::AddCustomizedAccessLogTag
GetObjectTaggingRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
Definition: GetObjectTaggingRequest.h:414
Aws::S3::Model::GetObjectTaggingRequest::GetBucket
const Aws::String & GetBucket() const
Definition: GetObjectTaggingRequest.h:65
Aws::S3::Model::GetObjectTaggingRequest::GetRequestPayer
const RequestPayer & GetRequestPayer() const
Definition: GetObjectTaggingRequest.h:362
Aws::S3::Model::GetObjectTaggingRequest::WithVersionId
GetObjectTaggingRequest & WithVersionId(Aws::String &&value)
Definition: GetObjectTaggingRequest.h:296
Aws::S3::Model::GetObjectTaggingRequest::GetObjectTaggingRequest
GetObjectTaggingRequest()
AWSString.h
Aws::S3::Model::GetObjectTaggingRequest::GetExpectedBucketOwner
const Aws::String & GetExpectedBucketOwner() const
Definition: GetObjectTaggingRequest.h:309
Aws::S3::Model::GetObjectTaggingRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::S3::Model::GetObjectTaggingRequest::WithRequestPayer
GetObjectTaggingRequest & WithRequestPayer(RequestPayer &&value)
Definition: GetObjectTaggingRequest.h:377
Aws::S3::Model::GetObjectTaggingRequest::AddCustomizedAccessLogTag
GetObjectTaggingRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
Definition: GetObjectTaggingRequest.h:399
RequestPayer.h
Aws::S3::Model::GetObjectTaggingRequest::WithCustomizedAccessLogTag
GetObjectTaggingRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
Definition: GetObjectTaggingRequest.h:393
Aws::S3::Model::GetObjectTaggingRequest::VersionIdHasBeenSet
bool VersionIdHasBeenSet() const
Definition: GetObjectTaggingRequest.h:271
Aws::S3::Model::GetObjectTaggingRequest::SetRequestPayer
void SetRequestPayer(const RequestPayer &value)
Definition: GetObjectTaggingRequest.h:368
Aws::S3::Model::GetObjectTaggingRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(const char *value)
Definition: GetObjectTaggingRequest.h:337
Aws::S3::Model::GetObjectTaggingRequest::SetBucket
void SetBucket(Aws::String &&value)
Definition: GetObjectTaggingRequest.h:131
Aws::S3::Model::GetObjectTaggingRequest::WithKey
GetObjectTaggingRequest & WithKey(const char *value)
Definition: GetObjectTaggingRequest.h:260
Aws::S3::Model::GetObjectTaggingRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::S3::Model::GetObjectTaggingRequest::SetVersionId
void SetVersionId(const Aws::String &value)
Definition: GetObjectTaggingRequest.h:276
Aws
Definition: AccessManagementClient.h:15
Aws::S3::Model::GetObjectTaggingRequest::BucketHasBeenSet
bool BucketHasBeenSet() const
Definition: GetObjectTaggingRequest.h:87
Aws::S3::Model::GetObjectTaggingRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(Aws::String &&value)
Definition: GetObjectTaggingRequest.h:330
Aws::S3::Model::GetObjectTaggingRequest::AddCustomizedAccessLogTag
GetObjectTaggingRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
Definition: GetObjectTaggingRequest.h:405
Aws::S3::Model::GetObjectTaggingRequest::WithExpectedBucketOwner
GetObjectTaggingRequest & WithExpectedBucketOwner(const char *value)
Definition: GetObjectTaggingRequest.h:358
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::S3::Model::GetObjectTaggingRequest::WithCustomizedAccessLogTag
GetObjectTaggingRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
Definition: GetObjectTaggingRequest.h:396
Aws::S3::Model::GetObjectTaggingRequest::CustomizedAccessLogTagHasBeenSet
bool CustomizedAccessLogTagHasBeenSet() const
Definition: GetObjectTaggingRequest.h:384
Aws::S3::Model::GetObjectTaggingRequest::WithVersionId
GetObjectTaggingRequest & WithVersionId(const char *value)
Definition: GetObjectTaggingRequest.h:301
Aws::S3::Model::GetObjectTaggingRequest::AddCustomizedAccessLogTag
GetObjectTaggingRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
Definition: GetObjectTaggingRequest.h:417
AWSMap.h
Aws::S3::ARNService::S3
static const char S3[]
Definition: S3ARN.h:25
Aws::S3::Model::GetObjectTaggingRequest
Definition: GetObjectTaggingRequest.h:28
Aws::S3::Model::GetObjectTaggingRequest::SetKey
void SetKey(const Aws::String &value)
Definition: GetObjectTaggingRequest.h:235
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::S3::Model::GetObjectTaggingRequest::SetKey
void SetKey(const char *value)
Definition: GetObjectTaggingRequest.h:245