Class AddRuleProps.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.AddRuleProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AddRuleProps>
- Enclosing interface:
AddRuleProps
@Stability(Stable)
public static final class AddRuleProps.Builder
extends Object
implements software.amazon.jsii.Builder<AddRuleProps>
A builder for
AddRuleProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.conditions
(List<? extends ListenerCondition> conditions) Sets the value ofAddRuleProps.getConditions()
Sets the value ofAddRuleProps.getPriority()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
conditions
@Stability(Stable) public AddRuleProps.Builder conditions(List<? extends ListenerCondition> conditions) Sets the value ofAddRuleProps.getConditions()
- Parameters:
conditions
- Rule applies if matches the conditions.- Returns:
this
-
priority
Sets the value ofAddRuleProps.getPriority()
- Parameters:
priority
- Priority of this target group. The rule with the lowest priority will be used for every request. If priority is not given, these target groups will be added as defaults, and must not have conditions.Priorities must be unique.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AddRuleProps>
- Returns:
- a new instance of
AddRuleProps
- Throws:
NullPointerException
- if any required attribute was not provided
-