public static interface TopicRule.Builder extends SdkPojo, CopyableBuilder<TopicRule.Builder,TopicRule>
| Modifier and Type | Method and Description |
|---|---|
TopicRule.Builder |
actions(Action... actions)
The actions associated with the rule.
|
TopicRule.Builder |
actions(Collection<Action> actions)
The actions associated with the rule.
|
TopicRule.Builder |
actions(Consumer<Action.Builder>... actions)
The actions associated with the rule.
|
TopicRule.Builder |
awsIotSqlVersion(String awsIotSqlVersion)
The version of the SQL rules engine to use when evaluating the rule.
|
TopicRule.Builder |
createdAt(Instant createdAt)
The date and time the rule was created.
|
TopicRule.Builder |
description(String description)
The description of the rule.
|
TopicRule.Builder |
errorAction(Action errorAction)
The action to perform when an error occurs.
|
default TopicRule.Builder |
errorAction(Consumer<Action.Builder> errorAction)
The action to perform when an error occurs.
|
TopicRule.Builder |
ruleDisabled(Boolean ruleDisabled)
Specifies whether the rule is disabled.
|
TopicRule.Builder |
ruleName(String ruleName)
The name of the rule.
|
TopicRule.Builder |
sql(String sql)
The SQL statement used to query the topic.
|
copyapplyMutation, buildTopicRule.Builder ruleName(String ruleName)
The name of the rule.
ruleName - The name of the rule.TopicRule.Builder sql(String sql)
The SQL statement used to query the topic. When using a SQL query with multiple lines, be sure to escape the newline characters.
sql - The SQL statement used to query the topic. When using a SQL query with multiple lines, be sure to
escape the newline characters.TopicRule.Builder description(String description)
The description of the rule.
description - The description of the rule.TopicRule.Builder createdAt(Instant createdAt)
The date and time the rule was created.
createdAt - The date and time the rule was created.TopicRule.Builder actions(Collection<Action> actions)
The actions associated with the rule.
actions - The actions associated with the rule.TopicRule.Builder actions(Action... actions)
The actions associated with the rule.
actions - The actions associated with the rule.TopicRule.Builder actions(Consumer<Action.Builder>... actions)
The actions associated with the rule.
This is a convenience that creates an instance of theList.Builder avoiding the need to
create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and its
result is passed to #actions(List) .actions - a consumer that will call methods on List.Builder #actions(List) TopicRule.Builder ruleDisabled(Boolean ruleDisabled)
Specifies whether the rule is disabled.
ruleDisabled - Specifies whether the rule is disabled.TopicRule.Builder awsIotSqlVersion(String awsIotSqlVersion)
The version of the SQL rules engine to use when evaluating the rule.
awsIotSqlVersion - The version of the SQL rules engine to use when evaluating the rule.TopicRule.Builder errorAction(Action errorAction)
The action to perform when an error occurs.
errorAction - The action to perform when an error occurs.default TopicRule.Builder errorAction(Consumer<Action.Builder> errorAction)
The action to perform when an error occurs.
This is a convenience that creates an instance of theAction.Builder avoiding the need to create one
manually via Action.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result is
passed to errorAction(Action).errorAction - a consumer that will call methods on Action.BuildererrorAction(Action)Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.