Class CfnTopicRulePropsMixin.RepublishActionProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.iot.mixins.CfnTopicRulePropsMixin.RepublishActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTopicRulePropsMixin.RepublishActionProperty>
- Enclosing interface:
CfnTopicRulePropsMixin.RepublishActionProperty
@Stability(Stable)
public static final class CfnTopicRulePropsMixin.RepublishActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTopicRulePropsMixin.RepublishActionProperty>
A builder for
CfnTopicRulePropsMixin.RepublishActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.headers(IResolvable headers) Sets the value ofCfnTopicRulePropsMixin.RepublishActionProperty.getHeaders()Sets the value ofCfnTopicRulePropsMixin.RepublishActionProperty.getHeaders()Sets the value ofCfnTopicRulePropsMixin.RepublishActionProperty.getQos()Sets the value ofCfnTopicRulePropsMixin.RepublishActionProperty.getRoleArn()Sets the value ofCfnTopicRulePropsMixin.RepublishActionProperty.getTopic()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
headers
@Stability(Stable) public CfnTopicRulePropsMixin.RepublishActionProperty.Builder headers(IResolvable headers) Sets the value ofCfnTopicRulePropsMixin.RepublishActionProperty.getHeaders()- Parameters:
headers- MQTT Version 5.0 headers information. For more information, see MQTT in the IoT Core Developer Guide.- Returns:
this
-
headers
@Stability(Stable) public CfnTopicRulePropsMixin.RepublishActionProperty.Builder headers(CfnTopicRulePropsMixin.RepublishActionHeadersProperty headers) Sets the value ofCfnTopicRulePropsMixin.RepublishActionProperty.getHeaders()- Parameters:
headers- MQTT Version 5.0 headers information. For more information, see MQTT in the IoT Core Developer Guide.- Returns:
this
-
qos
Sets the value ofCfnTopicRulePropsMixin.RepublishActionProperty.getQos()- Parameters:
qos- The Quality of Service (QoS) level to use when republishing messages. The default value is 0.- Returns:
this
-
roleArn
@Stability(Stable) public CfnTopicRulePropsMixin.RepublishActionProperty.Builder roleArn(String roleArn) Sets the value ofCfnTopicRulePropsMixin.RepublishActionProperty.getRoleArn()- Parameters:
roleArn- The ARN of the IAM role that grants access.- Returns:
this
-
topic
@Stability(Stable) public CfnTopicRulePropsMixin.RepublishActionProperty.Builder topic(String topic) Sets the value ofCfnTopicRulePropsMixin.RepublishActionProperty.getTopic()- Parameters:
topic- The name of the MQTT topic.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTopicRulePropsMixin.RepublishActionProperty>- Returns:
- a new instance of
CfnTopicRulePropsMixin.RepublishActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-