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