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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description KafkaAction.Builder
clientProperties(Map<String,String> clientProperties)
Properties of the Apache Kafka producer client.KafkaAction.Builder
destinationArn(String destinationArn)
The ARN of Kafka action's VPCTopicRuleDestination
.KafkaAction.Builder
headers(Collection<KafkaActionHeader> headers)
The list of Kafka headers that you specify.KafkaAction.Builder
headers(Consumer<KafkaActionHeader.Builder>... headers)
The list of Kafka headers that you specify.KafkaAction.Builder
headers(KafkaActionHeader... headers)
The list of Kafka headers that you specify.KafkaAction.Builder
key(String key)
The Kafka message key.KafkaAction.Builder
partition(String partition)
The Kafka message partition.KafkaAction.Builder
topic(String topic)
The Kafka topic for messages to be sent to the Kafka broker.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
destinationArn
KafkaAction.Builder destinationArn(String destinationArn)
The ARN of Kafka action's VPC
TopicRuleDestination
.- Parameters:
destinationArn
- The ARN of Kafka action's VPCTopicRuleDestination
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
topic
KafkaAction.Builder topic(String 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
KafkaAction.Builder key(String 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
KafkaAction.Builder headers(Collection<KafkaActionHeader> 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
KafkaAction.Builder headers(KafkaActionHeader... 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
KafkaAction.Builder headers(Consumer<KafkaActionHeader.Builder>... headers)
The list of Kafka headers that you specify.
This is a convenience method that creates an instance of theKafkaActionHeader.Builder
avoiding the need to create one manually viaKafkaActionHeader.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#headers(List
.) - Parameters:
headers
- a consumer that will call methods onKafkaActionHeader.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#headers(java.util.Collection
)
-
-