Class CfnTopicRuleProps.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnTopicRuleProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTopicRuleProps>
- Enclosing interface:
- CfnTopicRuleProps
@Stability(Stable)
public static final class CfnTopicRuleProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTopicRuleProps>
A builder for
CfnTopicRuleProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnTopicRuleProps.getRuleName()
Sets the value ofCfnTopicRuleProps.getTags()
topicRulePayload
(IResolvable topicRulePayload) Sets the value ofCfnTopicRuleProps.getTopicRulePayload()
topicRulePayload
(CfnTopicRule.TopicRulePayloadProperty topicRulePayload) Sets the value ofCfnTopicRuleProps.getTopicRulePayload()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
topicRulePayload
Sets the value ofCfnTopicRuleProps.getTopicRulePayload()
- Parameters:
topicRulePayload
- The rule payload. This parameter is required.- Returns:
this
-
topicRulePayload
@Stability(Stable) public CfnTopicRuleProps.Builder topicRulePayload(CfnTopicRule.TopicRulePayloadProperty topicRulePayload) Sets the value ofCfnTopicRuleProps.getTopicRulePayload()
- Parameters:
topicRulePayload
- The rule payload. This parameter is required.- Returns:
this
-
ruleName
Sets the value ofCfnTopicRuleProps.getRuleName()
- Parameters:
ruleName
- The name of the rule.- Returns:
this
-
tags
Sets the value ofCfnTopicRuleProps.getTags()
- Parameters:
tags
- Metadata which can be used to manage the topic rule.For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: --tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTopicRuleProps>
- Returns:
- a new instance of
CfnTopicRuleProps
- Throws:
NullPointerException
- if any required attribute was not provided
-