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
Modifier and TypeMethodDescriptionclientProperties
(Map<String, String> clientProperties) Properties of the Apache Kafka producer client.destinationArn
(String destinationArn) The ARN of Kafka action's VPCTopicRuleDestination
.headers
(Collection<KafkaActionHeader> headers) The list of Kafka headers that you specify.headers
(Consumer<KafkaActionHeader.Builder>... headers) The list of Kafka headers that you specify.headers
(KafkaActionHeader... headers) The list of Kafka headers that you specify.The Kafka message key.The Kafka message partition.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 Details
-
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
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
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
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 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 toheaders(List<KafkaActionHeader>)
.- 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:
-