Class BaseTargetGroupProps.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.BaseTargetGroupProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<BaseTargetGroupProps>
- Enclosing interface:
BaseTargetGroupProps
@Stability(Stable)
public static final class BaseTargetGroupProps.Builder
extends Object
implements software.amazon.jsii.Builder<BaseTargetGroupProps>
A builder for
BaseTargetGroupProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.crossZoneEnabled
(Boolean crossZoneEnabled) Sets the value ofBaseTargetGroupProps.getCrossZoneEnabled()
deregistrationDelay
(Duration deregistrationDelay) Sets the value ofBaseTargetGroupProps.getDeregistrationDelay()
healthCheck
(HealthCheck healthCheck) Sets the value ofBaseTargetGroupProps.getHealthCheck()
ipAddressType
(TargetGroupIpAddressType ipAddressType) Sets the value ofBaseTargetGroupProps.getIpAddressType()
targetGroupName
(String targetGroupName) Sets the value ofBaseTargetGroupProps.getTargetGroupName()
targetType
(TargetType targetType) Sets the value ofBaseTargetGroupProps.getTargetType()
Sets the value ofBaseTargetGroupProps.getVpc()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
crossZoneEnabled
Sets the value ofBaseTargetGroupProps.getCrossZoneEnabled()
- Parameters:
crossZoneEnabled
- Indicates whether cross zone load balancing is enabled.- Returns:
this
-
deregistrationDelay
@Stability(Stable) public BaseTargetGroupProps.Builder deregistrationDelay(Duration deregistrationDelay) Sets the value ofBaseTargetGroupProps.getDeregistrationDelay()
- Parameters:
deregistrationDelay
- The amount of time for Elastic Load Balancing to wait before deregistering a target. The range is 0-3600 seconds.- Returns:
this
-
healthCheck
Sets the value ofBaseTargetGroupProps.getHealthCheck()
- Parameters:
healthCheck
- Health check configuration.- Returns:
this
-
ipAddressType
@Stability(Stable) public BaseTargetGroupProps.Builder ipAddressType(TargetGroupIpAddressType ipAddressType) Sets the value ofBaseTargetGroupProps.getIpAddressType()
- Parameters:
ipAddressType
- The type of IP addresses of the targets registered with the target group.- Returns:
this
-
targetGroupName
Sets the value ofBaseTargetGroupProps.getTargetGroupName()
- Parameters:
targetGroupName
- The name of the target group. This name must be unique per region per account, can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.- Returns:
this
-
targetType
Sets the value ofBaseTargetGroupProps.getTargetType()
- Parameters:
targetType
- The type of targets registered to this TargetGroup, either IP or Instance. All targets registered into the group must be of this type. If you register targets to the TargetGroup in the CDK app, the TargetType is determined automatically.- Returns:
this
-
vpc
Sets the value ofBaseTargetGroupProps.getVpc()
- Parameters:
vpc
- The virtual private cloud (VPC). only ifTargetType
isIp
orInstanceId
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<BaseTargetGroupProps>
- Returns:
- a new instance of
BaseTargetGroupProps
- Throws:
NullPointerException
- if any required attribute was not provided
-