AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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;
45 AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override;
46
48
51 inline const Aws::String& GetBucket() const { return m_bucket; }
52 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
53 template <typename BucketT = Aws::String>
54 void SetBucket(BucketT&& value) {
55 m_bucketHasBeenSet = true;
56 m_bucket = std::forward<BucketT>(value);
57 }
58 template <typename BucketT = Aws::String>
59 PutBucketAbacRequest& WithBucket(BucketT&& value) {
60 SetBucket(std::forward<BucketT>(value));
61 return *this;
62 }
64
66
71 inline const Aws::String& GetContentMD5() const { return m_contentMD5; }
72 inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
73 template <typename ContentMD5T = Aws::String>
74 void SetContentMD5(ContentMD5T&& value) {
75 m_contentMD5HasBeenSet = true;
76 m_contentMD5 = std::forward<ContentMD5T>(value);
77 }
78 template <typename ContentMD5T = Aws::String>
79 PutBucketAbacRequest& WithContentMD5(ContentMD5T&& value) {
80 SetContentMD5(std::forward<ContentMD5T>(value));
81 return *this;
82 }
84
86
92 inline ChecksumAlgorithm GetChecksumAlgorithm() const { return m_checksumAlgorithm; }
93 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
95 m_checksumAlgorithmHasBeenSet = true;
96 m_checksumAlgorithm = value;
97 }
100 return *this;
101 }
103
105
109 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
110 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
111 template <typename ExpectedBucketOwnerT = Aws::String>
112 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
113 m_expectedBucketOwnerHasBeenSet = true;
114 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
115 }
116 template <typename ExpectedBucketOwnerT = Aws::String>
117 PutBucketAbacRequest& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
118 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
119 return *this;
120 }
122
124
133 inline const AbacStatus& GetAbacStatus() const { return m_abacStatus; }
134 inline bool AbacStatusHasBeenSet() const { return m_abacStatusHasBeenSet; }
135 template <typename AbacStatusT = AbacStatus>
136 void SetAbacStatus(AbacStatusT&& value) {
137 m_abacStatusHasBeenSet = true;
138 m_abacStatus = std::forward<AbacStatusT>(value);
139 }
140 template <typename AbacStatusT = AbacStatus>
141 PutBucketAbacRequest& WithAbacStatus(AbacStatusT&& value) {
142 SetAbacStatus(std::forward<AbacStatusT>(value));
143 return *this;
144 }
146
148
149 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
150 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
151 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
152 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
153 m_customizedAccessLogTagHasBeenSet = true;
154 m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value);
155 }
156 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
157 PutBucketAbacRequest& WithCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
158 SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value));
159 return *this;
160 }
161 template <typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
162 PutBucketAbacRequest& AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT&& key, CustomizedAccessLogTagValueT&& value) {
163 m_customizedAccessLogTagHasBeenSet = true;
164 m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
165 return *this;
166 }
168 private:
169 Aws::String m_bucket;
170
171 Aws::String m_contentMD5;
172
174
175 Aws::String m_expectedBucketOwner;
176
177 AbacStatus m_abacStatus;
178
179 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
180 bool m_bucketHasBeenSet = false;
181 bool m_contentMD5HasBeenSet = false;
182 bool m_checksumAlgorithmHasBeenSet = false;
183 bool m_expectedBucketOwnerHasBeenSet = false;
184 bool m_abacStatusHasBeenSet = false;
185 bool m_customizedAccessLogTagHasBeenSet = false;
186};
187
188} // namespace Model
189} // namespace S3Crt
190} // 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)
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