AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PutBucketReplicationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3control/S3ControlRequest.h>
9#include <aws/s3control/S3Control_EXPORTS.h>
10#include <aws/s3control/model/ReplicationConfiguration.h>
11
12#include <utility>
13
14namespace Aws {
15namespace S3Control {
16namespace Model {
17
21 public:
22 AWS_S3CONTROL_API PutBucketReplicationRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "PutBucketReplication"; }
29
30 AWS_S3CONTROL_API Aws::String SerializePayload() const override;
31
33
34 AWS_S3CONTROL_API inline bool ShouldComputeContentMd5() const override { return true; }
35
39 AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override;
40
42
45 inline const Aws::String& GetAccountId() const { return m_accountId; }
46 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
47 template <typename AccountIdT = Aws::String>
48 void SetAccountId(AccountIdT&& value) {
49 m_accountIdHasBeenSet = true;
50 m_accountId = std::forward<AccountIdT>(value);
51 }
52 template <typename AccountIdT = Aws::String>
54 SetAccountId(std::forward<AccountIdT>(value));
55 return *this;
56 }
58
60
73 inline const Aws::String& GetBucket() const { return m_bucket; }
74 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
75 template <typename BucketT = Aws::String>
76 void SetBucket(BucketT&& value) {
77 m_bucketHasBeenSet = true;
78 m_bucket = std::forward<BucketT>(value);
79 }
80 template <typename BucketT = Aws::String>
82 SetBucket(std::forward<BucketT>(value));
83 return *this;
84 }
86
88
91 inline const ReplicationConfiguration& GetReplicationConfiguration() const { return m_replicationConfiguration; }
92 inline bool ReplicationConfigurationHasBeenSet() const { return m_replicationConfigurationHasBeenSet; }
93 template <typename ReplicationConfigurationT = ReplicationConfiguration>
94 void SetReplicationConfiguration(ReplicationConfigurationT&& value) {
95 m_replicationConfigurationHasBeenSet = true;
96 m_replicationConfiguration = std::forward<ReplicationConfigurationT>(value);
97 }
98 template <typename ReplicationConfigurationT = ReplicationConfiguration>
99 PutBucketReplicationRequest& WithReplicationConfiguration(ReplicationConfigurationT&& value) {
100 SetReplicationConfiguration(std::forward<ReplicationConfigurationT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_accountId;
106
107 Aws::String m_bucket;
108
109 ReplicationConfiguration m_replicationConfiguration;
110 bool m_accountIdHasBeenSet = false;
111 bool m_bucketHasBeenSet = false;
112 bool m_replicationConfigurationHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace S3Control
117} // namespace Aws
AWS_S3CONTROL_API bool ShouldComputeContentMd5() const override
AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override
PutBucketReplicationRequest & WithAccountId(AccountIdT &&value)
AWS_S3CONTROL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const ReplicationConfiguration & GetReplicationConfiguration() const
AWS_S3CONTROL_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
PutBucketReplicationRequest & WithBucket(BucketT &&value)
PutBucketReplicationRequest & WithReplicationConfiguration(ReplicationConfigurationT &&value)
AWS_S3CONTROL_API PutBucketReplicationRequest()=default
void SetReplicationConfiguration(ReplicationConfigurationT &&value)
Aws::Endpoint::EndpointParameters EndpointParameters
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String