Interface KafkaAction.Builder

All Superinterfaces:
Buildable, CopyableBuilder<KafkaAction.Builder,KafkaAction>, SdkBuilder<KafkaAction.Builder,KafkaAction>, SdkPojo
Enclosing class:
KafkaAction

public static interface KafkaAction.Builder extends SdkPojo, CopyableBuilder<KafkaAction.Builder,KafkaAction>
  • Method Details

    • destinationArn

      KafkaAction.Builder destinationArn(String destinationArn)

      The ARN of Kafka action's VPC TopicRuleDestination.

      Parameters:
      destinationArn - The ARN of Kafka action's VPC TopicRuleDestination.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • topic

      The Kafka topic for messages to be sent to the Kafka broker.

      Parameters:
      topic - The Kafka topic for messages to be sent to the Kafka broker.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • key

      The Kafka message key.

      Parameters:
      key - The Kafka message key.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • partition

      KafkaAction.Builder partition(String partition)

      The Kafka message partition.

      Parameters:
      partition - The Kafka message partition.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • clientProperties

      KafkaAction.Builder clientProperties(Map<String,String> clientProperties)

      Properties of the Apache Kafka producer client.

      Parameters:
      clientProperties - Properties of the Apache Kafka producer client.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • headers

      The list of Kafka headers that you specify.

      Parameters:
      headers - The list of Kafka headers that you specify.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • headers

      The list of Kafka headers that you specify.

      Parameters:
      headers - The list of Kafka headers that you specify.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • headers

      The list of Kafka headers that you specify.

      This is a convenience method that creates an instance of the KafkaActionHeader.Builder avoiding the need to create one manually via KafkaActionHeader.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to headers(List<KafkaActionHeader>).

      Parameters:
      headers - a consumer that will call methods on KafkaActionHeader.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: