AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutBucketReplicationRequest.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/s3control/S3ControlRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3control/model/ReplicationConfiguration.h>
11#include <utility>
12
13namespace Aws
14{
15namespace S3Control
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_S3CONTROL_API PutBucketReplicationRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "PutBucketReplication"; }
32
33 AWS_S3CONTROL_API Aws::String SerializePayload() const override;
34
36
37 AWS_S3CONTROL_API inline bool ShouldComputeContentMd5() const override { return true; }
38
42 AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override;
43
45
48 inline const Aws::String& GetAccountId() const{ return m_accountId; }
49 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
50 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
51 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
52 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
53 inline PutBucketReplicationRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
54 inline PutBucketReplicationRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
55 inline PutBucketReplicationRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
57
59
72 inline const Aws::String& GetBucket() const{ return m_bucket; }
73 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
74 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
75 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
76 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
77 inline PutBucketReplicationRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
78 inline PutBucketReplicationRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
79 inline PutBucketReplicationRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
81
83
86 inline const ReplicationConfiguration& GetReplicationConfiguration() const{ return m_replicationConfiguration; }
87 inline bool ReplicationConfigurationHasBeenSet() const { return m_replicationConfigurationHasBeenSet; }
88 inline void SetReplicationConfiguration(const ReplicationConfiguration& value) { m_replicationConfigurationHasBeenSet = true; m_replicationConfiguration = value; }
89 inline void SetReplicationConfiguration(ReplicationConfiguration&& value) { m_replicationConfigurationHasBeenSet = true; m_replicationConfiguration = std::move(value); }
93 private:
94
95 Aws::String m_accountId;
96 bool m_accountIdHasBeenSet = false;
97
98 Aws::String m_bucket;
99 bool m_bucketHasBeenSet = false;
100
101 ReplicationConfiguration m_replicationConfiguration;
102 bool m_replicationConfigurationHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace S3Control
107} // namespace Aws
AWS_S3CONTROL_API bool ShouldComputeContentMd5() const override
AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override
PutBucketReplicationRequest & WithBucket(Aws::String &&value)
PutBucketReplicationRequest & WithAccountId(Aws::String &&value)
AWS_S3CONTROL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetReplicationConfiguration(ReplicationConfiguration &&value)
const ReplicationConfiguration & GetReplicationConfiguration() const
void SetReplicationConfiguration(const ReplicationConfiguration &value)
AWS_S3CONTROL_API Aws::String SerializePayload() const override
PutBucketReplicationRequest & WithAccountId(const Aws::String &value)
PutBucketReplicationRequest & WithAccountId(const char *value)
virtual const char * GetServiceRequestName() const override
PutBucketReplicationRequest & WithReplicationConfiguration(ReplicationConfiguration &&value)
PutBucketReplicationRequest & WithBucket(const Aws::String &value)
PutBucketReplicationRequest & WithBucket(const char *value)
PutBucketReplicationRequest & WithReplicationConfiguration(const ReplicationConfiguration &value)
Aws::Endpoint::EndpointParameters EndpointParameters
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String