AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
30 AWS_KAFKA_API UpdateReplicationInfoRequest() = default;
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 template<typename ConsumerGroupReplicationT = ConsumerGroupReplicationUpdate>
48 void SetConsumerGroupReplication(ConsumerGroupReplicationT&& value) { m_consumerGroupReplicationHasBeenSet = true; m_consumerGroupReplication = std::forward<ConsumerGroupReplicationT>(value); }
49 template<typename ConsumerGroupReplicationT = ConsumerGroupReplicationUpdate>
50 UpdateReplicationInfoRequest& WithConsumerGroupReplication(ConsumerGroupReplicationT&& value) { SetConsumerGroupReplication(std::forward<ConsumerGroupReplicationT>(value)); return *this;}
52
54
57 inline const Aws::String& GetCurrentVersion() const { return m_currentVersion; }
58 inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; }
59 template<typename CurrentVersionT = Aws::String>
60 void SetCurrentVersion(CurrentVersionT&& value) { m_currentVersionHasBeenSet = true; m_currentVersion = std::forward<CurrentVersionT>(value); }
61 template<typename CurrentVersionT = Aws::String>
62 UpdateReplicationInfoRequest& WithCurrentVersion(CurrentVersionT&& value) { SetCurrentVersion(std::forward<CurrentVersionT>(value)); return *this;}
64
66
69 inline const Aws::String& GetReplicatorArn() const { return m_replicatorArn; }
70 inline bool ReplicatorArnHasBeenSet() const { return m_replicatorArnHasBeenSet; }
71 template<typename ReplicatorArnT = Aws::String>
72 void SetReplicatorArn(ReplicatorArnT&& value) { m_replicatorArnHasBeenSet = true; m_replicatorArn = std::forward<ReplicatorArnT>(value); }
73 template<typename ReplicatorArnT = Aws::String>
74 UpdateReplicationInfoRequest& WithReplicatorArn(ReplicatorArnT&& value) { SetReplicatorArn(std::forward<ReplicatorArnT>(value)); return *this;}
76
78
81 inline const Aws::String& GetSourceKafkaClusterArn() const { return m_sourceKafkaClusterArn; }
82 inline bool SourceKafkaClusterArnHasBeenSet() const { return m_sourceKafkaClusterArnHasBeenSet; }
83 template<typename SourceKafkaClusterArnT = Aws::String>
84 void SetSourceKafkaClusterArn(SourceKafkaClusterArnT&& value) { m_sourceKafkaClusterArnHasBeenSet = true; m_sourceKafkaClusterArn = std::forward<SourceKafkaClusterArnT>(value); }
85 template<typename SourceKafkaClusterArnT = Aws::String>
86 UpdateReplicationInfoRequest& WithSourceKafkaClusterArn(SourceKafkaClusterArnT&& value) { SetSourceKafkaClusterArn(std::forward<SourceKafkaClusterArnT>(value)); return *this;}
88
90
93 inline const Aws::String& GetTargetKafkaClusterArn() const { return m_targetKafkaClusterArn; }
94 inline bool TargetKafkaClusterArnHasBeenSet() const { return m_targetKafkaClusterArnHasBeenSet; }
95 template<typename TargetKafkaClusterArnT = Aws::String>
96 void SetTargetKafkaClusterArn(TargetKafkaClusterArnT&& value) { m_targetKafkaClusterArnHasBeenSet = true; m_targetKafkaClusterArn = std::forward<TargetKafkaClusterArnT>(value); }
97 template<typename TargetKafkaClusterArnT = Aws::String>
98 UpdateReplicationInfoRequest& WithTargetKafkaClusterArn(TargetKafkaClusterArnT&& value) { SetTargetKafkaClusterArn(std::forward<TargetKafkaClusterArnT>(value)); return *this;}
100
102
105 inline const TopicReplicationUpdate& GetTopicReplication() const { return m_topicReplication; }
106 inline bool TopicReplicationHasBeenSet() const { return m_topicReplicationHasBeenSet; }
107 template<typename TopicReplicationT = TopicReplicationUpdate>
108 void SetTopicReplication(TopicReplicationT&& value) { m_topicReplicationHasBeenSet = true; m_topicReplication = std::forward<TopicReplicationT>(value); }
109 template<typename TopicReplicationT = TopicReplicationUpdate>
110 UpdateReplicationInfoRequest& WithTopicReplication(TopicReplicationT&& value) { SetTopicReplication(std::forward<TopicReplicationT>(value)); return *this;}
112 private:
113
114 ConsumerGroupReplicationUpdate m_consumerGroupReplication;
115 bool m_consumerGroupReplicationHasBeenSet = false;
116
117 Aws::String m_currentVersion;
118 bool m_currentVersionHasBeenSet = false;
119
120 Aws::String m_replicatorArn;
121 bool m_replicatorArnHasBeenSet = false;
122
123 Aws::String m_sourceKafkaClusterArn;
124 bool m_sourceKafkaClusterArnHasBeenSet = false;
125
126 Aws::String m_targetKafkaClusterArn;
127 bool m_targetKafkaClusterArnHasBeenSet = false;
128
129 TopicReplicationUpdate m_topicReplication;
130 bool m_topicReplicationHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace Kafka
135} // namespace Aws
UpdateReplicationInfoRequest & WithConsumerGroupReplication(ConsumerGroupReplicationT &&value)
const TopicReplicationUpdate & GetTopicReplication() const
void SetSourceKafkaClusterArn(SourceKafkaClusterArnT &&value)
UpdateReplicationInfoRequest & WithSourceKafkaClusterArn(SourceKafkaClusterArnT &&value)
UpdateReplicationInfoRequest & WithTopicReplication(TopicReplicationT &&value)
UpdateReplicationInfoRequest & WithCurrentVersion(CurrentVersionT &&value)
const ConsumerGroupReplicationUpdate & GetConsumerGroupReplication() const
UpdateReplicationInfoRequest & WithReplicatorArn(ReplicatorArnT &&value)
void SetConsumerGroupReplication(ConsumerGroupReplicationT &&value)
virtual const char * GetServiceRequestName() const override
AWS_KAFKA_API UpdateReplicationInfoRequest()=default
void SetTargetKafkaClusterArn(TargetKafkaClusterArnT &&value)
UpdateReplicationInfoRequest & WithTargetKafkaClusterArn(TargetKafkaClusterArnT &&value)
AWS_KAFKA_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String