Class CfnListener.TargetGroupTupleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.CfnListener.TargetGroupTupleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnListener.TargetGroupTupleProperty>
- Enclosing interface:
CfnListener.TargetGroupTupleProperty
@Stability(Stable)
public static final class CfnListener.TargetGroupTupleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnListener.TargetGroupTupleProperty>
A builder for
CfnListener.TargetGroupTupleProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.targetGroupArn
(String targetGroupArn) Sets the value ofCfnListener.TargetGroupTupleProperty.getTargetGroupArn()
Sets the value ofCfnListener.TargetGroupTupleProperty.getWeight()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
targetGroupArn
@Stability(Stable) public CfnListener.TargetGroupTupleProperty.Builder targetGroupArn(String targetGroupArn) Sets the value ofCfnListener.TargetGroupTupleProperty.getTargetGroupArn()
- Parameters:
targetGroupArn
- The Amazon Resource Name (ARN) of the target group.- Returns:
this
-
weight
Sets the value ofCfnListener.TargetGroupTupleProperty.getWeight()
- Parameters:
weight
- The weight. The range is 0 to 999.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnListener.TargetGroupTupleProperty>
- Returns:
- a new instance of
CfnListener.TargetGroupTupleProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-