public static interface TargetGroup.Builder extends SdkPojo, CopyableBuilder<TargetGroup.Builder,TargetGroup>
Modifier and Type | Method and Description |
---|---|
TargetGroup.Builder |
healthCheckEnabled(Boolean healthCheckEnabled)
Indicates whether health checks are enabled.
|
TargetGroup.Builder |
healthCheckIntervalSeconds(Integer healthCheckIntervalSeconds)
The approximate amount of time, in seconds, between health checks of an individual target.
|
TargetGroup.Builder |
healthCheckPath(String healthCheckPath)
The destination for the health check request.
|
TargetGroup.Builder |
healthCheckPort(String healthCheckPort)
The port to use to connect with the target.
|
TargetGroup.Builder |
healthCheckProtocol(ProtocolEnum healthCheckProtocol)
The protocol to use to connect with the target.
|
TargetGroup.Builder |
healthCheckProtocol(String healthCheckProtocol)
The protocol to use to connect with the target.
|
TargetGroup.Builder |
healthCheckTimeoutSeconds(Integer healthCheckTimeoutSeconds)
The amount of time, in seconds, during which no response means a failed health check.
|
TargetGroup.Builder |
healthyThresholdCount(Integer healthyThresholdCount)
The number of consecutive health checks successes required before considering an unhealthy target healthy.
|
TargetGroup.Builder |
loadBalancerArns(Collection<String> loadBalancerArns)
The Amazon Resource Names (ARN) of the load balancers that route traffic to this target group.
|
TargetGroup.Builder |
loadBalancerArns(String... loadBalancerArns)
The Amazon Resource Names (ARN) of the load balancers that route traffic to this target group.
|
default TargetGroup.Builder |
matcher(Consumer<Matcher.Builder> matcher)
The HTTP codes to use when checking for a successful response from a target.
|
TargetGroup.Builder |
matcher(Matcher matcher)
The HTTP codes to use when checking for a successful response from a target.
|
TargetGroup.Builder |
port(Integer port)
The port on which the targets are listening.
|
TargetGroup.Builder |
protocol(ProtocolEnum protocol)
The protocol to use for routing traffic to the targets.
|
TargetGroup.Builder |
protocol(String protocol)
The protocol to use for routing traffic to the targets.
|
TargetGroup.Builder |
targetGroupArn(String targetGroupArn)
The Amazon Resource Name (ARN) of the target group.
|
TargetGroup.Builder |
targetGroupName(String targetGroupName)
The name of the target group.
|
TargetGroup.Builder |
targetType(String targetType)
The type of target that you must specify when registering targets with this target group.
|
TargetGroup.Builder |
targetType(TargetTypeEnum targetType)
The type of target that you must specify when registering targets with this target group.
|
TargetGroup.Builder |
unhealthyThresholdCount(Integer unhealthyThresholdCount)
The number of consecutive health check failures required before considering the target unhealthy.
|
TargetGroup.Builder |
vpcId(String vpcId)
The ID of the VPC for the targets.
|
copy
applyMutation, build
TargetGroup.Builder targetGroupArn(String targetGroupArn)
The Amazon Resource Name (ARN) of the target group.
targetGroupArn
- The Amazon Resource Name (ARN) of the target group.TargetGroup.Builder targetGroupName(String targetGroupName)
The name of the target group.
targetGroupName
- The name of the target group.TargetGroup.Builder protocol(String protocol)
The protocol to use for routing traffic to the targets.
protocol
- The protocol to use for routing traffic to the targets.ProtocolEnum
,
ProtocolEnum
TargetGroup.Builder protocol(ProtocolEnum protocol)
The protocol to use for routing traffic to the targets.
protocol
- The protocol to use for routing traffic to the targets.ProtocolEnum
,
ProtocolEnum
TargetGroup.Builder port(Integer port)
The port on which the targets are listening.
port
- The port on which the targets are listening.TargetGroup.Builder vpcId(String vpcId)
The ID of the VPC for the targets.
vpcId
- The ID of the VPC for the targets.TargetGroup.Builder healthCheckProtocol(String healthCheckProtocol)
The protocol to use to connect with the target.
healthCheckProtocol
- The protocol to use to connect with the target.ProtocolEnum
,
ProtocolEnum
TargetGroup.Builder healthCheckProtocol(ProtocolEnum healthCheckProtocol)
The protocol to use to connect with the target.
healthCheckProtocol
- The protocol to use to connect with the target.ProtocolEnum
,
ProtocolEnum
TargetGroup.Builder healthCheckPort(String healthCheckPort)
The port to use to connect with the target.
healthCheckPort
- The port to use to connect with the target.TargetGroup.Builder healthCheckEnabled(Boolean healthCheckEnabled)
Indicates whether health checks are enabled.
healthCheckEnabled
- Indicates whether health checks are enabled.TargetGroup.Builder healthCheckIntervalSeconds(Integer healthCheckIntervalSeconds)
The approximate amount of time, in seconds, between health checks of an individual target.
healthCheckIntervalSeconds
- The approximate amount of time, in seconds, between health checks of an individual target.TargetGroup.Builder healthCheckTimeoutSeconds(Integer healthCheckTimeoutSeconds)
The amount of time, in seconds, during which no response means a failed health check.
healthCheckTimeoutSeconds
- The amount of time, in seconds, during which no response means a failed health check.TargetGroup.Builder healthyThresholdCount(Integer healthyThresholdCount)
The number of consecutive health checks successes required before considering an unhealthy target healthy.
healthyThresholdCount
- The number of consecutive health checks successes required before considering an unhealthy target
healthy.TargetGroup.Builder unhealthyThresholdCount(Integer unhealthyThresholdCount)
The number of consecutive health check failures required before considering the target unhealthy.
unhealthyThresholdCount
- The number of consecutive health check failures required before considering the target unhealthy.TargetGroup.Builder healthCheckPath(String healthCheckPath)
The destination for the health check request.
healthCheckPath
- The destination for the health check request.TargetGroup.Builder matcher(Matcher matcher)
The HTTP codes to use when checking for a successful response from a target.
matcher
- The HTTP codes to use when checking for a successful response from a target.default TargetGroup.Builder matcher(Consumer<Matcher.Builder> matcher)
The HTTP codes to use when checking for a successful response from a target.
This is a convenience that creates an instance of theMatcher.Builder
avoiding the need to create one
manually via Matcher.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to matcher(Matcher)
.matcher
- a consumer that will call methods on Matcher.Builder
matcher(Matcher)
TargetGroup.Builder loadBalancerArns(Collection<String> loadBalancerArns)
The Amazon Resource Names (ARN) of the load balancers that route traffic to this target group.
loadBalancerArns
- The Amazon Resource Names (ARN) of the load balancers that route traffic to this target group.TargetGroup.Builder loadBalancerArns(String... loadBalancerArns)
The Amazon Resource Names (ARN) of the load balancers that route traffic to this target group.
loadBalancerArns
- The Amazon Resource Names (ARN) of the load balancers that route traffic to this target group.TargetGroup.Builder targetType(String targetType)
The type of target that you must specify when registering targets with this target group. The possible values
are instance
(targets are specified by instance ID) or ip
(targets are specified by
IP address).
targetType
- The type of target that you must specify when registering targets with this target group. The possible
values are instance
(targets are specified by instance ID) or ip
(targets
are specified by IP address).TargetTypeEnum
,
TargetTypeEnum
TargetGroup.Builder targetType(TargetTypeEnum targetType)
The type of target that you must specify when registering targets with this target group. The possible values
are instance
(targets are specified by instance ID) or ip
(targets are specified by
IP address).
targetType
- The type of target that you must specify when registering targets with this target group. The possible
values are instance
(targets are specified by instance ID) or ip
(targets
are specified by IP address).TargetTypeEnum
,
TargetTypeEnum
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.