AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
GetObjectAttributesRequest.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>
14#include <utility>
15
16namespace Aws
17{
18namespace Http
19{
20 class URI;
21} //namespace Http
22namespace S3
23{
24namespace Model
25{
26
30 {
31 public:
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "GetObjectAttributes"; }
39
41
43
45
50
70 inline const Aws::String& GetBucket() const{ return m_bucket; }
71
91 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
92
112 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
113
133 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
134
154 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
155
175 inline GetObjectAttributesRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
176
196 inline GetObjectAttributesRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
197
217 inline GetObjectAttributesRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
218
219
223 inline const Aws::String& GetKey() const{ return m_key; }
224
228 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
229
233 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
234
238 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
239
243 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
244
248 inline GetObjectAttributesRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
249
253 inline GetObjectAttributesRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
254
258 inline GetObjectAttributesRequest& WithKey(const char* value) { SetKey(value); return *this;}
259
260
264 inline const Aws::String& GetVersionId() const{ return m_versionId; }
265
269 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
270
274 inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
275
279 inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
280
284 inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
285
289 inline GetObjectAttributesRequest& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
290
294 inline GetObjectAttributesRequest& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
295
299 inline GetObjectAttributesRequest& WithVersionId(const char* value) { SetVersionId(value); return *this;}
300
301
305 inline int GetMaxParts() const{ return m_maxParts; }
306
310 inline bool MaxPartsHasBeenSet() const { return m_maxPartsHasBeenSet; }
311
315 inline void SetMaxParts(int value) { m_maxPartsHasBeenSet = true; m_maxParts = value; }
316
320 inline GetObjectAttributesRequest& WithMaxParts(int value) { SetMaxParts(value); return *this;}
321
322
327 inline int GetPartNumberMarker() const{ return m_partNumberMarker; }
328
333 inline bool PartNumberMarkerHasBeenSet() const { return m_partNumberMarkerHasBeenSet; }
334
339 inline void SetPartNumberMarker(int value) { m_partNumberMarkerHasBeenSet = true; m_partNumberMarker = value; }
340
345 inline GetObjectAttributesRequest& WithPartNumberMarker(int value) { SetPartNumberMarker(value); return *this;}
346
347
352 inline const Aws::String& GetSSECustomerAlgorithm() const{ return m_sSECustomerAlgorithm; }
353
358 inline bool SSECustomerAlgorithmHasBeenSet() const { return m_sSECustomerAlgorithmHasBeenSet; }
359
364 inline void SetSSECustomerAlgorithm(const Aws::String& value) { m_sSECustomerAlgorithmHasBeenSet = true; m_sSECustomerAlgorithm = value; }
365
370 inline void SetSSECustomerAlgorithm(Aws::String&& value) { m_sSECustomerAlgorithmHasBeenSet = true; m_sSECustomerAlgorithm = std::move(value); }
371
376 inline void SetSSECustomerAlgorithm(const char* value) { m_sSECustomerAlgorithmHasBeenSet = true; m_sSECustomerAlgorithm.assign(value); }
377
383
389
394 inline GetObjectAttributesRequest& WithSSECustomerAlgorithm(const char* value) { SetSSECustomerAlgorithm(value); return *this;}
395
396
404 inline const Aws::String& GetSSECustomerKey() const{ return m_sSECustomerKey; }
405
413 inline bool SSECustomerKeyHasBeenSet() const { return m_sSECustomerKeyHasBeenSet; }
414
422 inline void SetSSECustomerKey(const Aws::String& value) { m_sSECustomerKeyHasBeenSet = true; m_sSECustomerKey = value; }
423
431 inline void SetSSECustomerKey(Aws::String&& value) { m_sSECustomerKeyHasBeenSet = true; m_sSECustomerKey = std::move(value); }
432
440 inline void SetSSECustomerKey(const char* value) { m_sSECustomerKeyHasBeenSet = true; m_sSECustomerKey.assign(value); }
441
449 inline GetObjectAttributesRequest& WithSSECustomerKey(const Aws::String& value) { SetSSECustomerKey(value); return *this;}
450
458 inline GetObjectAttributesRequest& WithSSECustomerKey(Aws::String&& value) { SetSSECustomerKey(std::move(value)); return *this;}
459
467 inline GetObjectAttributesRequest& WithSSECustomerKey(const char* value) { SetSSECustomerKey(value); return *this;}
468
469
475 inline const Aws::String& GetSSECustomerKeyMD5() const{ return m_sSECustomerKeyMD5; }
476
482 inline bool SSECustomerKeyMD5HasBeenSet() const { return m_sSECustomerKeyMD5HasBeenSet; }
483
489 inline void SetSSECustomerKeyMD5(const Aws::String& value) { m_sSECustomerKeyMD5HasBeenSet = true; m_sSECustomerKeyMD5 = value; }
490
496 inline void SetSSECustomerKeyMD5(Aws::String&& value) { m_sSECustomerKeyMD5HasBeenSet = true; m_sSECustomerKeyMD5 = std::move(value); }
497
503 inline void SetSSECustomerKeyMD5(const char* value) { m_sSECustomerKeyMD5HasBeenSet = true; m_sSECustomerKeyMD5.assign(value); }
504
511
517 inline GetObjectAttributesRequest& WithSSECustomerKeyMD5(Aws::String&& value) { SetSSECustomerKeyMD5(std::move(value)); return *this;}
518
524 inline GetObjectAttributesRequest& WithSSECustomerKeyMD5(const char* value) { SetSSECustomerKeyMD5(value); return *this;}
525
526
527
528 inline const RequestPayer& GetRequestPayer() const{ return m_requestPayer; }
529
530
531 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
532
533
534 inline void SetRequestPayer(const RequestPayer& value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
535
536
537 inline void SetRequestPayer(RequestPayer&& value) { m_requestPayerHasBeenSet = true; m_requestPayer = std::move(value); }
538
539
540 inline GetObjectAttributesRequest& WithRequestPayer(const RequestPayer& value) { SetRequestPayer(value); return *this;}
541
542
543 inline GetObjectAttributesRequest& WithRequestPayer(RequestPayer&& value) { SetRequestPayer(std::move(value)); return *this;}
544
545
551 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
552
558 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
559
565 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
566
572 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
573
579 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
580
587
594
600 inline GetObjectAttributesRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
601
602
607 inline const Aws::Vector<ObjectAttributes>& GetObjectAttributes() const{ return m_objectAttributes; }
608
613 inline bool ObjectAttributesHasBeenSet() const { return m_objectAttributesHasBeenSet; }
614
619 inline void SetObjectAttributes(const Aws::Vector<ObjectAttributes>& value) { m_objectAttributesHasBeenSet = true; m_objectAttributes = value; }
620
625 inline void SetObjectAttributes(Aws::Vector<ObjectAttributes>&& value) { m_objectAttributesHasBeenSet = true; m_objectAttributes = std::move(value); }
626
632
638
643 inline GetObjectAttributesRequest& AddObjectAttributes(const ObjectAttributes& value) { m_objectAttributesHasBeenSet = true; m_objectAttributes.push_back(value); return *this; }
644
649 inline GetObjectAttributesRequest& AddObjectAttributes(ObjectAttributes&& value) { m_objectAttributesHasBeenSet = true; m_objectAttributes.push_back(std::move(value)); return *this; }
650
651
652
653 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
654
655
656 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
657
658
659 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
660
661
662 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
663
664
666
667
669
670
671 inline GetObjectAttributesRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
672
673
674 inline GetObjectAttributesRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
675
676
677 inline GetObjectAttributesRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
678
679
680 inline GetObjectAttributesRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
681
682
683 inline GetObjectAttributesRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
684
685
686 inline GetObjectAttributesRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
687
688
689 inline GetObjectAttributesRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
690
691 private:
692
693 Aws::String m_bucket;
694 bool m_bucketHasBeenSet = false;
695
696 Aws::String m_key;
697 bool m_keyHasBeenSet = false;
698
699 Aws::String m_versionId;
700 bool m_versionIdHasBeenSet = false;
701
702 int m_maxParts;
703 bool m_maxPartsHasBeenSet = false;
704
705 int m_partNumberMarker;
706 bool m_partNumberMarkerHasBeenSet = false;
707
708 Aws::String m_sSECustomerAlgorithm;
709 bool m_sSECustomerAlgorithmHasBeenSet = false;
710
711 Aws::String m_sSECustomerKey;
712 bool m_sSECustomerKeyHasBeenSet = false;
713
714 Aws::String m_sSECustomerKeyMD5;
715 bool m_sSECustomerKeyMD5HasBeenSet = false;
716
717 RequestPayer m_requestPayer;
718 bool m_requestPayerHasBeenSet = false;
719
720 Aws::String m_expectedBucketOwner;
721 bool m_expectedBucketOwnerHasBeenSet = false;
722
723 Aws::Vector<ObjectAttributes> m_objectAttributes;
724 bool m_objectAttributesHasBeenSet = false;
725
726 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
727 bool m_customizedAccessLogTagHasBeenSet = false;
728 };
729
730} // namespace Model
731} // namespace S3
732} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
GetObjectAttributesRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
virtual const char * GetServiceRequestName() const override
GetObjectAttributesRequest & AddObjectAttributes(const ObjectAttributes &value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
GetObjectAttributesRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
const Aws::Vector< ObjectAttributes > & GetObjectAttributes() const
GetObjectAttributesRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
GetObjectAttributesRequest & WithBucket(const char *value)
GetObjectAttributesRequest & WithObjectAttributes(const Aws::Vector< ObjectAttributes > &value)
GetObjectAttributesRequest & WithBucket(const Aws::String &value)
GetObjectAttributesRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
GetObjectAttributesRequest & WithBucket(Aws::String &&value)
GetObjectAttributesRequest & WithSSECustomerKeyMD5(Aws::String &&value)
void SetObjectAttributes(Aws::Vector< ObjectAttributes > &&value)
GetObjectAttributesRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
GetObjectAttributesRequest & WithRequestPayer(const RequestPayer &value)
GetObjectAttributesRequest & WithSSECustomerAlgorithm(const Aws::String &value)
GetObjectAttributesRequest & WithKey(Aws::String &&value)
GetObjectAttributesRequest & WithSSECustomerAlgorithm(const char *value)
GetObjectAttributesRequest & WithSSECustomerKey(const char *value)
void SetObjectAttributes(const Aws::Vector< ObjectAttributes > &value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
GetObjectAttributesRequest & WithSSECustomerKeyMD5(const char *value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetObjectAttributesRequest & WithExpectedBucketOwner(Aws::String &&value)
GetObjectAttributesRequest & WithSSECustomerKeyMD5(const Aws::String &value)
GetObjectAttributesRequest & WithExpectedBucketOwner(const char *value)
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
GetObjectAttributesRequest & WithMaxParts(int value)
AWS_S3_API Aws::String SerializePayload() const override
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetObjectAttributesRequest & WithVersionId(const Aws::String &value)
GetObjectAttributesRequest & AddObjectAttributes(ObjectAttributes &&value)
void SetSSECustomerAlgorithm(const Aws::String &value)
GetObjectAttributesRequest & WithSSECustomerKey(Aws::String &&value)
GetObjectAttributesRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
GetObjectAttributesRequest & WithKey(const char *value)
GetObjectAttributesRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
GetObjectAttributesRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
GetObjectAttributesRequest & WithExpectedBucketOwner(const Aws::String &value)
GetObjectAttributesRequest & WithSSECustomerAlgorithm(Aws::String &&value)
GetObjectAttributesRequest & WithVersionId(Aws::String &&value)
GetObjectAttributesRequest & WithSSECustomerKey(const Aws::String &value)
GetObjectAttributesRequest & WithVersionId(const char *value)
GetObjectAttributesRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
GetObjectAttributesRequest & WithRequestPayer(RequestPayer &&value)
GetObjectAttributesRequest & WithPartNumberMarker(int value)
GetObjectAttributesRequest & WithKey(const Aws::String &value)
GetObjectAttributesRequest & WithObjectAttributes(Aws::Vector< ObjectAttributes > &&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
std::vector< T, Aws::Allocator< T > > Vector