Class ApplicationLoadBalancerProps.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.patterns.ApplicationLoadBalancerProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ApplicationLoadBalancerProps>
- Enclosing interface:
- ApplicationLoadBalancerProps
@Stability(Stable)
public static final class ApplicationLoadBalancerProps.Builder
extends Object
implements software.amazon.jsii.Builder<ApplicationLoadBalancerProps>
A builder for
ApplicationLoadBalancerProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.domainName(String domainName) Sets the value ofApplicationLoadBalancerProps.getDomainName()domainZone(IHostedZone domainZone) Sets the value ofApplicationLoadBalancerProps.getDomainZone()listeners(List<? extends ApplicationListenerProps> listeners) Sets the value ofApplicationLoadBalancerProps.getListeners()Sets the value ofApplicationLoadBalancerProps.getName()publicLoadBalancer(Boolean publicLoadBalancer) Sets the value ofApplicationLoadBalancerProps.getPublicLoadBalancer()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
listeners
@Stability(Stable) public ApplicationLoadBalancerProps.Builder listeners(List<? extends ApplicationListenerProps> listeners) Sets the value ofApplicationLoadBalancerProps.getListeners()- Parameters:
listeners- Listeners (at least one listener) attached to this load balancer. This parameter is required.- Returns:
this
-
name
Sets the value ofApplicationLoadBalancerProps.getName()- Parameters:
name- Name of the load balancer. This parameter is required.- Returns:
this
-
domainName
Sets the value ofApplicationLoadBalancerProps.getDomainName()- Parameters:
domainName- The domain name for the service, e.g. "api.example.com.".- Returns:
this
-
domainZone
Sets the value ofApplicationLoadBalancerProps.getDomainZone()- Parameters:
domainZone- The Route53 hosted zone for the domain, e.g. "example.com.".- Returns:
this
-
publicLoadBalancer
@Stability(Stable) public ApplicationLoadBalancerProps.Builder publicLoadBalancer(Boolean publicLoadBalancer) Sets the value ofApplicationLoadBalancerProps.getPublicLoadBalancer()- Parameters:
publicLoadBalancer- Determines whether the Load Balancer will be internet-facing.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ApplicationLoadBalancerProps>- Returns:
- a new instance of
ApplicationLoadBalancerProps - Throws:
NullPointerException- if any required attribute was not provided
-