Class AddApplicationTargetGroupsProps.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.AddApplicationTargetGroupsProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AddApplicationTargetGroupsProps>
- Enclosing interface:
- AddApplicationTargetGroupsProps
@Stability(Stable)
public static final class AddApplicationTargetGroupsProps.Builder
extends Object
implements software.amazon.jsii.Builder<AddApplicationTargetGroupsProps>
A builder for
AddApplicationTargetGroupsProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.conditions
(List<? extends ListenerCondition> conditions) Sets the value ofAddRuleProps.getConditions()
hostHeader
(String hostHeader) Deprecated.Use `conditions` instead.pathPattern
(String pathPattern) Deprecated.Use `conditions` instead.pathPatterns
(List<String> pathPatterns) Deprecated.Use `conditions` instead.Sets the value ofAddRuleProps.getPriority()
targetGroups
(List<? extends IApplicationTargetGroup> targetGroups) Sets the value ofAddApplicationTargetGroupsProps.getTargetGroups()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
targetGroups
@Stability(Stable) public AddApplicationTargetGroupsProps.Builder targetGroups(List<? extends IApplicationTargetGroup> targetGroups) Sets the value ofAddApplicationTargetGroupsProps.getTargetGroups()
- Parameters:
targetGroups
- Target groups to forward requests to. This parameter is required.- Returns:
this
-
conditions
@Stability(Stable) public AddApplicationTargetGroupsProps.Builder conditions(List<? extends ListenerCondition> conditions) Sets the value ofAddRuleProps.getConditions()
- Parameters:
conditions
- Rule applies if matches the conditions.- Returns:
this
-
hostHeader
@Stability(Deprecated) @Deprecated public AddApplicationTargetGroupsProps.Builder hostHeader(String hostHeader) Deprecated.Use `conditions` instead.Sets the value ofAddRuleProps.getHostHeader()
- Parameters:
hostHeader
- Rule applies if the requested host matches the indicated host. May contain up to three '*' wildcards.Requires that priority is set.
- Returns:
this
-
pathPattern
@Stability(Deprecated) @Deprecated public AddApplicationTargetGroupsProps.Builder pathPattern(String pathPattern) Deprecated.Use `conditions` instead.Sets the value ofAddRuleProps.getPathPattern()
- Parameters:
pathPattern
- Rule applies if the requested path matches the given path pattern. May contain up to three '*' wildcards.Requires that priority is set.
- Returns:
this
-
pathPatterns
@Stability(Deprecated) @Deprecated public AddApplicationTargetGroupsProps.Builder pathPatterns(List<String> pathPatterns) Deprecated.Use `conditions` instead.Sets the value ofAddRuleProps.getPathPatterns()
- Parameters:
pathPatterns
- Rule applies if the requested path matches any of the given patterns. May contain up to three '*' wildcards.Requires that priority is set.
- 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<AddApplicationTargetGroupsProps>
- Returns:
- a new instance of
AddApplicationTargetGroupsProps
- Throws:
NullPointerException
- if any required attribute was not provided
-