AWS SDK for C++

AWS SDK for C++ Version 1.11.938

Loading...
Searching...
No Matches
StartTopicReassignmentRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/kafka/KafkaRequest.h>
10#include <aws/kafka/Kafka_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Kafka {
16namespace Model {
17
25 public:
26 AWS_KAFKA_API StartTopicReassignmentRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "StartTopicReassignment"; }
33
34 AWS_KAFKA_API Aws::String SerializePayload() const override;
35
37
43 inline const Aws::String& GetClientToken() const { return m_clientToken; }
44 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
45 template <typename ClientTokenT = Aws::String>
46 void SetClientToken(ClientTokenT&& value) {
47 m_clientTokenHasBeenSet = true;
48 m_clientToken = std::forward<ClientTokenT>(value);
49 }
50 template <typename ClientTokenT = Aws::String>
52 SetClientToken(std::forward<ClientTokenT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
62 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
63 template <typename ClusterArnT = Aws::String>
64 void SetClusterArn(ClusterArnT&& value) {
65 m_clusterArnHasBeenSet = true;
66 m_clusterArn = std::forward<ClusterArnT>(value);
67 }
68 template <typename ClusterArnT = Aws::String>
70 SetClusterArn(std::forward<ClusterArnT>(value));
71 return *this;
72 }
74
76
82 inline const Aws::String& GetTargetInstanceType() const { return m_targetInstanceType; }
83 inline bool TargetInstanceTypeHasBeenSet() const { return m_targetInstanceTypeHasBeenSet; }
84 template <typename TargetInstanceTypeT = Aws::String>
85 void SetTargetInstanceType(TargetInstanceTypeT&& value) {
86 m_targetInstanceTypeHasBeenSet = true;
87 m_targetInstanceType = std::forward<TargetInstanceTypeT>(value);
88 }
89 template <typename TargetInstanceTypeT = Aws::String>
91 SetTargetInstanceType(std::forward<TargetInstanceTypeT>(value));
92 return *this;
93 }
95
97
101 inline const Aws::Vector<Aws::String>& GetTopicsToExclude() const { return m_topicsToExclude; }
102 inline bool TopicsToExcludeHasBeenSet() const { return m_topicsToExcludeHasBeenSet; }
103 template <typename TopicsToExcludeT = Aws::Vector<Aws::String>>
104 void SetTopicsToExclude(TopicsToExcludeT&& value) {
105 m_topicsToExcludeHasBeenSet = true;
106 m_topicsToExclude = std::forward<TopicsToExcludeT>(value);
107 }
108 template <typename TopicsToExcludeT = Aws::Vector<Aws::String>>
110 SetTopicsToExclude(std::forward<TopicsToExcludeT>(value));
111 return *this;
112 }
113 template <typename TopicsToExcludeT = Aws::String>
115 m_topicsToExcludeHasBeenSet = true;
116 m_topicsToExclude.emplace_back(std::forward<TopicsToExcludeT>(value));
117 return *this;
118 }
120
122
126 inline const Aws::Vector<Aws::String>& GetTopicsToInclude() const { return m_topicsToInclude; }
127 inline bool TopicsToIncludeHasBeenSet() const { return m_topicsToIncludeHasBeenSet; }
128 template <typename TopicsToIncludeT = Aws::Vector<Aws::String>>
129 void SetTopicsToInclude(TopicsToIncludeT&& value) {
130 m_topicsToIncludeHasBeenSet = true;
131 m_topicsToInclude = std::forward<TopicsToIncludeT>(value);
132 }
133 template <typename TopicsToIncludeT = Aws::Vector<Aws::String>>
135 SetTopicsToInclude(std::forward<TopicsToIncludeT>(value));
136 return *this;
137 }
138 template <typename TopicsToIncludeT = Aws::String>
140 m_topicsToIncludeHasBeenSet = true;
141 m_topicsToInclude.emplace_back(std::forward<TopicsToIncludeT>(value));
142 return *this;
143 }
145 private:
146 Aws::String m_clientToken;
147
148 Aws::String m_clusterArn;
149
150 Aws::String m_targetInstanceType;
151
152 Aws::Vector<Aws::String> m_topicsToExclude;
153
154 Aws::Vector<Aws::String> m_topicsToInclude;
155 bool m_clientTokenHasBeenSet = false;
156 bool m_clusterArnHasBeenSet = false;
157 bool m_targetInstanceTypeHasBeenSet = false;
158 bool m_topicsToExcludeHasBeenSet = false;
159 bool m_topicsToIncludeHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace Kafka
164} // namespace Aws
StartTopicReassignmentRequest & WithClusterArn(ClusterArnT &&value)
StartTopicReassignmentRequest & AddTopicsToExclude(TopicsToExcludeT &&value)
virtual const char * GetServiceRequestName() const override
StartTopicReassignmentRequest & WithTopicsToExclude(TopicsToExcludeT &&value)
const Aws::Vector< Aws::String > & GetTopicsToInclude() const
AWS_KAFKA_API StartTopicReassignmentRequest()=default
AWS_KAFKA_API Aws::String SerializePayload() const override
StartTopicReassignmentRequest & AddTopicsToInclude(TopicsToIncludeT &&value)
StartTopicReassignmentRequest & WithTopicsToInclude(TopicsToIncludeT &&value)
StartTopicReassignmentRequest & WithTargetInstanceType(TargetInstanceTypeT &&value)
StartTopicReassignmentRequest & WithClientToken(ClientTokenT &&value)
const Aws::Vector< Aws::String > & GetTopicsToExclude() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector