Class CfnTargetGroup.TargetProperty.Builder
java.lang.Object
software.amazon.awscdk.services.vpclattice.CfnTargetGroup.TargetProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTargetGroup.TargetProperty>
- Enclosing interface:
- CfnTargetGroup.TargetProperty
@Stability(Stable)
public static final class CfnTargetGroup.TargetProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTargetGroup.TargetProperty>
A builder for
CfnTargetGroup.TargetProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnTargetGroup.TargetProperty.getId()Sets the value ofCfnTargetGroup.TargetProperty.getPort()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
Sets the value ofCfnTargetGroup.TargetProperty.getId()- Parameters:
id- The ID of the target. This parameter is required. If the target type of the target group isINSTANCE, this is an instance ID. If the target type isIP, this is an IP address. If the target type isLAMBDA, this is the ARN of the Lambda function. If the target type isALB, this is the ARN of the Application Load Balancer.- Returns:
this
-
port
Sets the value ofCfnTargetGroup.TargetProperty.getPort()- Parameters:
port- The port on which the target is listening. For HTTP, the default is80. For HTTPS, the default is443.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTargetGroup.TargetProperty>- Returns:
- a new instance of
CfnTargetGroup.TargetProperty - Throws:
NullPointerException- if any required attribute was not provided
-