Interface Rule.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Rule.Builder,,Rule> SdkBuilder<Rule.Builder,,Rule> SdkPojo
- Enclosing class:
Rule
-
Method Summary
Modifier and TypeMethodDescriptionactions(Collection<Action> actions) The actions.actions(Consumer<Action.Builder>... actions) The actions.The actions.conditions(Collection<RuleCondition> conditions) The conditions.conditions(Consumer<RuleCondition.Builder>... conditions) The conditions.conditions(RuleCondition... conditions) The conditions.Indicates whether this is the default rule.The priority.The Amazon Resource Name (ARN) of the rule.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
The priority.
- Parameters:
priority- The priority.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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
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 toconditions(List<RuleCondition>).- 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:
-
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
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
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 toactions(List<Action>).- 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:
-
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.
-