Interface TargetGroupConfig.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<TargetGroupConfig.Builder,
,TargetGroupConfig> SdkBuilder<TargetGroupConfig.Builder,
,TargetGroupConfig> SdkPojo
- Enclosing class:
TargetGroupConfig
-
Method Summary
Modifier and TypeMethodDescriptiondefault TargetGroupConfig.Builder
healthCheck
(Consumer<HealthCheckConfig.Builder> healthCheck) The health check configuration.healthCheck
(HealthCheckConfig healthCheck) The health check configuration.ipAddressType
(String ipAddressType) The type of IP address used for the target group.ipAddressType
(IpAddressType ipAddressType) The type of IP address used for the target group.lambdaEventStructureVersion
(String lambdaEventStructureVersion) The version of the event structure that your Lambda function receives.lambdaEventStructureVersion
(LambdaEventStructureVersion lambdaEventStructureVersion) The version of the event structure that your Lambda function receives.The port on which the targets are listening.The protocol to use for routing traffic to the targets.protocol
(TargetGroupProtocol protocol) The protocol to use for routing traffic to the targets.protocolVersion
(String protocolVersion) The protocol version.protocolVersion
(TargetGroupProtocolVersion protocolVersion) The protocol version.vpcIdentifier
(String vpcIdentifier) The ID of the VPC.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
healthCheck
The health check configuration. Not supported if the target group type is
LAMBDA
orALB
.- Parameters:
healthCheck
- The health check configuration. Not supported if the target group type isLAMBDA
orALB
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
healthCheck
The health check configuration. Not supported if the target group type is
This is a convenience method that creates an instance of theLAMBDA
orALB
.HealthCheckConfig.Builder
avoiding the need to create one manually viaHealthCheckConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tohealthCheck(HealthCheckConfig)
.- Parameters:
healthCheck
- a consumer that will call methods onHealthCheckConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ipAddressType
The type of IP address used for the target group. Supported only if the target group type is
IP
. The default isIPV4
.- Parameters:
ipAddressType
- The type of IP address used for the target group. Supported only if the target group type isIP
. The default isIPV4
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ipAddressType
The type of IP address used for the target group. Supported only if the target group type is
IP
. The default isIPV4
.- Parameters:
ipAddressType
- The type of IP address used for the target group. Supported only if the target group type isIP
. The default isIPV4
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lambdaEventStructureVersion
The version of the event structure that your Lambda function receives. Supported only if the target group type is
LAMBDA
. The default isV1
.- 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lambdaEventStructureVersion
TargetGroupConfig.Builder lambdaEventStructureVersion(LambdaEventStructureVersion lambdaEventStructureVersion) The version of the event structure that your Lambda function receives. Supported only if the target group type is
LAMBDA
. The default isV1
.- 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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 is
LAMBDA
.- 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:
- Returns a reference to this object so that method calls can be chained together.
-
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 is
LAMBDA
.- 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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 is
LAMBDA
.- 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
protocolVersion
The protocol version. The default is
HTTP1
. Not supported if the target group type isLAMBDA
.- Parameters:
protocolVersion
- The protocol version. The default isHTTP1
. Not supported if the target group type isLAMBDA
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
protocolVersion
The protocol version. The default is
HTTP1
. Not supported if the target group type isLAMBDA
.- Parameters:
protocolVersion
- The protocol version. The default isHTTP1
. Not supported if the target group type isLAMBDA
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
vpcIdentifier
The ID of the VPC. Not supported if the target group type is
LAMBDA
.- Parameters:
vpcIdentifier
- The ID of the VPC. Not supported if the target group type isLAMBDA
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-