AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutBucketReplicationRequest.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/S3Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3/model/ChecksumAlgorithm.h>
11#include <aws/s3/model/ReplicationConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Http
18{
19 class URI;
20} //namespace Http
21namespace S3
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_S3_API PutBucketReplicationRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "PutBucketReplication"; }
38
39 AWS_S3_API Aws::String SerializePayload() const override;
40
41 AWS_S3_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
44
45 AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override;
46 AWS_S3_API Aws::String GetChecksumAlgorithmName() const override;
47 inline bool RequestChecksumRequired() const override { return true; };
48
52 AWS_S3_API EndpointParameters GetEndpointContextParams() const override;
53
55
58 inline const Aws::String& GetBucket() const { return m_bucket; }
59 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
60 template<typename BucketT = Aws::String>
61 void SetBucket(BucketT&& value) { m_bucketHasBeenSet = true; m_bucket = std::forward<BucketT>(value); }
62 template<typename BucketT = Aws::String>
63 PutBucketReplicationRequest& WithBucket(BucketT&& value) { SetBucket(std::forward<BucketT>(value)); return *this;}
65
67
75 inline const Aws::String& GetContentMD5() const { return m_contentMD5; }
76 inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
77 template<typename ContentMD5T = Aws::String>
78 void SetContentMD5(ContentMD5T&& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = std::forward<ContentMD5T>(value); }
79 template<typename ContentMD5T = Aws::String>
80 PutBucketReplicationRequest& WithContentMD5(ContentMD5T&& value) { SetContentMD5(std::forward<ContentMD5T>(value)); return *this;}
82
84
96 inline ChecksumAlgorithm GetChecksumAlgorithm() const { return m_checksumAlgorithm; }
97 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
98 inline void SetChecksumAlgorithm(ChecksumAlgorithm value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
101
103
104 inline const ReplicationConfiguration& GetReplicationConfiguration() const { return m_replicationConfiguration; }
105 inline bool ReplicationConfigurationHasBeenSet() const { return m_replicationConfigurationHasBeenSet; }
106 template<typename ReplicationConfigurationT = ReplicationConfiguration>
107 void SetReplicationConfiguration(ReplicationConfigurationT&& value) { m_replicationConfigurationHasBeenSet = true; m_replicationConfiguration = std::forward<ReplicationConfigurationT>(value); }
108 template<typename ReplicationConfigurationT = ReplicationConfiguration>
109 PutBucketReplicationRequest& WithReplicationConfiguration(ReplicationConfigurationT&& value) { SetReplicationConfiguration(std::forward<ReplicationConfigurationT>(value)); return *this;}
111
113
116 inline const Aws::String& GetToken() const { return m_token; }
117 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
118 template<typename TokenT = Aws::String>
119 void SetToken(TokenT&& value) { m_tokenHasBeenSet = true; m_token = std::forward<TokenT>(value); }
120 template<typename TokenT = Aws::String>
121 PutBucketReplicationRequest& WithToken(TokenT&& value) { SetToken(std::forward<TokenT>(value)); return *this;}
123
125
130 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
131 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
132 template<typename ExpectedBucketOwnerT = Aws::String>
133 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value); }
134 template<typename ExpectedBucketOwnerT = Aws::String>
135 PutBucketReplicationRequest& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) { SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value)); return *this;}
137
139
140 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
141 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
142 template<typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
143 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value); }
144 template<typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
145 PutBucketReplicationRequest& WithCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) { SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value)); return *this;}
146 template<typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
147 PutBucketReplicationRequest& AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT&& key, CustomizedAccessLogTagValueT&& value) {
148 m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value)); return *this;
149 }
151 private:
152
153 Aws::String m_bucket;
154 bool m_bucketHasBeenSet = false;
155
156 Aws::String m_contentMD5;
157 bool m_contentMD5HasBeenSet = false;
158
160 bool m_checksumAlgorithmHasBeenSet = false;
161
162 ReplicationConfiguration m_replicationConfiguration;
163 bool m_replicationConfigurationHasBeenSet = false;
164
165 Aws::String m_token;
166 bool m_tokenHasBeenSet = false;
167
168 Aws::String m_expectedBucketOwner;
169 bool m_expectedBucketOwnerHasBeenSet = false;
170
171 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
172 bool m_customizedAccessLogTagHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace S3
177} // namespace Aws
AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
PutBucketReplicationRequest & WithBucket(BucketT &&value)
PutBucketReplicationRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
PutBucketReplicationRequest & WithChecksumAlgorithm(ChecksumAlgorithm value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
PutBucketReplicationRequest & WithReplicationConfiguration(ReplicationConfigurationT &&value)
PutBucketReplicationRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
void SetReplicationConfiguration(ReplicationConfigurationT &&value)
const ReplicationConfiguration & GetReplicationConfiguration() const
AWS_S3_API Aws::String SerializePayload() const override
PutBucketReplicationRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
AWS_S3_API PutBucketReplicationRequest()=default
AWS_S3_API Aws::String GetChecksumAlgorithmName() const override
PutBucketReplicationRequest & WithToken(TokenT &&value)
void SetExpectedBucketOwner(ExpectedBucketOwnerT &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
void SetCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
PutBucketReplicationRequest & WithContentMD5(ContentMD5T &&value)
Aws::Endpoint::EndpointParameters EndpointParameters
Definition S3Request.h:22
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