@Stability(value=Experimental) public static final class LoadBalancerProps.Builder extends Object implements software.amazon.jsii.Builder<LoadBalancerProps>
LoadBalancerProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
LoadBalancerProps |
build()
Builds the configured instance.
|
LoadBalancerProps.Builder |
crossZone(Boolean crossZone)
Sets the value of
LoadBalancerProps.getCrossZone() |
LoadBalancerProps.Builder |
healthCheck(HealthCheck healthCheck)
Sets the value of
LoadBalancerProps.getHealthCheck() |
LoadBalancerProps.Builder |
internetFacing(Boolean internetFacing)
Sets the value of
LoadBalancerProps.getInternetFacing() |
LoadBalancerProps.Builder |
listeners(List<? extends LoadBalancerListener> listeners)
Sets the value of
LoadBalancerProps.getListeners() |
LoadBalancerProps.Builder |
subnetSelection(SubnetSelection subnetSelection)
Sets the value of
LoadBalancerProps.getSubnetSelection() |
LoadBalancerProps.Builder |
targets(List<? extends ILoadBalancerTarget> targets)
Sets the value of
LoadBalancerProps.getTargets() |
LoadBalancerProps.Builder |
vpc(IVpc vpc)
Sets the value of
LoadBalancerProps.getVpc() |
@Stability(value=Experimental) public LoadBalancerProps.Builder vpc(IVpc vpc)
LoadBalancerProps.getVpc()vpc - VPC network of the fleet instances. This parameter is required.this@Stability(value=Experimental) public LoadBalancerProps.Builder crossZone(Boolean crossZone)
LoadBalancerProps.getCrossZone()crossZone - Whether cross zone load balancing is enabled.
This controls whether the load balancer evenly distributes requests
across each availability zonethis@Stability(value=Experimental) public LoadBalancerProps.Builder healthCheck(HealthCheck healthCheck)
LoadBalancerProps.getHealthCheck()healthCheck - Health check settings for the load balancing targets.
Not required but recommended.this@Stability(value=Experimental) public LoadBalancerProps.Builder internetFacing(Boolean internetFacing)
LoadBalancerProps.getInternetFacing()internetFacing - Whether this is an internet-facing Load Balancer.
This controls whether the LB has a public IP address assigned. It does
not open up the Load Balancer's security groups to public internet access.this@Stability(value=Experimental) public LoadBalancerProps.Builder listeners(List<? extends LoadBalancerListener> listeners)
LoadBalancerProps.getListeners()listeners - What listeners to set up for the load balancer.
Can also be added by .addListener()this@Stability(value=Experimental) public LoadBalancerProps.Builder subnetSelection(SubnetSelection subnetSelection)
LoadBalancerProps.getSubnetSelection()subnetSelection - Which subnets to deploy the load balancer.
Can be used to define a specific set of subnets to deploy the load balancer to.
Useful multiple public or private subnets are covering the same availability zone.this@Stability(value=Experimental) public LoadBalancerProps.Builder targets(List<? extends ILoadBalancerTarget> targets)
LoadBalancerProps.getTargets()targets - What targets to load balance to.
Can also be added by .addTarget()this@Stability(value=Experimental) public LoadBalancerProps build()
build in interface software.amazon.jsii.Builder<LoadBalancerProps>LoadBalancerPropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.