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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.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
-
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 BaseLoadBalancerProps.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
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:
build
in interfacesoftware.amazon.jsii.Builder<BaseLoadBalancerProps>
- Returns:
- a new instance of
BaseLoadBalancerProps
- Throws:
NullPointerException
- if any required attribute was not provided
-