AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetBucketAbacRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3/S3Request.h>
10#include <aws/s3/S3_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace S3 {
19namespace Model {
20
24 public:
25 AWS_S3_API GetBucketAbacRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "GetBucketAbac"; }
32
33 AWS_S3_API Aws::String SerializePayload() const override;
34
35 AWS_S3_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
42 AWS_S3_API EndpointParameters GetEndpointContextParams() const override;
43
45
48 inline const Aws::String& GetBucket() const { return m_bucket; }
49 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
50 template <typename BucketT = Aws::String>
51 void SetBucket(BucketT&& value) {
52 m_bucketHasBeenSet = true;
53 m_bucket = std::forward<BucketT>(value);
54 }
55 template <typename BucketT = Aws::String>
56 GetBucketAbacRequest& WithBucket(BucketT&& value) {
57 SetBucket(std::forward<BucketT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
68 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
69 template <typename ExpectedBucketOwnerT = Aws::String>
70 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
71 m_expectedBucketOwnerHasBeenSet = true;
72 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
73 }
74 template <typename ExpectedBucketOwnerT = Aws::String>
75 GetBucketAbacRequest& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
76 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
77 return *this;
78 }
80
82
83 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
84 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
85 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
86 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
87 m_customizedAccessLogTagHasBeenSet = true;
88 m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value);
89 }
90 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
91 GetBucketAbacRequest& WithCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
92 SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value));
93 return *this;
94 }
95 template <typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
96 GetBucketAbacRequest& AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT&& key, CustomizedAccessLogTagValueT&& value) {
97 m_customizedAccessLogTagHasBeenSet = true;
98 m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
99 return *this;
100 }
102 private:
103 Aws::String m_bucket;
104
105 Aws::String m_expectedBucketOwner;
106
107 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
108 bool m_bucketHasBeenSet = false;
109 bool m_expectedBucketOwnerHasBeenSet = false;
110 bool m_customizedAccessLogTagHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace S3
115} // namespace Aws
GetBucketAbacRequest & WithBucket(BucketT &&value)
const Aws::String & GetExpectedBucketOwner() const
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
AWS_S3_API GetBucketAbacRequest()=default
void SetExpectedBucketOwner(ExpectedBucketOwnerT &&value)
const Aws::String & GetBucket() const
virtual const char * GetServiceRequestName() const override
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetBucketAbacRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_S3_API Aws::String SerializePayload() const override
void SetCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
GetBucketAbacRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
GetBucketAbacRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
Aws::Endpoint::EndpointParameters EndpointParameters
Definition S3Request.h:19
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