AWS SDK for C++

AWS SDK for C++ Version 1.11.844

Loading...
Searching...
No Matches
PutBucketAbacRequest.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-crt/S3CrtRequest.h>
10#include <aws/s3-crt/S3Crt_EXPORTS.h>
11#include <aws/s3-crt/model/AbacStatus.h>
12#include <aws/s3-crt/model/ChecksumAlgorithm.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Http {
18class URI;
19} // namespace Http
20namespace S3Crt {
21namespace Model {
22
26 public:
27 AWS_S3CRT_API PutBucketAbacRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "PutBucketAbac"; }
34
35 AWS_S3CRT_API Aws::String SerializePayload() const override;
36
37 AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
38
40
41 AWS_S3CRT_API Aws::String GetChecksumAlgorithmName() const override;
42 AWS_S3CRT_API bool ChecksumAlgorithmIsSet() const override;
46 AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override;
47
49
52 inline const Aws::String& GetBucket() const { return m_bucket; }
53 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
54 template <typename BucketT = Aws::String>
55 void SetBucket(BucketT&& value) {
56 m_bucketHasBeenSet = true;
57 m_bucket = std::forward<BucketT>(value);
58 }
59 template <typename BucketT = Aws::String>
60 PutBucketAbacRequest& WithBucket(BucketT&& value) {
61 SetBucket(std::forward<BucketT>(value));
62 return *this;
63 }
65
67
72 inline const Aws::String& GetContentMD5() const { return m_contentMD5; }
73 inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
74 template <typename ContentMD5T = Aws::String>
75 void SetContentMD5(ContentMD5T&& value) {
76 m_contentMD5HasBeenSet = true;
77 m_contentMD5 = std::forward<ContentMD5T>(value);
78 }
79 template <typename ContentMD5T = Aws::String>
80 PutBucketAbacRequest& WithContentMD5(ContentMD5T&& value) {
81 SetContentMD5(std::forward<ContentMD5T>(value));
82 return *this;
83 }
85
87
93 inline ChecksumAlgorithm GetChecksumAlgorithm() const { return m_checksumAlgorithm; }
94 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
96 m_checksumAlgorithmHasBeenSet = true;
97 m_checksumAlgorithm = value;
98 }
101 return *this;
102 }
104
106
110 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
111 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
112 template <typename ExpectedBucketOwnerT = Aws::String>
113 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
114 m_expectedBucketOwnerHasBeenSet = true;
115 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
116 }
117 template <typename ExpectedBucketOwnerT = Aws::String>
118 PutBucketAbacRequest& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
119 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
120 return *this;
121 }
123
125
134 inline const AbacStatus& GetAbacStatus() const { return m_abacStatus; }
135 inline bool AbacStatusHasBeenSet() const { return m_abacStatusHasBeenSet; }
136 template <typename AbacStatusT = AbacStatus>
137 void SetAbacStatus(AbacStatusT&& value) {
138 m_abacStatusHasBeenSet = true;
139 m_abacStatus = std::forward<AbacStatusT>(value);
140 }
141 template <typename AbacStatusT = AbacStatus>
142 PutBucketAbacRequest& WithAbacStatus(AbacStatusT&& value) {
143 SetAbacStatus(std::forward<AbacStatusT>(value));
144 return *this;
145 }
147
149
150 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
151 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
152 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
153 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
154 m_customizedAccessLogTagHasBeenSet = true;
155 m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value);
156 }
157 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
158 PutBucketAbacRequest& WithCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
159 SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value));
160 return *this;
161 }
162 template <typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
163 PutBucketAbacRequest& AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT&& key, CustomizedAccessLogTagValueT&& value) {
164 m_customizedAccessLogTagHasBeenSet = true;
165 m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
166 return *this;
167 }
169 private:
170 Aws::String m_bucket;
171
172 Aws::String m_contentMD5;
173
175
176 Aws::String m_expectedBucketOwner;
177
178 AbacStatus m_abacStatus;
179
180 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
181 bool m_bucketHasBeenSet = false;
182 bool m_contentMD5HasBeenSet = false;
183 bool m_checksumAlgorithmHasBeenSet = false;
184 bool m_expectedBucketOwnerHasBeenSet = false;
185 bool m_abacStatusHasBeenSet = false;
186 bool m_customizedAccessLogTagHasBeenSet = false;
187};
188
189} // namespace Model
190} // namespace S3Crt
191} // namespace Aws
PutBucketAbacRequest & WithChecksumAlgorithm(ChecksumAlgorithm value)
void SetExpectedBucketOwner(ExpectedBucketOwnerT &&value)
AWS_S3CRT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutBucketAbacRequest & WithAbacStatus(AbacStatusT &&value)
void SetCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
AWS_S3CRT_API PutBucketAbacRequest()=default
PutBucketAbacRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
AWS_S3CRT_API Aws::String SerializePayload() const override
AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override
void SetChecksumAlgorithm(ChecksumAlgorithm value)
AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
PutBucketAbacRequest & WithBucket(BucketT &&value)
const Aws::String & GetExpectedBucketOwner() const
AWS_S3CRT_API Aws::String GetChecksumAlgorithmName() const override
PutBucketAbacRequest & WithContentMD5(ContentMD5T &&value)
PutBucketAbacRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
AWS_S3CRT_API bool ChecksumAlgorithmIsSet() const override
PutBucketAbacRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
Aws::Endpoint::EndpointParameters EndpointParameters
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