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
-
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 group type isINSTANCE
, this is an instance ID. If the target group type isIP
, this is an IP address. If the target group type isLAMBDA
, this is the ARN of a Lambda function. If the target group type isALB
, this is the ARN of an 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 is 80. For HTTPS, the default is 443.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTargetGroup.TargetProperty>
- Returns:
- a new instance of
CfnTargetGroup.TargetProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-