@Stability(value=Experimental) public static final class AddNetworkTargetsProps.Builder extends Object implements software.amazon.jsii.Builder<AddNetworkTargetsProps>
AddNetworkTargetsProps
Constructor and Description |
---|
Builder() |
@Stability(value=Experimental) public AddNetworkTargetsProps.Builder port(Number port)
AddNetworkTargetsProps.getPort()
port
- The port on which the listener listens for requests. This parameter is required.this
@Stability(value=Experimental) public AddNetworkTargetsProps.Builder deregistrationDelay(Duration deregistrationDelay)
AddNetworkTargetsProps.getDeregistrationDelay()
deregistrationDelay
- The amount of time for Elastic Load Balancing to wait before deregistering a target.
The range is 0-3600 seconds.this
@Stability(value=Experimental) public AddNetworkTargetsProps.Builder healthCheck(HealthCheck healthCheck)
AddNetworkTargetsProps.getHealthCheck()
healthCheck
- Health check configuration.this
@Stability(value=Experimental) public AddNetworkTargetsProps.Builder preserveClientIp(Boolean preserveClientIp)
AddNetworkTargetsProps.getPreserveClientIp()
preserveClientIp
- Indicates whether client IP preservation is enabled.this
@Stability(value=Experimental) public AddNetworkTargetsProps.Builder protocol(Protocol protocol)
AddNetworkTargetsProps.getProtocol()
protocol
- Protocol for target group, expects TCP, TLS, UDP, or TCP_UDP.this
@Stability(value=Experimental) public AddNetworkTargetsProps.Builder proxyProtocolV2(Boolean proxyProtocolV2)
AddNetworkTargetsProps.getProxyProtocolV2()
proxyProtocolV2
- Indicates whether Proxy Protocol version 2 is enabled.this
@Stability(value=Experimental) public AddNetworkTargetsProps.Builder targetGroupName(String targetGroupName)
AddNetworkTargetsProps.getTargetGroupName()
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.this
@Stability(value=Experimental) public AddNetworkTargetsProps.Builder targets(List<? extends INetworkLoadBalancerTarget> targets)
AddNetworkTargetsProps.getTargets()
targets
- The targets to add to this target group.
Can be Instance
, IPAddress
, or any self-registering load balancing
target. If you use either Instance
or IPAddress
as targets, all
target must be of the same type.this
@Stability(value=Experimental) public AddNetworkTargetsProps build()
build
in interface software.amazon.jsii.Builder<AddNetworkTargetsProps>
AddNetworkTargetsProps
NullPointerException
- if any required attribute was not providedCopyright © 2021. All rights reserved.