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