Class CfnTargetGroup.TargetGroupConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.vpclattice.CfnTargetGroup.TargetGroupConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTargetGroup.TargetGroupConfigProperty>
- Enclosing interface:
CfnTargetGroup.TargetGroupConfigProperty
@Stability(Stable)
public static final class CfnTargetGroup.TargetGroupConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTargetGroup.TargetGroupConfigProperty>
A builder for
CfnTargetGroup.TargetGroupConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.healthCheck(IResolvable healthCheck) Sets the value ofCfnTargetGroup.TargetGroupConfigProperty.getHealthCheck()healthCheck(CfnTargetGroup.HealthCheckConfigProperty healthCheck) Sets the value ofCfnTargetGroup.TargetGroupConfigProperty.getHealthCheck()ipAddressType(String ipAddressType) Sets the value ofCfnTargetGroup.TargetGroupConfigProperty.getIpAddressType()lambdaEventStructureVersion(String lambdaEventStructureVersion) Sets the value ofCfnTargetGroup.TargetGroupConfigProperty.getPort()Sets the value ofCfnTargetGroup.TargetGroupConfigProperty.getProtocol()protocolVersion(String protocolVersion) Sets the value ofCfnTargetGroup.TargetGroupConfigProperty.getProtocolVersion()vpcIdentifier(String vpcIdentifier) Sets the value ofCfnTargetGroup.TargetGroupConfigProperty.getVpcIdentifier()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
healthCheck
@Stability(Stable) public CfnTargetGroup.TargetGroupConfigProperty.Builder healthCheck(IResolvable healthCheck) Sets the value ofCfnTargetGroup.TargetGroupConfigProperty.getHealthCheck()- Parameters:
healthCheck- The health check configuration. Not supported if the target group type isLAMBDAorALB.- Returns:
this
-
healthCheck
@Stability(Stable) public CfnTargetGroup.TargetGroupConfigProperty.Builder healthCheck(CfnTargetGroup.HealthCheckConfigProperty healthCheck) Sets the value ofCfnTargetGroup.TargetGroupConfigProperty.getHealthCheck()- Parameters:
healthCheck- The health check configuration. Not supported if the target group type isLAMBDAorALB.- Returns:
this
-
ipAddressType
@Stability(Stable) public CfnTargetGroup.TargetGroupConfigProperty.Builder ipAddressType(String ipAddressType) Sets the value ofCfnTargetGroup.TargetGroupConfigProperty.getIpAddressType()- Parameters:
ipAddressType- The type of IP address used for the target group. Supported only if the target group type isIP. The default isIPV4.- Returns:
this
-
lambdaEventStructureVersion
@Stability(Stable) public CfnTargetGroup.TargetGroupConfigProperty.Builder lambdaEventStructureVersion(String lambdaEventStructureVersion) - Parameters:
lambdaEventStructureVersion- The version of the event structure that your Lambda function receives. Supported only if the target group type isLAMBDA. The default isV1.- Returns:
this
-
port
Sets the value ofCfnTargetGroup.TargetGroupConfigProperty.getPort()- Parameters:
port- The port on which the targets are listening. For HTTP, the default is 80. For HTTPS, the default is 443. Not supported if the target group type isLAMBDA.- Returns:
this
-
protocol
@Stability(Stable) public CfnTargetGroup.TargetGroupConfigProperty.Builder protocol(String protocol) Sets the value ofCfnTargetGroup.TargetGroupConfigProperty.getProtocol()- Parameters:
protocol- The protocol to use for routing traffic to the targets. The default is the protocol of the target group. Not supported if the target group type isLAMBDA.- Returns:
this
-
protocolVersion
@Stability(Stable) public CfnTargetGroup.TargetGroupConfigProperty.Builder protocolVersion(String protocolVersion) Sets the value ofCfnTargetGroup.TargetGroupConfigProperty.getProtocolVersion()- Parameters:
protocolVersion- The protocol version. The default isHTTP1. Not supported if the target group type isLAMBDA.- Returns:
this
-
vpcIdentifier
@Stability(Stable) public CfnTargetGroup.TargetGroupConfigProperty.Builder vpcIdentifier(String vpcIdentifier) Sets the value ofCfnTargetGroup.TargetGroupConfigProperty.getVpcIdentifier()- Parameters:
vpcIdentifier- The ID of the VPC. Not supported if the target group type isLAMBDA.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTargetGroup.TargetGroupConfigProperty>- Returns:
- a new instance of
CfnTargetGroup.TargetGroupConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-