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