Class CfnTopicRule.RepublishActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnTopicRule.RepublishActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTopicRule.RepublishActionProperty>
- Enclosing interface:
CfnTopicRule.RepublishActionProperty
@Stability(Stable)
public static final class CfnTopicRule.RepublishActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTopicRule.RepublishActionProperty>
A builder for
CfnTopicRule.RepublishActionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.headers
(IResolvable headers) Sets the value ofCfnTopicRule.RepublishActionProperty.getHeaders()
Sets the value ofCfnTopicRule.RepublishActionProperty.getHeaders()
Sets the value ofCfnTopicRule.RepublishActionProperty.getQos()
Sets the value ofCfnTopicRule.RepublishActionProperty.getRoleArn()
Sets the value ofCfnTopicRule.RepublishActionProperty.getTopic()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
roleArn
Sets the value ofCfnTopicRule.RepublishActionProperty.getRoleArn()
- Parameters:
roleArn
- The ARN of the IAM role that grants access. This parameter is required.- Returns:
this
-
topic
Sets the value ofCfnTopicRule.RepublishActionProperty.getTopic()
- Parameters:
topic
- The name of the MQTT topic. This parameter is required.- Returns:
this
-
headers
Sets the value ofCfnTopicRule.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 CfnTopicRule.RepublishActionProperty.Builder headers(CfnTopicRule.RepublishActionHeadersProperty headers) Sets the value ofCfnTopicRule.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 ofCfnTopicRule.RepublishActionProperty.getQos()
- Parameters:
qos
- The Quality of Service (QoS) level to use when republishing messages. The default value is 0.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTopicRule.RepublishActionProperty>
- Returns:
- a new instance of
CfnTopicRule.RepublishActionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-