Class NetworkLoadBalancer.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.NetworkLoadBalancer.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<NetworkLoadBalancer>
- Enclosing class:
- NetworkLoadBalancer
@Stability(Stable)
public static final class NetworkLoadBalancer.Builder
extends Object
implements software.amazon.jsii.Builder<NetworkLoadBalancer>
A fluent builder for
NetworkLoadBalancer
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static NetworkLoadBalancer.Builder
crossZoneEnabled
(Boolean crossZoneEnabled) Indicates whether cross-zone load balancing is enabled.deletionProtection
(Boolean deletionProtection) Indicates whether deletion protection is enabled.internetFacing
(Boolean internetFacing) Whether the load balancer has an internet-routable address.loadBalancerName
(String loadBalancerName) Name of the load balancer.The VPC network to place the load balancer in.vpcSubnets
(SubnetSelection vpcSubnets) Which subnets place the load balancer in.
-
Method Details
-
create
@Stability(Stable) public static NetworkLoadBalancer.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
NetworkLoadBalancer.Builder
.
-
vpc
The VPC network to place the load balancer in.- Parameters:
vpc
- The VPC network to place the load balancer in. This parameter is required.- Returns:
this
-
deletionProtection
@Stability(Stable) public NetworkLoadBalancer.Builder deletionProtection(Boolean deletionProtection) Indicates whether deletion protection is enabled.Default: false
- Parameters:
deletionProtection
- Indicates whether deletion protection is enabled. This parameter is required.- Returns:
this
-
internetFacing
Whether the load balancer has an internet-routable address.Default: false
- Parameters:
internetFacing
- Whether the load balancer has an internet-routable address. This parameter is required.- Returns:
this
-
loadBalancerName
Name of the load balancer.Default: - Automatically generated name.
- Parameters:
loadBalancerName
- Name of the load balancer. This parameter is required.- Returns:
this
-
vpcSubnets
Which subnets place the load balancer in.Default: - the Vpc default strategy.
- Parameters:
vpcSubnets
- Which subnets place the load balancer in. This parameter is required.- Returns:
this
-
crossZoneEnabled
Indicates whether cross-zone load balancing is enabled.Default: false
- Parameters:
crossZoneEnabled
- Indicates whether cross-zone load balancing is enabled. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<NetworkLoadBalancer>
- Returns:
- a newly built instance of
NetworkLoadBalancer
.
-