Class AddApplicationActionProps.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.AddApplicationActionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AddApplicationActionProps>
- Enclosing interface:
AddApplicationActionProps
@Stability(Stable)
public static final class AddApplicationActionProps.Builder
extends Object
implements software.amazon.jsii.Builder<AddApplicationActionProps>
A builder for
AddApplicationActionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaction
(ListenerAction action) Sets the value ofAddApplicationActionProps.getAction()
build()
Builds the configured instance.conditions
(List<? extends ListenerCondition> conditions) Sets the value ofAddRuleProps.getConditions()
Sets the value ofAddRuleProps.getPriority()
removeSuffix
(Boolean removeSuffix) Sets the value ofAddApplicationActionProps.getRemoveSuffix()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
action
Sets the value ofAddApplicationActionProps.getAction()
- Parameters:
action
- Action to perform. This parameter is required.- Returns:
this
-
removeSuffix
Sets the value ofAddApplicationActionProps.getRemoveSuffix()
- Parameters:
removeSuffix
-ListenerRule
s have aRule
suffix on their logicalId by default. This allows you to remove that suffix. Legacy behavior of theaddTargetGroups()
convenience method did not include theRule
suffix on the logicalId of the generatedListenerRule
. At some point, increasing complexity of requirements can require users to switch from theaddTargetGroups()
method to theaddAction()
method. When migratingListenerRule
s deployed by a legacy version ofaddTargetGroups()
, you will need to enable this flag to avoid changing the logicalId of your resource. Otherwise Cfn will attempt to replace theListenerRule
and fail.- Returns:
this
-
conditions
@Stability(Stable) public AddApplicationActionProps.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<AddApplicationActionProps>
- Returns:
- a new instance of
AddApplicationActionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-