AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
PipeSourceSelfManagedKafkaParameters.h
1
6#pragma once
7#include <aws/pipes/Pipes_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pipes/model/SelfManagedKafkaStartPosition.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/pipes/model/SelfManagedKafkaAccessConfigurationCredentials.h>
12#include <aws/pipes/model/SelfManagedKafkaAccessConfigurationVpc.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Pipes
26{
27namespace Model
28{
29
45 {
46 public:
47 AWS_PIPES_API PipeSourceSelfManagedKafkaParameters() = default;
50 AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const;
51
52
54
57 inline const Aws::String& GetTopicName() const { return m_topicName; }
58 inline bool TopicNameHasBeenSet() const { return m_topicNameHasBeenSet; }
59 template<typename TopicNameT = Aws::String>
60 void SetTopicName(TopicNameT&& value) { m_topicNameHasBeenSet = true; m_topicName = std::forward<TopicNameT>(value); }
61 template<typename TopicNameT = Aws::String>
62 PipeSourceSelfManagedKafkaParameters& WithTopicName(TopicNameT&& value) { SetTopicName(std::forward<TopicNameT>(value)); return *this;}
64
66
69 inline SelfManagedKafkaStartPosition GetStartingPosition() const { return m_startingPosition; }
70 inline bool StartingPositionHasBeenSet() const { return m_startingPositionHasBeenSet; }
71 inline void SetStartingPosition(SelfManagedKafkaStartPosition value) { m_startingPositionHasBeenSet = true; m_startingPosition = value; }
74
76
79 inline const Aws::Vector<Aws::String>& GetAdditionalBootstrapServers() const { return m_additionalBootstrapServers; }
80 inline bool AdditionalBootstrapServersHasBeenSet() const { return m_additionalBootstrapServersHasBeenSet; }
81 template<typename AdditionalBootstrapServersT = Aws::Vector<Aws::String>>
82 void SetAdditionalBootstrapServers(AdditionalBootstrapServersT&& value) { m_additionalBootstrapServersHasBeenSet = true; m_additionalBootstrapServers = std::forward<AdditionalBootstrapServersT>(value); }
83 template<typename AdditionalBootstrapServersT = Aws::Vector<Aws::String>>
84 PipeSourceSelfManagedKafkaParameters& WithAdditionalBootstrapServers(AdditionalBootstrapServersT&& value) { SetAdditionalBootstrapServers(std::forward<AdditionalBootstrapServersT>(value)); return *this;}
85 template<typename AdditionalBootstrapServersT = Aws::String>
86 PipeSourceSelfManagedKafkaParameters& AddAdditionalBootstrapServers(AdditionalBootstrapServersT&& value) { m_additionalBootstrapServersHasBeenSet = true; m_additionalBootstrapServers.emplace_back(std::forward<AdditionalBootstrapServersT>(value)); return *this; }
88
90
93 inline int GetBatchSize() const { return m_batchSize; }
94 inline bool BatchSizeHasBeenSet() const { return m_batchSizeHasBeenSet; }
95 inline void SetBatchSize(int value) { m_batchSizeHasBeenSet = true; m_batchSize = value; }
96 inline PipeSourceSelfManagedKafkaParameters& WithBatchSize(int value) { SetBatchSize(value); return *this;}
98
100
103 inline int GetMaximumBatchingWindowInSeconds() const { return m_maximumBatchingWindowInSeconds; }
104 inline bool MaximumBatchingWindowInSecondsHasBeenSet() const { return m_maximumBatchingWindowInSecondsHasBeenSet; }
105 inline void SetMaximumBatchingWindowInSeconds(int value) { m_maximumBatchingWindowInSecondsHasBeenSet = true; m_maximumBatchingWindowInSeconds = value; }
108
110
113 inline const Aws::String& GetConsumerGroupID() const { return m_consumerGroupID; }
114 inline bool ConsumerGroupIDHasBeenSet() const { return m_consumerGroupIDHasBeenSet; }
115 template<typename ConsumerGroupIDT = Aws::String>
116 void SetConsumerGroupID(ConsumerGroupIDT&& value) { m_consumerGroupIDHasBeenSet = true; m_consumerGroupID = std::forward<ConsumerGroupIDT>(value); }
117 template<typename ConsumerGroupIDT = Aws::String>
118 PipeSourceSelfManagedKafkaParameters& WithConsumerGroupID(ConsumerGroupIDT&& value) { SetConsumerGroupID(std::forward<ConsumerGroupIDT>(value)); return *this;}
120
122
125 inline const SelfManagedKafkaAccessConfigurationCredentials& GetCredentials() const { return m_credentials; }
126 inline bool CredentialsHasBeenSet() const { return m_credentialsHasBeenSet; }
127 template<typename CredentialsT = SelfManagedKafkaAccessConfigurationCredentials>
128 void SetCredentials(CredentialsT&& value) { m_credentialsHasBeenSet = true; m_credentials = std::forward<CredentialsT>(value); }
129 template<typename CredentialsT = SelfManagedKafkaAccessConfigurationCredentials>
130 PipeSourceSelfManagedKafkaParameters& WithCredentials(CredentialsT&& value) { SetCredentials(std::forward<CredentialsT>(value)); return *this;}
132
134
137 inline const Aws::String& GetServerRootCaCertificate() const { return m_serverRootCaCertificate; }
138 inline bool ServerRootCaCertificateHasBeenSet() const { return m_serverRootCaCertificateHasBeenSet; }
139 template<typename ServerRootCaCertificateT = Aws::String>
140 void SetServerRootCaCertificate(ServerRootCaCertificateT&& value) { m_serverRootCaCertificateHasBeenSet = true; m_serverRootCaCertificate = std::forward<ServerRootCaCertificateT>(value); }
141 template<typename ServerRootCaCertificateT = Aws::String>
142 PipeSourceSelfManagedKafkaParameters& WithServerRootCaCertificate(ServerRootCaCertificateT&& value) { SetServerRootCaCertificate(std::forward<ServerRootCaCertificateT>(value)); return *this;}
144
146
150 inline const SelfManagedKafkaAccessConfigurationVpc& GetVpc() const { return m_vpc; }
151 inline bool VpcHasBeenSet() const { return m_vpcHasBeenSet; }
152 template<typename VpcT = SelfManagedKafkaAccessConfigurationVpc>
153 void SetVpc(VpcT&& value) { m_vpcHasBeenSet = true; m_vpc = std::forward<VpcT>(value); }
154 template<typename VpcT = SelfManagedKafkaAccessConfigurationVpc>
155 PipeSourceSelfManagedKafkaParameters& WithVpc(VpcT&& value) { SetVpc(std::forward<VpcT>(value)); return *this;}
157 private:
158
159 Aws::String m_topicName;
160 bool m_topicNameHasBeenSet = false;
161
163 bool m_startingPositionHasBeenSet = false;
164
165 Aws::Vector<Aws::String> m_additionalBootstrapServers;
166 bool m_additionalBootstrapServersHasBeenSet = false;
167
168 int m_batchSize{0};
169 bool m_batchSizeHasBeenSet = false;
170
171 int m_maximumBatchingWindowInSeconds{0};
172 bool m_maximumBatchingWindowInSecondsHasBeenSet = false;
173
174 Aws::String m_consumerGroupID;
175 bool m_consumerGroupIDHasBeenSet = false;
176
177 SelfManagedKafkaAccessConfigurationCredentials m_credentials;
178 bool m_credentialsHasBeenSet = false;
179
180 Aws::String m_serverRootCaCertificate;
181 bool m_serverRootCaCertificateHasBeenSet = false;
182
183 SelfManagedKafkaAccessConfigurationVpc m_vpc;
184 bool m_vpcHasBeenSet = false;
185 };
186
187} // namespace Model
188} // namespace Pipes
189} // namespace Aws
PipeSourceSelfManagedKafkaParameters & WithTopicName(TopicNameT &&value)
PipeSourceSelfManagedKafkaParameters & AddAdditionalBootstrapServers(AdditionalBootstrapServersT &&value)
PipeSourceSelfManagedKafkaParameters & WithStartingPosition(SelfManagedKafkaStartPosition value)
AWS_PIPES_API PipeSourceSelfManagedKafkaParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
PipeSourceSelfManagedKafkaParameters & WithConsumerGroupID(ConsumerGroupIDT &&value)
PipeSourceSelfManagedKafkaParameters & WithCredentials(CredentialsT &&value)
PipeSourceSelfManagedKafkaParameters & WithMaximumBatchingWindowInSeconds(int value)
PipeSourceSelfManagedKafkaParameters & WithServerRootCaCertificate(ServerRootCaCertificateT &&value)
const SelfManagedKafkaAccessConfigurationVpc & GetVpc() const
PipeSourceSelfManagedKafkaParameters & WithAdditionalBootstrapServers(AdditionalBootstrapServersT &&value)
AWS_PIPES_API PipeSourceSelfManagedKafkaParameters(Aws::Utils::Json::JsonView jsonValue)
PipeSourceSelfManagedKafkaParameters & WithVpc(VpcT &&value)
PipeSourceSelfManagedKafkaParameters & WithBatchSize(int value)
AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const
const SelfManagedKafkaAccessConfigurationCredentials & GetCredentials() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue