public static interface Rule.Builder extends CopyableBuilder<Rule.Builder,Rule>
Modifier and Type | Method and Description |
---|---|
Rule.Builder |
actions(Action... actions)
The actions.
|
Rule.Builder |
actions(Collection<Action> actions)
The actions.
|
Rule.Builder |
actions(Consumer<Action.Builder>... actions)
The actions.
|
Rule.Builder |
conditions(Collection<RuleCondition> conditions)
The conditions.
|
Rule.Builder |
conditions(Consumer<RuleCondition.Builder>... conditions)
The conditions.
|
Rule.Builder |
conditions(RuleCondition... conditions)
The conditions.
|
Rule.Builder |
isDefault(Boolean isDefault)
Indicates whether this is the default rule.
|
Rule.Builder |
priority(String priority)
The priority.
|
Rule.Builder |
ruleArn(String ruleArn)
The Amazon Resource Name (ARN) of the rule.
|
copy
applyMutation, build
Rule.Builder ruleArn(String ruleArn)
The Amazon Resource Name (ARN) of the rule.
ruleArn
- The Amazon Resource Name (ARN) of the rule.Rule.Builder priority(String priority)
The priority.
priority
- The priority.Rule.Builder conditions(Collection<RuleCondition> conditions)
The conditions.
conditions
- The conditions.Rule.Builder conditions(RuleCondition... conditions)
The conditions.
conditions
- The conditions.Rule.Builder conditions(Consumer<RuleCondition.Builder>... conditions)
The conditions.
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 #conditions(List)
.conditions
- a consumer that will call methods on List.Builder
#conditions(List)
Rule.Builder actions(Collection<Action> actions)
The actions.
actions
- The actions.Rule.Builder actions(Action... actions)
The actions.
actions
- The actions.Rule.Builder actions(Consumer<Action.Builder>... actions)
The actions.
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)
Rule.Builder isDefault(Boolean isDefault)
Indicates whether this is the default rule.
isDefault
- Indicates whether this is the default rule.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.