Class BaseApplicationListenerRuleProps.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.BaseApplicationListenerRuleProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<BaseApplicationListenerRuleProps>
- Enclosing interface:
BaseApplicationListenerRuleProps
@Stability(Stable)
public static final class BaseApplicationListenerRuleProps.Builder
extends Object
implements software.amazon.jsii.Builder<BaseApplicationListenerRuleProps>
A builder for
BaseApplicationListenerRuleProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaction
(ListenerAction action) Sets the value ofBaseApplicationListenerRuleProps.getAction()
build()
Builds the configured instance.conditions
(List<? extends ListenerCondition> conditions) Sets the value ofBaseApplicationListenerRuleProps.getConditions()
Sets the value ofBaseApplicationListenerRuleProps.getPriority()
targetGroups
(List<? extends IApplicationTargetGroup> targetGroups) Sets the value ofBaseApplicationListenerRuleProps.getTargetGroups()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
priority
Sets the value ofBaseApplicationListenerRuleProps.getPriority()
- Parameters:
priority
- Priority of the rule. This parameter is required. The rule with the lowest priority will be used for every request.Priorities must be unique.
- Returns:
this
-
action
Sets the value ofBaseApplicationListenerRuleProps.getAction()
- Parameters:
action
- Action to perform when requests are received. Only one ofaction
,fixedResponse
,redirectResponse
ortargetGroups
can be specified.- Returns:
this
-
conditions
@Stability(Stable) public BaseApplicationListenerRuleProps.Builder conditions(List<? extends ListenerCondition> conditions) Sets the value ofBaseApplicationListenerRuleProps.getConditions()
- Parameters:
conditions
- Rule applies if matches the conditions.- Returns:
this
-
targetGroups
@Stability(Stable) public BaseApplicationListenerRuleProps.Builder targetGroups(List<? extends IApplicationTargetGroup> targetGroups) Sets the value ofBaseApplicationListenerRuleProps.getTargetGroups()
- Parameters:
targetGroups
- Target groups to forward requests to. Only one ofaction
,fixedResponse
,redirectResponse
ortargetGroups
can be specified.Implies a
forward
action.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<BaseApplicationListenerRuleProps>
- Returns:
- a new instance of
BaseApplicationListenerRuleProps
- Throws:
NullPointerException
- if any required attribute was not provided
-