AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateReplicationInfoRequest.h
1
6#pragma once
7#include <aws/kafka/Kafka_EXPORTS.h>
8#include <aws/kafka/KafkaRequest.h>
9#include <aws/kafka/model/ConsumerGroupReplicationUpdate.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/kafka/model/TopicReplicationUpdate.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Kafka
17{
18namespace Model
19{
20
28 {
29 public:
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdateReplicationInfo"; }
37
38 AWS_KAFKA_API Aws::String SerializePayload() const override;
39
40
42
45 inline const ConsumerGroupReplicationUpdate& GetConsumerGroupReplication() const{ return m_consumerGroupReplication; }
46 inline bool ConsumerGroupReplicationHasBeenSet() const { return m_consumerGroupReplicationHasBeenSet; }
47 inline void SetConsumerGroupReplication(const ConsumerGroupReplicationUpdate& value) { m_consumerGroupReplicationHasBeenSet = true; m_consumerGroupReplication = value; }
48 inline void SetConsumerGroupReplication(ConsumerGroupReplicationUpdate&& value) { m_consumerGroupReplicationHasBeenSet = true; m_consumerGroupReplication = std::move(value); }
52
54
57 inline const Aws::String& GetCurrentVersion() const{ return m_currentVersion; }
58 inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; }
59 inline void SetCurrentVersion(const Aws::String& value) { m_currentVersionHasBeenSet = true; m_currentVersion = value; }
60 inline void SetCurrentVersion(Aws::String&& value) { m_currentVersionHasBeenSet = true; m_currentVersion = std::move(value); }
61 inline void SetCurrentVersion(const char* value) { m_currentVersionHasBeenSet = true; m_currentVersion.assign(value); }
63 inline UpdateReplicationInfoRequest& WithCurrentVersion(Aws::String&& value) { SetCurrentVersion(std::move(value)); return *this;}
64 inline UpdateReplicationInfoRequest& WithCurrentVersion(const char* value) { SetCurrentVersion(value); return *this;}
66
68
71 inline const Aws::String& GetReplicatorArn() const{ return m_replicatorArn; }
72 inline bool ReplicatorArnHasBeenSet() const { return m_replicatorArnHasBeenSet; }
73 inline void SetReplicatorArn(const Aws::String& value) { m_replicatorArnHasBeenSet = true; m_replicatorArn = value; }
74 inline void SetReplicatorArn(Aws::String&& value) { m_replicatorArnHasBeenSet = true; m_replicatorArn = std::move(value); }
75 inline void SetReplicatorArn(const char* value) { m_replicatorArnHasBeenSet = true; m_replicatorArn.assign(value); }
76 inline UpdateReplicationInfoRequest& WithReplicatorArn(const Aws::String& value) { SetReplicatorArn(value); return *this;}
77 inline UpdateReplicationInfoRequest& WithReplicatorArn(Aws::String&& value) { SetReplicatorArn(std::move(value)); return *this;}
78 inline UpdateReplicationInfoRequest& WithReplicatorArn(const char* value) { SetReplicatorArn(value); return *this;}
80
82
85 inline const Aws::String& GetSourceKafkaClusterArn() const{ return m_sourceKafkaClusterArn; }
86 inline bool SourceKafkaClusterArnHasBeenSet() const { return m_sourceKafkaClusterArnHasBeenSet; }
87 inline void SetSourceKafkaClusterArn(const Aws::String& value) { m_sourceKafkaClusterArnHasBeenSet = true; m_sourceKafkaClusterArn = value; }
88 inline void SetSourceKafkaClusterArn(Aws::String&& value) { m_sourceKafkaClusterArnHasBeenSet = true; m_sourceKafkaClusterArn = std::move(value); }
89 inline void SetSourceKafkaClusterArn(const char* value) { m_sourceKafkaClusterArnHasBeenSet = true; m_sourceKafkaClusterArn.assign(value); }
92 inline UpdateReplicationInfoRequest& WithSourceKafkaClusterArn(const char* value) { SetSourceKafkaClusterArn(value); return *this;}
94
96
99 inline const Aws::String& GetTargetKafkaClusterArn() const{ return m_targetKafkaClusterArn; }
100 inline bool TargetKafkaClusterArnHasBeenSet() const { return m_targetKafkaClusterArnHasBeenSet; }
101 inline void SetTargetKafkaClusterArn(const Aws::String& value) { m_targetKafkaClusterArnHasBeenSet = true; m_targetKafkaClusterArn = value; }
102 inline void SetTargetKafkaClusterArn(Aws::String&& value) { m_targetKafkaClusterArnHasBeenSet = true; m_targetKafkaClusterArn = std::move(value); }
103 inline void SetTargetKafkaClusterArn(const char* value) { m_targetKafkaClusterArnHasBeenSet = true; m_targetKafkaClusterArn.assign(value); }
106 inline UpdateReplicationInfoRequest& WithTargetKafkaClusterArn(const char* value) { SetTargetKafkaClusterArn(value); return *this;}
108
110
113 inline const TopicReplicationUpdate& GetTopicReplication() const{ return m_topicReplication; }
114 inline bool TopicReplicationHasBeenSet() const { return m_topicReplicationHasBeenSet; }
115 inline void SetTopicReplication(const TopicReplicationUpdate& value) { m_topicReplicationHasBeenSet = true; m_topicReplication = value; }
116 inline void SetTopicReplication(TopicReplicationUpdate&& value) { m_topicReplicationHasBeenSet = true; m_topicReplication = std::move(value); }
120 private:
121
122 ConsumerGroupReplicationUpdate m_consumerGroupReplication;
123 bool m_consumerGroupReplicationHasBeenSet = false;
124
125 Aws::String m_currentVersion;
126 bool m_currentVersionHasBeenSet = false;
127
128 Aws::String m_replicatorArn;
129 bool m_replicatorArnHasBeenSet = false;
130
131 Aws::String m_sourceKafkaClusterArn;
132 bool m_sourceKafkaClusterArnHasBeenSet = false;
133
134 Aws::String m_targetKafkaClusterArn;
135 bool m_targetKafkaClusterArnHasBeenSet = false;
136
137 TopicReplicationUpdate m_topicReplication;
138 bool m_topicReplicationHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace Kafka
143} // namespace Aws
const TopicReplicationUpdate & GetTopicReplication() const
UpdateReplicationInfoRequest & WithTargetKafkaClusterArn(Aws::String &&value)
UpdateReplicationInfoRequest & WithSourceKafkaClusterArn(Aws::String &&value)
UpdateReplicationInfoRequest & WithTopicReplication(const TopicReplicationUpdate &value)
UpdateReplicationInfoRequest & WithTopicReplication(TopicReplicationUpdate &&value)
void SetConsumerGroupReplication(const ConsumerGroupReplicationUpdate &value)
UpdateReplicationInfoRequest & WithSourceKafkaClusterArn(const Aws::String &value)
UpdateReplicationInfoRequest & WithSourceKafkaClusterArn(const char *value)
UpdateReplicationInfoRequest & WithCurrentVersion(const char *value)
UpdateReplicationInfoRequest & WithCurrentVersion(Aws::String &&value)
const ConsumerGroupReplicationUpdate & GetConsumerGroupReplication() const
UpdateReplicationInfoRequest & WithReplicatorArn(const char *value)
UpdateReplicationInfoRequest & WithTargetKafkaClusterArn(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
UpdateReplicationInfoRequest & WithCurrentVersion(const Aws::String &value)
UpdateReplicationInfoRequest & WithConsumerGroupReplication(const ConsumerGroupReplicationUpdate &value)
UpdateReplicationInfoRequest & WithReplicatorArn(const Aws::String &value)
void SetTopicReplication(const TopicReplicationUpdate &value)
UpdateReplicationInfoRequest & WithTargetKafkaClusterArn(const char *value)
UpdateReplicationInfoRequest & WithConsumerGroupReplication(ConsumerGroupReplicationUpdate &&value)
void SetConsumerGroupReplication(ConsumerGroupReplicationUpdate &&value)
AWS_KAFKA_API Aws::String SerializePayload() const override
UpdateReplicationInfoRequest & WithReplicatorArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String