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