public static final class LoadBalancerProps.Builder extends Object
LoadBalancerProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
LoadBalancerProps |
build()
Builds the configured instance.
|
LoadBalancerProps.Builder |
withHealthCheck(HealthCheck value)
Sets the value of HealthCheck
|
LoadBalancerProps.Builder |
withInternetFacing(Boolean value)
Sets the value of InternetFacing
|
LoadBalancerProps.Builder |
withListeners(List<LoadBalancerListener> value)
Sets the value of Listeners
|
LoadBalancerProps.Builder |
withTargets(List<ILoadBalancerTarget> value)
Sets the value of Targets
|
LoadBalancerProps.Builder |
withVpc(software.amazon.awscdk.services.ec2.VpcNetworkRef value)
Sets the value of Vpc
|
public LoadBalancerProps.Builder withVpc(software.amazon.awscdk.services.ec2.VpcNetworkRef value)
value - VPC network of the fleet instancesthispublic LoadBalancerProps.Builder withHealthCheck(@Nullable HealthCheck value)
value - Health check settings for the load balancing targets.
Not required but recommended.thispublic LoadBalancerProps.Builder withInternetFacing(@Nullable Boolean value)
value - 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.thispublic LoadBalancerProps.Builder withListeners(@Nullable List<LoadBalancerListener> value)
value - What listeners to set up for the load balancer.
Can also be added by .addListener()thispublic LoadBalancerProps.Builder withTargets(@Nullable List<ILoadBalancerTarget> value)
value - What targets to load balance to.
Can also be added by .addTarget()thispublic LoadBalancerProps build()
LoadBalancerPropsNullPointerException - if any required attribute was not providedCopyright © 2018. All rights reserved.