Class CfnTopicRulePropsMixin.KafkaActionProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.iot.CfnTopicRulePropsMixin.KafkaActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTopicRulePropsMixin.KafkaActionProperty>
- Enclosing interface:
CfnTopicRulePropsMixin.KafkaActionProperty
@Stability(Stable)
public static final class CfnTopicRulePropsMixin.KafkaActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTopicRulePropsMixin.KafkaActionProperty>
A builder for
CfnTopicRulePropsMixin.KafkaActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.clientProperties(Map<String, String> clientProperties) Sets the value ofCfnTopicRulePropsMixin.KafkaActionProperty.getClientProperties()clientProperties(IResolvable clientProperties) Sets the value ofCfnTopicRulePropsMixin.KafkaActionProperty.getClientProperties()destinationArn(String destinationArn) Sets the value ofCfnTopicRulePropsMixin.KafkaActionProperty.getDestinationArn()Sets the value ofCfnTopicRulePropsMixin.KafkaActionProperty.getHeaders()headers(IResolvable headers) Sets the value ofCfnTopicRulePropsMixin.KafkaActionProperty.getHeaders()Sets the value ofCfnTopicRulePropsMixin.KafkaActionProperty.getKey()Sets the value ofCfnTopicRulePropsMixin.KafkaActionProperty.getPartition()Sets the value ofCfnTopicRulePropsMixin.KafkaActionProperty.getTopic()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clientProperties
@Stability(Stable) public CfnTopicRulePropsMixin.KafkaActionProperty.Builder clientProperties(Map<String, String> clientProperties) Sets the value ofCfnTopicRulePropsMixin.KafkaActionProperty.getClientProperties()- Parameters:
clientProperties- Properties of the Apache Kafka producer client.- Returns:
this
-
clientProperties
@Stability(Stable) public CfnTopicRulePropsMixin.KafkaActionProperty.Builder clientProperties(IResolvable clientProperties) Sets the value ofCfnTopicRulePropsMixin.KafkaActionProperty.getClientProperties()- Parameters:
clientProperties- Properties of the Apache Kafka producer client.- Returns:
this
-
destinationArn
@Stability(Stable) public CfnTopicRulePropsMixin.KafkaActionProperty.Builder destinationArn(String destinationArn) Sets the value ofCfnTopicRulePropsMixin.KafkaActionProperty.getDestinationArn()- Parameters:
destinationArn- The ARN of Kafka action's VPCTopicRuleDestination.- Returns:
this
-
headers
@Stability(Stable) public CfnTopicRulePropsMixin.KafkaActionProperty.Builder headers(IResolvable headers) Sets the value ofCfnTopicRulePropsMixin.KafkaActionProperty.getHeaders()- Parameters:
headers- The list of Kafka headers that you specify.- Returns:
this
-
headers
@Stability(Stable) public CfnTopicRulePropsMixin.KafkaActionProperty.Builder headers(List<? extends Object> headers) Sets the value ofCfnTopicRulePropsMixin.KafkaActionProperty.getHeaders()- Parameters:
headers- The list of Kafka headers that you specify.- Returns:
this
-
key
Sets the value ofCfnTopicRulePropsMixin.KafkaActionProperty.getKey()- Parameters:
key- The Kafka message key.- Returns:
this
-
partition
@Stability(Stable) public CfnTopicRulePropsMixin.KafkaActionProperty.Builder partition(String partition) Sets the value ofCfnTopicRulePropsMixin.KafkaActionProperty.getPartition()- Parameters:
partition- The Kafka message partition.- Returns:
this
-
topic
Sets the value ofCfnTopicRulePropsMixin.KafkaActionProperty.getTopic()- Parameters:
topic- The Kafka topic for messages to be sent to the Kafka broker.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTopicRulePropsMixin.KafkaActionProperty>- Returns:
- a new instance of
CfnTopicRulePropsMixin.KafkaActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-