Class NetworkLoadBalancerProps.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.NetworkLoadBalancerProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<NetworkLoadBalancerProps>
- Enclosing interface:
- NetworkLoadBalancerProps
@Stability(Stable)
public static final class NetworkLoadBalancerProps.Builder
extends Object
implements software.amazon.jsii.Builder<NetworkLoadBalancerProps>
A builder for
NetworkLoadBalancerProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.crossZoneEnabled(Boolean crossZoneEnabled) Sets the value ofNetworkLoadBalancerProps.getCrossZoneEnabled()deletionProtection(Boolean deletionProtection) Sets the value ofBaseLoadBalancerProps.getDeletionProtection()internetFacing(Boolean internetFacing) Sets the value ofBaseLoadBalancerProps.getInternetFacing()loadBalancerName(String loadBalancerName) Sets the value ofBaseLoadBalancerProps.getLoadBalancerName()Sets the value ofBaseLoadBalancerProps.getVpc()vpcSubnets(SubnetSelection vpcSubnets) Sets the value ofBaseLoadBalancerProps.getVpcSubnets()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
crossZoneEnabled
@Stability(Stable) public NetworkLoadBalancerProps.Builder crossZoneEnabled(Boolean crossZoneEnabled) Sets the value ofNetworkLoadBalancerProps.getCrossZoneEnabled()- Parameters:
crossZoneEnabled- Indicates whether cross-zone load balancing is enabled.- Returns:
this
-
vpc
Sets the value ofBaseLoadBalancerProps.getVpc()- Parameters:
vpc- The VPC network to place the load balancer in. This parameter is required.- Returns:
this
-
deletionProtection
@Stability(Stable) public NetworkLoadBalancerProps.Builder deletionProtection(Boolean deletionProtection) Sets the value ofBaseLoadBalancerProps.getDeletionProtection()- Parameters:
deletionProtection- Indicates whether deletion protection is enabled.- Returns:
this
-
internetFacing
Sets the value ofBaseLoadBalancerProps.getInternetFacing()- Parameters:
internetFacing- Whether the load balancer has an internet-routable address.- Returns:
this
-
loadBalancerName
@Stability(Stable) public NetworkLoadBalancerProps.Builder loadBalancerName(String loadBalancerName) Sets the value ofBaseLoadBalancerProps.getLoadBalancerName()- Parameters:
loadBalancerName- Name of the load balancer.- Returns:
this
-
vpcSubnets
Sets the value ofBaseLoadBalancerProps.getVpcSubnets()- Parameters:
vpcSubnets- Which subnets place the load balancer in.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NetworkLoadBalancerProps>- Returns:
- a new instance of
NetworkLoadBalancerProps - Throws:
NullPointerException- if any required attribute was not provided
-