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

     ConfluentCloudDestination confluentCloudDestination = ConfluentCloudDestination.builder()
             .bootstrapServer("{bootstrapServer}")
             .apiKey("{apiKey}")
             .apiSecret("{apiSecret}")
             .acks("{acks}")
             .topic("{topic}")
             .build()
 
  • Constructor Details

    • ConfluentCloudDestinationBuilder

      public ConfluentCloudDestinationBuilder()
  • Method Details

    • bootstrapServer

      public ConfluentCloudDestinationBuilder bootstrapServer(String 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

      public ConfluentCloudDestinationBuilder apiKey(String apiKey)

      Partially hidden on retrieval for security reasons.

      Parameters:
      apiKey - value to be set
      Returns:
      Builder
    • apiSecret

      public ConfluentCloudDestinationBuilder apiSecret(String 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

      public String getBootstrapServer()

      URL to the bootstrap server including the port number in the format <xxxxx>.<region>.<provider>.confluent.cloud:9092.

      Returns:
      bootstrapServer
    • getApiKey

      public String getApiKey()

      Partially hidden on retrieval for security reasons.

      Returns:
      apiKey
    • getApiSecret

      public String getApiSecret()

      Partially hidden on retrieval for security reasons.

      Returns:
      apiSecret
    • getAcks

      public String getAcks()

      The Kafka acks value.

      Returns:
      acks
    • getTopic

      public String getTopic()

      The name of the topic.

      Returns:
      topic
    • getKey

      @Nullable public String getKey()

      The Kafka record key.

      Returns:
      key
    • build

      public ConfluentCloudDestination build()
      builds ConfluentCloudDestination with checking for non-null required values
      Specified by:
      build in interface Builder<ConfluentCloudDestination>
      Returns:
      ConfluentCloudDestination
    • buildUnchecked

      public 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