Class CfnTopicRule.KafkaActionHeaderProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnTopicRule.KafkaActionHeaderProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTopicRule.KafkaActionHeaderProperty>
- Enclosing interface:
CfnTopicRule.KafkaActionHeaderProperty
@Stability(Stable)
public static final class CfnTopicRule.KafkaActionHeaderProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTopicRule.KafkaActionHeaderProperty>
A builder for
CfnTopicRule.KafkaActionHeaderProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnTopicRule.KafkaActionHeaderProperty.getKey()
Sets the value ofCfnTopicRule.KafkaActionHeaderProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
key
Sets the value ofCfnTopicRule.KafkaActionHeaderProperty.getKey()
- Parameters:
key
- The key of the Kafka header. This parameter is required.- Returns:
this
-
value
Sets the value ofCfnTopicRule.KafkaActionHeaderProperty.getValue()
- Parameters:
value
- The value of the Kafka header. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTopicRule.KafkaActionHeaderProperty>
- Returns:
- a new instance of
CfnTopicRule.KafkaActionHeaderProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-