public static interface Rule.Builder extends SdkPojo, CopyableBuilder<Rule.Builder,Rule>
| Modifier and Type | Method and Description |
|---|---|
Rule.Builder |
actions(Collection<RuleAction> actions)
A list of actions to be run when the rule is triggered.
|
Rule.Builder |
actions(Consumer<RuleAction.Builder>... actions)
A list of actions to be run when the rule is triggered.
|
Rule.Builder |
actions(RuleAction... actions)
A list of actions to be run when the rule is triggered.
|
Rule.Builder |
createdTime(Instant createdTime)
The timestamp for when the rule was created.
|
Rule.Builder |
function(String function)
The conditions of the rule.
|
Rule.Builder |
lastUpdatedBy(String lastUpdatedBy)
The Amazon Resource Name (ARN) of the user who last updated the rule.
|
Rule.Builder |
lastUpdatedTime(Instant lastUpdatedTime)
The timestamp for the when the rule was last updated.
|
Rule.Builder |
name(String name)
The name of the rule.
|
Rule.Builder |
publishStatus(RulePublishStatus publishStatus)
The publish status of the rule.
|
Rule.Builder |
publishStatus(String publishStatus)
The publish status of the rule.
|
Rule.Builder |
ruleArn(String ruleArn)
The Amazon Resource Name (ARN) of the rule.
|
Rule.Builder |
ruleId(String ruleId)
A unique identifier for the rule.
|
Rule.Builder |
tags(Map<String,String> tags)
The tags used to organize, track, or control access for this resource.
|
default Rule.Builder |
triggerEventSource(Consumer<RuleTriggerEventSource.Builder> triggerEventSource)
The event source to trigger the rule.
|
Rule.Builder |
triggerEventSource(RuleTriggerEventSource triggerEventSource)
The event source to trigger the rule.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildRule.Builder name(String name)
The name of the rule.
name - The name of the rule.Rule.Builder ruleId(String ruleId)
A unique identifier for the rule.
ruleId - A unique identifier for the rule.Rule.Builder ruleArn(String ruleArn)
The Amazon Resource Name (ARN) of the rule.
ruleArn - The Amazon Resource Name (ARN) of the rule.Rule.Builder triggerEventSource(RuleTriggerEventSource triggerEventSource)
The event source to trigger the rule.
triggerEventSource - The event source to trigger the rule.default Rule.Builder triggerEventSource(Consumer<RuleTriggerEventSource.Builder> triggerEventSource)
The event source to trigger the rule.
This is a convenience method that creates an instance of theRuleTriggerEventSource.Builder avoiding
the need to create one manually via RuleTriggerEventSource.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to triggerEventSource(RuleTriggerEventSource).
triggerEventSource - a consumer that will call methods on RuleTriggerEventSource.BuildertriggerEventSource(RuleTriggerEventSource)Rule.Builder function(String function)
The conditions of the rule.
function - The conditions of the rule.Rule.Builder actions(Collection<RuleAction> actions)
A list of actions to be run when the rule is triggered.
actions - A list of actions to be run when the rule is triggered.Rule.Builder actions(RuleAction... actions)
A list of actions to be run when the rule is triggered.
actions - A list of actions to be run when the rule is triggered.Rule.Builder actions(Consumer<RuleAction.Builder>... actions)
A list of actions to be run when the rule is triggered.
This is a convenience method that creates an instance of theRuleAction.Builder avoiding the need to create one
manually via RuleAction.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and
its result is passed to #actions(List.
actions - a consumer that will call methods on
RuleAction.Builder#actions(java.util.Collection) Rule.Builder publishStatus(String publishStatus)
The publish status of the rule.
publishStatus - The publish status of the rule.RulePublishStatus,
RulePublishStatusRule.Builder publishStatus(RulePublishStatus publishStatus)
The publish status of the rule.
publishStatus - The publish status of the rule.RulePublishStatus,
RulePublishStatusRule.Builder createdTime(Instant createdTime)
The timestamp for when the rule was created.
createdTime - The timestamp for when the rule was created.Rule.Builder lastUpdatedTime(Instant lastUpdatedTime)
The timestamp for the when the rule was last updated.
lastUpdatedTime - The timestamp for the when the rule was last updated.Rule.Builder lastUpdatedBy(String lastUpdatedBy)
The Amazon Resource Name (ARN) of the user who last updated the rule.
lastUpdatedBy - The Amazon Resource Name (ARN) of the user who last updated the rule.Rule.Builder tags(Map<String,String> tags)
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
tags - The tags used to organize, track, or control access for this resource. For example, { "tags":
{"key1":"value1", "key2":"value2"} }.Copyright © 2023. All rights reserved.