public static final class NetworkLoadBalancerProps.Builder
extends java.lang.Object
NetworkLoadBalancerProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
NetworkLoadBalancerProps |
build()
Builds the configured instance.
|
NetworkLoadBalancerProps.Builder |
crossZoneEnabled(java.lang.Boolean crossZoneEnabled)
Sets the value of
NetworkLoadBalancerProps.getCrossZoneEnabled() |
NetworkLoadBalancerProps.Builder |
deletionProtection(java.lang.Boolean deletionProtection)
Sets the value of
BaseLoadBalancerProps.getDeletionProtection() |
NetworkLoadBalancerProps.Builder |
internetFacing(java.lang.Boolean internetFacing)
Sets the value of
BaseLoadBalancerProps.getInternetFacing() |
NetworkLoadBalancerProps.Builder |
loadBalancerName(java.lang.String loadBalancerName)
Sets the value of
BaseLoadBalancerProps.getLoadBalancerName() |
NetworkLoadBalancerProps.Builder |
vpc(IVpc vpc)
Sets the value of
BaseLoadBalancerProps.getVpc() |
NetworkLoadBalancerProps.Builder |
vpcSubnets(SubnetSelection vpcSubnets)
Sets the value of
BaseLoadBalancerProps.getVpcSubnets() |
public NetworkLoadBalancerProps.Builder crossZoneEnabled(java.lang.Boolean crossZoneEnabled)
NetworkLoadBalancerProps.getCrossZoneEnabled()
crossZoneEnabled
- Indicates whether cross-zone load balancing is enabled.this
public NetworkLoadBalancerProps.Builder vpc(IVpc vpc)
BaseLoadBalancerProps.getVpc()
vpc
- The VPC network to place the load balancer in. This parameter is required.this
public NetworkLoadBalancerProps.Builder deletionProtection(java.lang.Boolean deletionProtection)
BaseLoadBalancerProps.getDeletionProtection()
deletionProtection
- Indicates whether deletion protection is enabled.this
public NetworkLoadBalancerProps.Builder internetFacing(java.lang.Boolean internetFacing)
BaseLoadBalancerProps.getInternetFacing()
internetFacing
- Whether the load balancer has an internet-routable address.this
public NetworkLoadBalancerProps.Builder loadBalancerName(java.lang.String loadBalancerName)
BaseLoadBalancerProps.getLoadBalancerName()
loadBalancerName
- Name of the load balancer.this
public NetworkLoadBalancerProps.Builder vpcSubnets(SubnetSelection vpcSubnets)
BaseLoadBalancerProps.getVpcSubnets()
vpcSubnets
- Which subnets place the load balancer in.this
public NetworkLoadBalancerProps build()
NetworkLoadBalancerProps
java.lang.NullPointerException
- if any required attribute was not provided