AWS SDK for C++

AWS SDK for C++ Version 1.11.695

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 inline bool RequestChecksumRequired() const override { return true; };
44
48 AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override;
49
51
54 inline const Aws::String& GetBucket() const { return m_bucket; }
55 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
56 template <typename BucketT = Aws::String>
57 void SetBucket(BucketT&& value) {
58 m_bucketHasBeenSet = true;
59 m_bucket = std::forward<BucketT>(value);
60 }
61 template <typename BucketT = Aws::String>
63 SetBucket(std::forward<BucketT>(value));
64 return *this;
65 }
67
69
77 inline const Aws::String& GetContentMD5() const { return m_contentMD5; }
78 inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
79 template <typename ContentMD5T = Aws::String>
80 void SetContentMD5(ContentMD5T&& value) {
81 m_contentMD5HasBeenSet = true;
82 m_contentMD5 = std::forward<ContentMD5T>(value);
83 }
84 template <typename ContentMD5T = Aws::String>
86 SetContentMD5(std::forward<ContentMD5T>(value));
87 return *this;
88 }
90
92
104 inline ChecksumAlgorithm GetChecksumAlgorithm() const { return m_checksumAlgorithm; }
105 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
107 m_checksumAlgorithmHasBeenSet = true;
108 m_checksumAlgorithm = value;
109 }
112 return *this;
113 }
115
117
118 inline const ReplicationConfiguration& GetReplicationConfiguration() const { return m_replicationConfiguration; }
119 inline bool ReplicationConfigurationHasBeenSet() const { return m_replicationConfigurationHasBeenSet; }
120 template <typename ReplicationConfigurationT = ReplicationConfiguration>
121 void SetReplicationConfiguration(ReplicationConfigurationT&& value) {
122 m_replicationConfigurationHasBeenSet = true;
123 m_replicationConfiguration = std::forward<ReplicationConfigurationT>(value);
124 }
125 template <typename ReplicationConfigurationT = ReplicationConfiguration>
126 PutBucketReplicationRequest& WithReplicationConfiguration(ReplicationConfigurationT&& value) {
127 SetReplicationConfiguration(std::forward<ReplicationConfigurationT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::String& GetToken() const { return m_token; }
137 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
138 template <typename TokenT = Aws::String>
139 void SetToken(TokenT&& value) {
140 m_tokenHasBeenSet = true;
141 m_token = std::forward<TokenT>(value);
142 }
143 template <typename TokenT = Aws::String>
145 SetToken(std::forward<TokenT>(value));
146 return *this;
147 }
149
151
156 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
157 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
158 template <typename ExpectedBucketOwnerT = Aws::String>
159 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
160 m_expectedBucketOwnerHasBeenSet = true;
161 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
162 }
163 template <typename ExpectedBucketOwnerT = Aws::String>
165 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
166 return *this;
167 }
169
171
172 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
173 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
174 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
175 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
176 m_customizedAccessLogTagHasBeenSet = true;
177 m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value);
178 }
179 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
180 PutBucketReplicationRequest& WithCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
181 SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value));
182 return *this;
183 }
184 template <typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
185 PutBucketReplicationRequest& AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT&& key, CustomizedAccessLogTagValueT&& value) {
186 m_customizedAccessLogTagHasBeenSet = true;
187 m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
188 return *this;
189 }
191 private:
192 Aws::String m_bucket;
193 bool m_bucketHasBeenSet = false;
194
195 Aws::String m_contentMD5;
196 bool m_contentMD5HasBeenSet = false;
197
199 bool m_checksumAlgorithmHasBeenSet = false;
200
201 ReplicationConfiguration m_replicationConfiguration;
202 bool m_replicationConfigurationHasBeenSet = false;
203
204 Aws::String m_token;
205 bool m_tokenHasBeenSet = false;
206
207 Aws::String m_expectedBucketOwner;
208 bool m_expectedBucketOwnerHasBeenSet = false;
209
210 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
211 bool m_customizedAccessLogTagHasBeenSet = false;
212};
213
214} // namespace Model
215} // namespace S3Crt
216} // 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 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