@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PipeSourceSelfManagedKafkaParameters extends Object implements Serializable, Cloneable, StructuredPojo
The parameters for using a self-managed Apache Kafka stream as a source.
A self managed cluster refers to any Apache Kafka cluster not hosted by Amazon Web Services. This includes both clusters you manage yourself, as well as those hosted by a third-party provider, such as Confluent Cloud, CloudKarafka, or Redpanda. For more information, see Apache Kafka streams as a source in the Amazon EventBridge User Guide.
Constructor and Description |
---|
PipeSourceSelfManagedKafkaParameters() |
Modifier and Type | Method and Description |
---|---|
PipeSourceSelfManagedKafkaParameters |
clone() |
boolean |
equals(Object obj) |
List<String> |
getAdditionalBootstrapServers()
An array of server URLs.
|
Integer |
getBatchSize()
The maximum number of records to include in each batch.
|
String |
getConsumerGroupID()
The name of the destination queue to consume.
|
SelfManagedKafkaAccessConfigurationCredentials |
getCredentials()
The credentials needed to access the resource.
|
Integer |
getMaximumBatchingWindowInSeconds()
The maximum length of a time to wait for events.
|
String |
getServerRootCaCertificate()
The ARN of the Secrets Manager secret used for certification.
|
String |
getStartingPosition()
(Streams only) The position in a stream from which to start reading.
|
String |
getTopicName()
The name of the topic that the pipe will read from.
|
SelfManagedKafkaAccessConfigurationVpc |
getVpc()
This structure specifies the VPC subnets and security groups for the stream, and whether a public IP address is
to be used.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAdditionalBootstrapServers(Collection<String> additionalBootstrapServers)
An array of server URLs.
|
void |
setBatchSize(Integer batchSize)
The maximum number of records to include in each batch.
|
void |
setConsumerGroupID(String consumerGroupID)
The name of the destination queue to consume.
|
void |
setCredentials(SelfManagedKafkaAccessConfigurationCredentials credentials)
The credentials needed to access the resource.
|
void |
setMaximumBatchingWindowInSeconds(Integer maximumBatchingWindowInSeconds)
The maximum length of a time to wait for events.
|
void |
setServerRootCaCertificate(String serverRootCaCertificate)
The ARN of the Secrets Manager secret used for certification.
|
void |
setStartingPosition(String startingPosition)
(Streams only) The position in a stream from which to start reading.
|
void |
setTopicName(String topicName)
The name of the topic that the pipe will read from.
|
void |
setVpc(SelfManagedKafkaAccessConfigurationVpc vpc)
This structure specifies the VPC subnets and security groups for the stream, and whether a public IP address is
to be used.
|
String |
toString()
Returns a string representation of this object.
|
PipeSourceSelfManagedKafkaParameters |
withAdditionalBootstrapServers(Collection<String> additionalBootstrapServers)
An array of server URLs.
|
PipeSourceSelfManagedKafkaParameters |
withAdditionalBootstrapServers(String... additionalBootstrapServers)
An array of server URLs.
|
PipeSourceSelfManagedKafkaParameters |
withBatchSize(Integer batchSize)
The maximum number of records to include in each batch.
|
PipeSourceSelfManagedKafkaParameters |
withConsumerGroupID(String consumerGroupID)
The name of the destination queue to consume.
|
PipeSourceSelfManagedKafkaParameters |
withCredentials(SelfManagedKafkaAccessConfigurationCredentials credentials)
The credentials needed to access the resource.
|
PipeSourceSelfManagedKafkaParameters |
withMaximumBatchingWindowInSeconds(Integer maximumBatchingWindowInSeconds)
The maximum length of a time to wait for events.
|
PipeSourceSelfManagedKafkaParameters |
withServerRootCaCertificate(String serverRootCaCertificate)
The ARN of the Secrets Manager secret used for certification.
|
PipeSourceSelfManagedKafkaParameters |
withStartingPosition(SelfManagedKafkaStartPosition startingPosition)
(Streams only) The position in a stream from which to start reading.
|
PipeSourceSelfManagedKafkaParameters |
withStartingPosition(String startingPosition)
(Streams only) The position in a stream from which to start reading.
|
PipeSourceSelfManagedKafkaParameters |
withTopicName(String topicName)
The name of the topic that the pipe will read from.
|
PipeSourceSelfManagedKafkaParameters |
withVpc(SelfManagedKafkaAccessConfigurationVpc vpc)
This structure specifies the VPC subnets and security groups for the stream, and whether a public IP address is
to be used.
|
public PipeSourceSelfManagedKafkaParameters()
public void setTopicName(String topicName)
The name of the topic that the pipe will read from.
topicName
- The name of the topic that the pipe will read from.public String getTopicName()
The name of the topic that the pipe will read from.
public PipeSourceSelfManagedKafkaParameters withTopicName(String topicName)
The name of the topic that the pipe will read from.
topicName
- The name of the topic that the pipe will read from.public void setStartingPosition(String startingPosition)
(Streams only) The position in a stream from which to start reading.
startingPosition
- (Streams only) The position in a stream from which to start reading.SelfManagedKafkaStartPosition
public String getStartingPosition()
(Streams only) The position in a stream from which to start reading.
SelfManagedKafkaStartPosition
public PipeSourceSelfManagedKafkaParameters withStartingPosition(String startingPosition)
(Streams only) The position in a stream from which to start reading.
startingPosition
- (Streams only) The position in a stream from which to start reading.SelfManagedKafkaStartPosition
public PipeSourceSelfManagedKafkaParameters withStartingPosition(SelfManagedKafkaStartPosition startingPosition)
(Streams only) The position in a stream from which to start reading.
startingPosition
- (Streams only) The position in a stream from which to start reading.SelfManagedKafkaStartPosition
public List<String> getAdditionalBootstrapServers()
An array of server URLs.
public void setAdditionalBootstrapServers(Collection<String> additionalBootstrapServers)
An array of server URLs.
additionalBootstrapServers
- An array of server URLs.public PipeSourceSelfManagedKafkaParameters withAdditionalBootstrapServers(String... additionalBootstrapServers)
An array of server URLs.
NOTE: This method appends the values to the existing list (if any). Use
setAdditionalBootstrapServers(java.util.Collection)
or
withAdditionalBootstrapServers(java.util.Collection)
if you want to override the existing values.
additionalBootstrapServers
- An array of server URLs.public PipeSourceSelfManagedKafkaParameters withAdditionalBootstrapServers(Collection<String> additionalBootstrapServers)
An array of server URLs.
additionalBootstrapServers
- An array of server URLs.public void setBatchSize(Integer batchSize)
The maximum number of records to include in each batch.
batchSize
- The maximum number of records to include in each batch.public Integer getBatchSize()
The maximum number of records to include in each batch.
public PipeSourceSelfManagedKafkaParameters withBatchSize(Integer batchSize)
The maximum number of records to include in each batch.
batchSize
- The maximum number of records to include in each batch.public void setMaximumBatchingWindowInSeconds(Integer maximumBatchingWindowInSeconds)
The maximum length of a time to wait for events.
maximumBatchingWindowInSeconds
- The maximum length of a time to wait for events.public Integer getMaximumBatchingWindowInSeconds()
The maximum length of a time to wait for events.
public PipeSourceSelfManagedKafkaParameters withMaximumBatchingWindowInSeconds(Integer maximumBatchingWindowInSeconds)
The maximum length of a time to wait for events.
maximumBatchingWindowInSeconds
- The maximum length of a time to wait for events.public void setConsumerGroupID(String consumerGroupID)
The name of the destination queue to consume.
consumerGroupID
- The name of the destination queue to consume.public String getConsumerGroupID()
The name of the destination queue to consume.
public PipeSourceSelfManagedKafkaParameters withConsumerGroupID(String consumerGroupID)
The name of the destination queue to consume.
consumerGroupID
- The name of the destination queue to consume.public void setCredentials(SelfManagedKafkaAccessConfigurationCredentials credentials)
The credentials needed to access the resource.
credentials
- The credentials needed to access the resource.public SelfManagedKafkaAccessConfigurationCredentials getCredentials()
The credentials needed to access the resource.
public PipeSourceSelfManagedKafkaParameters withCredentials(SelfManagedKafkaAccessConfigurationCredentials credentials)
The credentials needed to access the resource.
credentials
- The credentials needed to access the resource.public void setServerRootCaCertificate(String serverRootCaCertificate)
The ARN of the Secrets Manager secret used for certification.
serverRootCaCertificate
- The ARN of the Secrets Manager secret used for certification.public String getServerRootCaCertificate()
The ARN of the Secrets Manager secret used for certification.
public PipeSourceSelfManagedKafkaParameters withServerRootCaCertificate(String serverRootCaCertificate)
The ARN of the Secrets Manager secret used for certification.
serverRootCaCertificate
- The ARN of the Secrets Manager secret used for certification.public void setVpc(SelfManagedKafkaAccessConfigurationVpc vpc)
This structure specifies the VPC subnets and security groups for the stream, and whether a public IP address is to be used.
vpc
- This structure specifies the VPC subnets and security groups for the stream, and whether a public IP
address is to be used.public SelfManagedKafkaAccessConfigurationVpc getVpc()
This structure specifies the VPC subnets and security groups for the stream, and whether a public IP address is to be used.
public PipeSourceSelfManagedKafkaParameters withVpc(SelfManagedKafkaAccessConfigurationVpc vpc)
This structure specifies the VPC subnets and security groups for the stream, and whether a public IP address is to be used.
vpc
- This structure specifies the VPC subnets and security groups for the stream, and whether a public IP
address is to be used.public String toString()
toString
in class Object
Object.toString()
public PipeSourceSelfManagedKafkaParameters clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.