Class ConfluentCloudDestinationBuilder
java.lang.Object
com.commercetools.api.models.subscription.ConfluentCloudDestinationBuilder
- All Implemented Interfaces:
Builder<ConfluentCloudDestination>
public class ConfluentCloudDestinationBuilder
extends Object
implements Builder<ConfluentCloudDestination>
ConfluentCloudDestinationBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ConfluentCloudDestination confluentCloudDestination = ConfluentCloudDestination.builder()
.bootstrapServer("{bootstrapServer}")
.apiKey("{apiKey}")
.apiSecret("{apiSecret}")
.acks("{acks}")
.topic("{topic}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe Kafkaacks
value.Partially hidden on retrieval for security reasons.Partially hidden on retrieval for security reasons.bootstrapServer
(String bootstrapServer) URL to the bootstrap server including the port number in the format<xxxxx>.<region>.<provider>.confluent.cloud:9092
.build()
builds ConfluentCloudDestination with checking for non-null required valuesbuilds ConfluentCloudDestination without checking for non-null required valuesgetAcks()
The Kafkaacks
value.Partially hidden on retrieval for security reasons.Partially hidden on retrieval for security reasons.URL to the bootstrap server including the port number in the format<xxxxx>.<region>.<provider>.confluent.cloud:9092
.getKey()
The Kafka record key.getTopic()
The name of the topic.The Kafka record key.of()
factory method for an instance of ConfluentCloudDestinationBuilderof
(ConfluentCloudDestination template) create builder for ConfluentCloudDestination instanceThe name of the topic.
-
Constructor Details
-
ConfluentCloudDestinationBuilder
public ConfluentCloudDestinationBuilder()
-
-
Method Details
-
bootstrapServer
URL to the bootstrap server including the port number in the format
<xxxxx>.<region>.<provider>.confluent.cloud:9092
.- Parameters:
bootstrapServer
- value to be set- Returns:
- Builder
-
apiKey
Partially hidden on retrieval for security reasons.
- Parameters:
apiKey
- value to be set- Returns:
- Builder
-
apiSecret
Partially hidden on retrieval for security reasons.
- Parameters:
apiSecret
- value to be set- Returns:
- Builder
-
acks
The Kafka
acks
value.- Parameters:
acks
- value to be set- Returns:
- Builder
-
topic
The name of the topic.
- Parameters:
topic
- value to be set- Returns:
- Builder
-
key
The Kafka record key.
- Parameters:
key
- value to be set- Returns:
- Builder
-
getBootstrapServer
URL to the bootstrap server including the port number in the format
<xxxxx>.<region>.<provider>.confluent.cloud:9092
.- Returns:
- bootstrapServer
-
getApiKey
Partially hidden on retrieval for security reasons.
- Returns:
- apiKey
-
getApiSecret
Partially hidden on retrieval for security reasons.
- Returns:
- apiSecret
-
getAcks
The Kafka
acks
value.- Returns:
- acks
-
getTopic
The name of the topic.
- Returns:
- topic
-
getKey
The Kafka record key.
- Returns:
- key
-
build
builds ConfluentCloudDestination with checking for non-null required values- Specified by:
build
in interfaceBuilder<ConfluentCloudDestination>
- Returns:
- ConfluentCloudDestination
-
buildUnchecked
builds ConfluentCloudDestination without checking for non-null required values- Returns:
- ConfluentCloudDestination
-
of
factory method for an instance of ConfluentCloudDestinationBuilder- Returns:
- builder
-
of
create builder for ConfluentCloudDestination instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-