Interface Rule.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Rule.Builder,
,Rule> SdkBuilder<Rule.Builder,
,Rule> SdkPojo
- Enclosing class:
Rule
-
Method Summary
Modifier and TypeMethodDescriptionactions
(Collection<RuleAction> actions) A list of actions to be run when the rule is triggered.actions
(Consumer<RuleAction.Builder>... actions) A list of actions to be run when the rule is triggered.actions
(RuleAction... actions) A list of actions to be run when the rule is triggered.createdTime
(Instant createdTime) The timestamp for when the rule was created.The conditions of the rule.lastUpdatedBy
(String lastUpdatedBy) The Amazon Resource Name (ARN) of the user who last updated the rule.lastUpdatedTime
(Instant lastUpdatedTime) The timestamp for the when the rule was last updated.The name of the rule.publishStatus
(String publishStatus) The publish status of the rule.publishStatus
(RulePublishStatus publishStatus) The publish status of the rule.The Amazon Resource Name (ARN) of the rule.A unique identifier for the rule.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.triggerEventSource
(RuleTriggerEventSource triggerEventSource) The event source to trigger the rule.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, sdkFieldNameToField, sdkFields
-
Method Details
-
name
The name of the rule.
- Parameters:
name
- The name of the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleId
A unique identifier for the rule.
- Parameters:
ruleId
- A unique identifier for the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleArn
The Amazon Resource Name (ARN) of the rule.
- Parameters:
ruleArn
- The Amazon Resource Name (ARN) of the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
triggerEventSource
The event source to trigger the rule.
- Parameters:
triggerEventSource
- The event source to trigger the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
triggerEventSource
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 viaRuleTriggerEventSource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totriggerEventSource(RuleTriggerEventSource)
.- Parameters:
triggerEventSource
- a consumer that will call methods onRuleTriggerEventSource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
function
The conditions of the rule.
- Parameters:
function
- The conditions of the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
A list of actions to be run when the rule is triggered.
- Parameters:
actions
- A list of actions to be run when the rule is triggered.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
A list of actions to be run when the rule is triggered.
- Parameters:
actions
- A list of actions to be run when the rule is triggered.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 viaRuleAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toactions(List<RuleAction>)
.- Parameters:
actions
- a consumer that will call methods onRuleAction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
publishStatus
The publish status of the rule.
- Parameters:
publishStatus
- The publish status of the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
publishStatus
The publish status of the rule.
- Parameters:
publishStatus
- The publish status of the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
createdTime
The timestamp for when the rule was created.
- Parameters:
createdTime
- The timestamp for when the rule was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastUpdatedTime
The timestamp for the when the rule was last updated.
- Parameters:
lastUpdatedTime
- The timestamp for the when the rule was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastUpdatedBy
The Amazon Resource Name (ARN) of the user who last updated the rule.
- Parameters:
lastUpdatedBy
- The Amazon Resource Name (ARN) of the user who last updated the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
- Parameters:
tags
- The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-