Class WeightedTargetGroup.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.WeightedTargetGroup.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<WeightedTargetGroup>
- Enclosing interface:
WeightedTargetGroup
@Stability(Stable)
public static final class WeightedTargetGroup.Builder
extends Object
implements software.amazon.jsii.Builder<WeightedTargetGroup>
A builder for
WeightedTargetGroup-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.targetGroup(IApplicationTargetGroup targetGroup) Sets the value ofWeightedTargetGroup.getTargetGroup()Sets the value ofWeightedTargetGroup.getWeight()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
targetGroup
@Stability(Stable) public WeightedTargetGroup.Builder targetGroup(IApplicationTargetGroup targetGroup) Sets the value ofWeightedTargetGroup.getTargetGroup()- Parameters:
targetGroup- The target group. This parameter is required.- Returns:
this
-
weight
Sets the value ofWeightedTargetGroup.getWeight()- Parameters:
weight- The target group's weight. Range is [0..1000).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<WeightedTargetGroup>- Returns:
- a new instance of
WeightedTargetGroup - Throws:
NullPointerException- if any required attribute was not provided
-