Interface Rule.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Rule.Builder,Rule>,SdkBuilder<Rule.Builder,Rule>,SdkPojo
- Enclosing class:
- Rule
public static interface Rule.Builder extends SdkPojo, CopyableBuilder<Rule.Builder,Rule>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Rule.Builderactions(Collection<Action> actions)The actions.Rule.Builderactions(Consumer<Action.Builder>... actions)The actions.Rule.Builderactions(Action... actions)The actions.Rule.Builderconditions(Collection<RuleCondition> conditions)The conditions.Rule.Builderconditions(Consumer<RuleCondition.Builder>... conditions)The conditions.Rule.Builderconditions(RuleCondition... conditions)The conditions.Rule.BuilderisDefault(Boolean isDefault)Indicates whether this is the default rule.Rule.Builderpriority(String priority)The priority.Rule.BuilderruleArn(String ruleArn)The Amazon Resource Name (ARN) of 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, sdkFields
-
-
-
-
Method Detail
-
ruleArn
Rule.Builder ruleArn(String 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.
-
priority
Rule.Builder priority(String priority)
The priority.
- Parameters:
priority- The priority.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conditions
Rule.Builder conditions(Collection<RuleCondition> conditions)
The conditions. Each rule can include zero or one of the following conditions:
http-request-method,host-header,path-pattern, andsource-ip, and zero or more of the following conditions:http-headerandquery-string.- Parameters:
conditions- The conditions. Each rule can include zero or one of the following conditions:http-request-method,host-header,path-pattern, andsource-ip, and zero or more of the following conditions:http-headerandquery-string.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conditions
Rule.Builder conditions(RuleCondition... conditions)
The conditions. Each rule can include zero or one of the following conditions:
http-request-method,host-header,path-pattern, andsource-ip, and zero or more of the following conditions:http-headerandquery-string.- Parameters:
conditions- The conditions. Each rule can include zero or one of the following conditions:http-request-method,host-header,path-pattern, andsource-ip, and zero or more of the following conditions:http-headerandquery-string.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conditions
Rule.Builder conditions(Consumer<RuleCondition.Builder>... conditions)
The conditions. Each rule can include zero or one of the following conditions:
This is a convenience method that creates an instance of thehttp-request-method,host-header,path-pattern, andsource-ip, and zero or more of the following conditions:http-headerandquery-string.RuleCondition.Builderavoiding the need to create one manually viaRuleCondition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#conditions(List.) - Parameters:
conditions- a consumer that will call methods onRuleCondition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#conditions(java.util.Collection)
-
actions
Rule.Builder actions(Collection<Action> actions)
The actions. Each rule must include exactly one of the following types of actions:
forward,redirect, orfixed-response, and it must be the last action to be performed.- Parameters:
actions- The actions. Each rule must include exactly one of the following types of actions:forward,redirect, orfixed-response, and it must be the last action to be performed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
Rule.Builder actions(Action... actions)
The actions. Each rule must include exactly one of the following types of actions:
forward,redirect, orfixed-response, and it must be the last action to be performed.- Parameters:
actions- The actions. Each rule must include exactly one of the following types of actions:forward,redirect, orfixed-response, and it must be the last action to be performed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
Rule.Builder actions(Consumer<Action.Builder>... actions)
The actions. Each rule must include exactly one of the following types of actions:
This is a convenience method that creates an instance of theforward,redirect, orfixed-response, and it must be the last action to be performed.Action.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)
-
isDefault
Rule.Builder isDefault(Boolean isDefault)
Indicates whether this is the default rule.
- Parameters:
isDefault- Indicates whether this is the default rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-