AWS SDK for C++

AWS SDK for C++ Version 1.11.844

Loading...
Searching...
No Matches
PutBucketReplicationRequest.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/ChecksumAlgorithm.h>
12#include <aws/s3-crt/model/ReplicationConfiguration.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 PutBucketReplicationRequest() = 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 "PutBucketReplication"; }
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 bool HasEmbeddedError(IOStream& body, const Http::HeaderValueCollection& header) const override;
42 AWS_S3CRT_API Aws::String GetChecksumAlgorithmName() const override;
43 AWS_S3CRT_API bool ChecksumAlgorithmIsSet() const override;
44 inline bool RequestChecksumRequired() const override { return true; };
45
49 AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override;
50
52
55 inline const Aws::String& GetBucket() const { return m_bucket; }
56 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
57 template <typename BucketT = Aws::String>
58 void SetBucket(BucketT&& value) {
59 m_bucketHasBeenSet = true;
60 m_bucket = std::forward<BucketT>(value);
61 }
62 template <typename BucketT = Aws::String>
64 SetBucket(std::forward<BucketT>(value));
65 return *this;
66 }
68
70
78 inline const Aws::String& GetContentMD5() const { return m_contentMD5; }
79 inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
80 template <typename ContentMD5T = Aws::String>
81 void SetContentMD5(ContentMD5T&& value) {
82 m_contentMD5HasBeenSet = true;
83 m_contentMD5 = std::forward<ContentMD5T>(value);
84 }
85 template <typename ContentMD5T = Aws::String>
87 SetContentMD5(std::forward<ContentMD5T>(value));
88 return *this;
89 }
91
93
105 inline ChecksumAlgorithm GetChecksumAlgorithm() const { return m_checksumAlgorithm; }
106 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
108 m_checksumAlgorithmHasBeenSet = true;
109 m_checksumAlgorithm = value;
110 }
113 return *this;
114 }
116
118
119 inline const ReplicationConfiguration& GetReplicationConfiguration() const { return m_replicationConfiguration; }
120 inline bool ReplicationConfigurationHasBeenSet() const { return m_replicationConfigurationHasBeenSet; }
121 template <typename ReplicationConfigurationT = ReplicationConfiguration>
122 void SetReplicationConfiguration(ReplicationConfigurationT&& value) {
123 m_replicationConfigurationHasBeenSet = true;
124 m_replicationConfiguration = std::forward<ReplicationConfigurationT>(value);
125 }
126 template <typename ReplicationConfigurationT = ReplicationConfiguration>
127 PutBucketReplicationRequest& WithReplicationConfiguration(ReplicationConfigurationT&& value) {
128 SetReplicationConfiguration(std::forward<ReplicationConfigurationT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::String& GetToken() const { return m_token; }
138 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
139 template <typename TokenT = Aws::String>
140 void SetToken(TokenT&& value) {
141 m_tokenHasBeenSet = true;
142 m_token = std::forward<TokenT>(value);
143 }
144 template <typename TokenT = Aws::String>
146 SetToken(std::forward<TokenT>(value));
147 return *this;
148 }
150
152
157 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
158 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
159 template <typename ExpectedBucketOwnerT = Aws::String>
160 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
161 m_expectedBucketOwnerHasBeenSet = true;
162 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
163 }
164 template <typename ExpectedBucketOwnerT = Aws::String>
166 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
167 return *this;
168 }
170
172
173 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
174 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
175 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
176 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
177 m_customizedAccessLogTagHasBeenSet = true;
178 m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value);
179 }
180 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
181 PutBucketReplicationRequest& WithCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
182 SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value));
183 return *this;
184 }
185 template <typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
186 PutBucketReplicationRequest& AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT&& key, CustomizedAccessLogTagValueT&& value) {
187 m_customizedAccessLogTagHasBeenSet = true;
188 m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
189 return *this;
190 }
192 private:
193 Aws::String m_bucket;
194
195 Aws::String m_contentMD5;
196
198
199 ReplicationConfiguration m_replicationConfiguration;
200
201 Aws::String m_token;
202
203 Aws::String m_expectedBucketOwner;
204
205 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
206 bool m_bucketHasBeenSet = false;
207 bool m_contentMD5HasBeenSet = false;
208 bool m_checksumAlgorithmHasBeenSet = false;
209 bool m_replicationConfigurationHasBeenSet = false;
210 bool m_tokenHasBeenSet = false;
211 bool m_expectedBucketOwnerHasBeenSet = false;
212 bool m_customizedAccessLogTagHasBeenSet = false;
213};
214
215} // namespace Model
216} // namespace S3Crt
217} // namespace Aws
PutBucketReplicationRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
PutBucketReplicationRequest & WithToken(TokenT &&value)
AWS_S3CRT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutBucketReplicationRequest & WithChecksumAlgorithm(ChecksumAlgorithm value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
AWS_S3CRT_API PutBucketReplicationRequest()=default
PutBucketReplicationRequest & WithBucket(BucketT &&value)
void SetReplicationConfiguration(ReplicationConfigurationT &&value)
PutBucketReplicationRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
AWS_S3CRT_API bool ChecksumAlgorithmIsSet() const override
AWS_S3CRT_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
AWS_S3CRT_API Aws::String SerializePayload() const override
AWS_S3CRT_API Aws::String GetChecksumAlgorithmName() const override
PutBucketReplicationRequest & WithReplicationConfiguration(ReplicationConfigurationT &&value)
const ReplicationConfiguration & GetReplicationConfiguration() const
void SetCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override
PutBucketReplicationRequest & WithContentMD5(ContentMD5T &&value)
AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
PutBucketReplicationRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&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_iostream< char, std::char_traits< char > > IOStream
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String