public static final class CfnListenerRule.TargetGroupTupleProperty.Builder
extends java.lang.Object
CfnListenerRule.TargetGroupTupleProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnListenerRule.TargetGroupTupleProperty |
build()
Builds the configured instance.
|
CfnListenerRule.TargetGroupTupleProperty.Builder |
targetGroupArn(java.lang.String targetGroupArn)
Sets the value of
CfnListenerRule.TargetGroupTupleProperty.getTargetGroupArn() |
CfnListenerRule.TargetGroupTupleProperty.Builder |
weight(java.lang.Number weight)
Sets the value of
CfnListenerRule.TargetGroupTupleProperty.getWeight() |
public CfnListenerRule.TargetGroupTupleProperty.Builder targetGroupArn(java.lang.String targetGroupArn)
CfnListenerRule.TargetGroupTupleProperty.getTargetGroupArn()
targetGroupArn
- The Amazon Resource Name (ARN) of the target group.this
public CfnListenerRule.TargetGroupTupleProperty.Builder weight(java.lang.Number weight)
CfnListenerRule.TargetGroupTupleProperty.getWeight()
weight
- The weight.
The range is 0 to 999.this
public CfnListenerRule.TargetGroupTupleProperty build()
CfnListenerRule.TargetGroupTupleProperty
java.lang.NullPointerException
- if any required attribute was not provided