Class NetworkWeightedTargetGroup.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.NetworkWeightedTargetGroup.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<NetworkWeightedTargetGroup>
- Enclosing interface:
- NetworkWeightedTargetGroup
@Stability(Stable)
public static final class NetworkWeightedTargetGroup.Builder
extends Object
implements software.amazon.jsii.Builder<NetworkWeightedTargetGroup>
A builder for
NetworkWeightedTargetGroup-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.targetGroup(INetworkTargetGroup targetGroup) Sets the value ofNetworkWeightedTargetGroup.getTargetGroup()Sets the value ofNetworkWeightedTargetGroup.getWeight()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
targetGroup
@Stability(Stable) public NetworkWeightedTargetGroup.Builder targetGroup(INetworkTargetGroup targetGroup) Sets the value ofNetworkWeightedTargetGroup.getTargetGroup()- Parameters:
targetGroup- The target group. This parameter is required.- Returns:
this
-
weight
Sets the value ofNetworkWeightedTargetGroup.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<NetworkWeightedTargetGroup>- Returns:
- a new instance of
NetworkWeightedTargetGroup - Throws:
NullPointerException- if any required attribute was not provided
-