Class NetworkLoadBalancerAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.NetworkLoadBalancerAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<NetworkLoadBalancerAttributes>
- Enclosing interface:
NetworkLoadBalancerAttributes
@Stability(Stable)
public static final class NetworkLoadBalancerAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<NetworkLoadBalancerAttributes>
A builder for
NetworkLoadBalancerAttributes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.loadBalancerArn
(String loadBalancerArn) Sets the value ofNetworkLoadBalancerAttributes.getLoadBalancerArn()
loadBalancerCanonicalHostedZoneId
(String loadBalancerCanonicalHostedZoneId) Sets the value ofNetworkLoadBalancerAttributes.getLoadBalancerCanonicalHostedZoneId()
loadBalancerDnsName
(String loadBalancerDnsName) Sets the value ofNetworkLoadBalancerAttributes.getLoadBalancerDnsName()
Sets the value ofNetworkLoadBalancerAttributes.getVpc()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
loadBalancerArn
@Stability(Stable) public NetworkLoadBalancerAttributes.Builder loadBalancerArn(String loadBalancerArn) Sets the value ofNetworkLoadBalancerAttributes.getLoadBalancerArn()
- Parameters:
loadBalancerArn
- ARN of the load balancer. This parameter is required.- Returns:
this
-
loadBalancerCanonicalHostedZoneId
@Stability(Stable) public NetworkLoadBalancerAttributes.Builder loadBalancerCanonicalHostedZoneId(String loadBalancerCanonicalHostedZoneId) Sets the value ofNetworkLoadBalancerAttributes.getLoadBalancerCanonicalHostedZoneId()
- Parameters:
loadBalancerCanonicalHostedZoneId
- The canonical hosted zone ID of this load balancer.- Returns:
this
-
loadBalancerDnsName
@Stability(Stable) public NetworkLoadBalancerAttributes.Builder loadBalancerDnsName(String loadBalancerDnsName) Sets the value ofNetworkLoadBalancerAttributes.getLoadBalancerDnsName()
- Parameters:
loadBalancerDnsName
- The DNS name of this load balancer.- Returns:
this
-
vpc
Sets the value ofNetworkLoadBalancerAttributes.getVpc()
- Parameters:
vpc
- The VPC to associate with the load balancer.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<NetworkLoadBalancerAttributes>
- Returns:
- a new instance of
NetworkLoadBalancerAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-