AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateReplicatorRequest.h
1
6#pragma once
7#include <aws/kafka/Kafka_EXPORTS.h>
8#include <aws/kafka/KafkaRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/kafka/model/KafkaCluster.h>
13#include <aws/kafka/model/ReplicationInfo.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Kafka
19{
20namespace Model
21{
22
30 {
31 public:
32 AWS_KAFKA_API CreateReplicatorRequest();
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateReplicator"; }
39
40 AWS_KAFKA_API Aws::String SerializePayload() const override;
41
42
44
47 inline const Aws::String& GetDescription() const{ return m_description; }
48 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
49 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
50 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
51 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
52 inline CreateReplicatorRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
53 inline CreateReplicatorRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
54 inline CreateReplicatorRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
56
58
61 inline const Aws::Vector<KafkaCluster>& GetKafkaClusters() const{ return m_kafkaClusters; }
62 inline bool KafkaClustersHasBeenSet() const { return m_kafkaClustersHasBeenSet; }
63 inline void SetKafkaClusters(const Aws::Vector<KafkaCluster>& value) { m_kafkaClustersHasBeenSet = true; m_kafkaClusters = value; }
64 inline void SetKafkaClusters(Aws::Vector<KafkaCluster>&& value) { m_kafkaClustersHasBeenSet = true; m_kafkaClusters = std::move(value); }
66 inline CreateReplicatorRequest& WithKafkaClusters(Aws::Vector<KafkaCluster>&& value) { SetKafkaClusters(std::move(value)); return *this;}
67 inline CreateReplicatorRequest& AddKafkaClusters(const KafkaCluster& value) { m_kafkaClustersHasBeenSet = true; m_kafkaClusters.push_back(value); return *this; }
68 inline CreateReplicatorRequest& AddKafkaClusters(KafkaCluster&& value) { m_kafkaClustersHasBeenSet = true; m_kafkaClusters.push_back(std::move(value)); return *this; }
70
72
76 inline const Aws::Vector<ReplicationInfo>& GetReplicationInfoList() const{ return m_replicationInfoList; }
77 inline bool ReplicationInfoListHasBeenSet() const { return m_replicationInfoListHasBeenSet; }
78 inline void SetReplicationInfoList(const Aws::Vector<ReplicationInfo>& value) { m_replicationInfoListHasBeenSet = true; m_replicationInfoList = value; }
79 inline void SetReplicationInfoList(Aws::Vector<ReplicationInfo>&& value) { m_replicationInfoListHasBeenSet = true; m_replicationInfoList = std::move(value); }
82 inline CreateReplicatorRequest& AddReplicationInfoList(const ReplicationInfo& value) { m_replicationInfoListHasBeenSet = true; m_replicationInfoList.push_back(value); return *this; }
83 inline CreateReplicatorRequest& AddReplicationInfoList(ReplicationInfo&& value) { m_replicationInfoListHasBeenSet = true; m_replicationInfoList.push_back(std::move(value)); return *this; }
85
87
91 inline const Aws::String& GetReplicatorName() const{ return m_replicatorName; }
92 inline bool ReplicatorNameHasBeenSet() const { return m_replicatorNameHasBeenSet; }
93 inline void SetReplicatorName(const Aws::String& value) { m_replicatorNameHasBeenSet = true; m_replicatorName = value; }
94 inline void SetReplicatorName(Aws::String&& value) { m_replicatorNameHasBeenSet = true; m_replicatorName = std::move(value); }
95 inline void SetReplicatorName(const char* value) { m_replicatorNameHasBeenSet = true; m_replicatorName.assign(value); }
96 inline CreateReplicatorRequest& WithReplicatorName(const Aws::String& value) { SetReplicatorName(value); return *this;}
97 inline CreateReplicatorRequest& WithReplicatorName(Aws::String&& value) { SetReplicatorName(std::move(value)); return *this;}
98 inline CreateReplicatorRequest& WithReplicatorName(const char* value) { SetReplicatorName(value); return *this;}
100
102
106 inline const Aws::String& GetServiceExecutionRoleArn() const{ return m_serviceExecutionRoleArn; }
107 inline bool ServiceExecutionRoleArnHasBeenSet() const { return m_serviceExecutionRoleArnHasBeenSet; }
108 inline void SetServiceExecutionRoleArn(const Aws::String& value) { m_serviceExecutionRoleArnHasBeenSet = true; m_serviceExecutionRoleArn = value; }
109 inline void SetServiceExecutionRoleArn(Aws::String&& value) { m_serviceExecutionRoleArnHasBeenSet = true; m_serviceExecutionRoleArn = std::move(value); }
110 inline void SetServiceExecutionRoleArn(const char* value) { m_serviceExecutionRoleArnHasBeenSet = true; m_serviceExecutionRoleArn.assign(value); }
113 inline CreateReplicatorRequest& WithServiceExecutionRoleArn(const char* value) { SetServiceExecutionRoleArn(value); return *this;}
115
117
120 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
121 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
122 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
123 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
124 inline CreateReplicatorRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
125 inline CreateReplicatorRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
126 inline CreateReplicatorRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
127 inline CreateReplicatorRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
128 inline CreateReplicatorRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
129 inline CreateReplicatorRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
130 inline CreateReplicatorRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
131 inline CreateReplicatorRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
132 inline CreateReplicatorRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
134 private:
135
136 Aws::String m_description;
137 bool m_descriptionHasBeenSet = false;
138
139 Aws::Vector<KafkaCluster> m_kafkaClusters;
140 bool m_kafkaClustersHasBeenSet = false;
141
142 Aws::Vector<ReplicationInfo> m_replicationInfoList;
143 bool m_replicationInfoListHasBeenSet = false;
144
145 Aws::String m_replicatorName;
146 bool m_replicatorNameHasBeenSet = false;
147
148 Aws::String m_serviceExecutionRoleArn;
149 bool m_serviceExecutionRoleArnHasBeenSet = false;
150
152 bool m_tagsHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace Kafka
157} // namespace Aws
CreateReplicatorRequest & WithDescription(Aws::String &&value)
CreateReplicatorRequest & AddReplicationInfoList(const ReplicationInfo &value)
const Aws::Vector< KafkaCluster > & GetKafkaClusters() const
CreateReplicatorRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateReplicatorRequest & WithReplicatorName(Aws::String &&value)
void SetReplicationInfoList(const Aws::Vector< ReplicationInfo > &value)
CreateReplicatorRequest & AddTags(const char *key, Aws::String &&value)
CreateReplicatorRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateReplicatorRequest & WithDescription(const Aws::String &value)
void SetReplicationInfoList(Aws::Vector< ReplicationInfo > &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateReplicatorRequest & AddKafkaClusters(KafkaCluster &&value)
CreateReplicatorRequest & WithDescription(const char *value)
CreateReplicatorRequest & WithReplicatorName(const Aws::String &value)
CreateReplicatorRequest & WithReplicatorName(const char *value)
void SetKafkaClusters(const Aws::Vector< KafkaCluster > &value)
CreateReplicatorRequest & AddKafkaClusters(const KafkaCluster &value)
CreateReplicatorRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateReplicatorRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateReplicatorRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateReplicatorRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateReplicatorRequest & WithServiceExecutionRoleArn(const Aws::String &value)
CreateReplicatorRequest & AddTags(Aws::String &&key, const char *value)
CreateReplicatorRequest & WithKafkaClusters(Aws::Vector< KafkaCluster > &&value)
CreateReplicatorRequest & WithServiceExecutionRoleArn(const char *value)
CreateReplicatorRequest & AddTags(const char *key, const char *value)
const Aws::Vector< ReplicationInfo > & GetReplicationInfoList() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetServiceExecutionRoleArn(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
AWS_KAFKA_API Aws::String SerializePayload() const override
CreateReplicatorRequest & WithReplicationInfoList(Aws::Vector< ReplicationInfo > &&value)
void SetKafkaClusters(Aws::Vector< KafkaCluster > &&value)
CreateReplicatorRequest & WithKafkaClusters(const Aws::Vector< KafkaCluster > &value)
CreateReplicatorRequest & WithReplicationInfoList(const Aws::Vector< ReplicationInfo > &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateReplicatorRequest & WithServiceExecutionRoleArn(Aws::String &&value)
CreateReplicatorRequest & AddReplicationInfoList(ReplicationInfo &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector