Class TargetGroupAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.TargetGroupAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TargetGroupAttributes>
- Enclosing interface:
TargetGroupAttributes
@Stability(Stable)
public static final class TargetGroupAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<TargetGroupAttributes>
A builder for
TargetGroupAttributes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.loadBalancerArns
(String loadBalancerArns) Sets the value ofTargetGroupAttributes.getLoadBalancerArns()
targetGroupArn
(String targetGroupArn) Sets the value ofTargetGroupAttributes.getTargetGroupArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
targetGroupArn
Sets the value ofTargetGroupAttributes.getTargetGroupArn()
- Parameters:
targetGroupArn
- ARN of the target group. This parameter is required.- Returns:
this
-
loadBalancerArns
Sets the value ofTargetGroupAttributes.getLoadBalancerArns()
- Parameters:
loadBalancerArns
- A Token representing the list of ARNs for the load balancer routing to this target group.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<TargetGroupAttributes>
- Returns:
- a new instance of
TargetGroupAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-