Interface TopicRulePayload.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<TopicRulePayload.Builder,TopicRulePayload>,SdkBuilder<TopicRulePayload.Builder,TopicRulePayload>,SdkPojo
- Enclosing class:
- TopicRulePayload
public static interface TopicRulePayload.Builder extends SdkPojo, CopyableBuilder<TopicRulePayload.Builder,TopicRulePayload>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description TopicRulePayload.Builderactions(Collection<Action> actions)The actions associated with the rule.TopicRulePayload.Builderactions(Consumer<Action.Builder>... actions)The actions associated with the rule.TopicRulePayload.Builderactions(Action... actions)The actions associated with the rule.TopicRulePayload.BuilderawsIotSqlVersion(String awsIotSqlVersion)The version of the SQL rules engine to use when evaluating the rule.TopicRulePayload.Builderdescription(String description)The description of the rule.default TopicRulePayload.BuildererrorAction(Consumer<Action.Builder> errorAction)The action to take when an error occurs.TopicRulePayload.BuildererrorAction(Action errorAction)The action to take when an error occurs.TopicRulePayload.BuilderruleDisabled(Boolean ruleDisabled)Specifies whether the rule is disabled.TopicRulePayload.Buildersql(String sql)The SQL statement used to query the topic.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
sql
TopicRulePayload.Builder sql(String sql)
The SQL statement used to query the topic. For more information, see IoT SQL Reference in the IoT Developer Guide.
- Parameters:
sql- The SQL statement used to query the topic. For more information, see IoT SQL Reference in the IoT Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
TopicRulePayload.Builder description(String description)
The description of the rule.
- Parameters:
description- The description of the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
TopicRulePayload.Builder actions(Collection<Action> actions)
The actions associated with the rule.
- Parameters:
actions- The actions associated with the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
TopicRulePayload.Builder actions(Action... actions)
The actions associated with the rule.
- Parameters:
actions- The actions associated with the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
TopicRulePayload.Builder actions(Consumer<Action.Builder>... actions)
The actions associated with the rule.
This is a convenience method that creates an instance of theAction.Builderavoiding the need to create one manually viaAction.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#actions(List.) - Parameters:
actions- a consumer that will call methods onAction.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#actions(java.util.Collection)
-
ruleDisabled
TopicRulePayload.Builder ruleDisabled(Boolean ruleDisabled)
Specifies whether the rule is disabled.
- Parameters:
ruleDisabled- Specifies whether the rule is disabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
awsIotSqlVersion
TopicRulePayload.Builder awsIotSqlVersion(String awsIotSqlVersion)
The version of the SQL rules engine to use when evaluating the rule.
- Parameters:
awsIotSqlVersion- The version of the SQL rules engine to use when evaluating the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorAction
TopicRulePayload.Builder errorAction(Action errorAction)
The action to take when an error occurs.
- Parameters:
errorAction- The action to take when an error occurs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorAction
default TopicRulePayload.Builder errorAction(Consumer<Action.Builder> errorAction)
The action to take when an error occurs.
This is a convenience method that creates an instance of theAction.Builderavoiding the need to create one manually viaAction.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toerrorAction(Action).- Parameters:
errorAction- a consumer that will call methods onAction.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
errorAction(Action)
-
-