Class NetworkLoadBalancerLookupOptions.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.NetworkLoadBalancerLookupOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<NetworkLoadBalancerLookupOptions>
- Enclosing interface:
NetworkLoadBalancerLookupOptions
@Stability(Stable)
public static final class NetworkLoadBalancerLookupOptions.Builder
extends Object
implements software.amazon.jsii.Builder<NetworkLoadBalancerLookupOptions>
A builder for
NetworkLoadBalancerLookupOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.loadBalancerArn
(String loadBalancerArn) Sets the value ofBaseLoadBalancerLookupOptions.getLoadBalancerArn()
loadBalancerTags
(Map<String, String> loadBalancerTags) Sets the value ofBaseLoadBalancerLookupOptions.getLoadBalancerTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
loadBalancerArn
@Stability(Stable) public NetworkLoadBalancerLookupOptions.Builder loadBalancerArn(String loadBalancerArn) Sets the value ofBaseLoadBalancerLookupOptions.getLoadBalancerArn()
- Parameters:
loadBalancerArn
- Find by load balancer's ARN.- Returns:
this
-
loadBalancerTags
@Stability(Stable) public NetworkLoadBalancerLookupOptions.Builder loadBalancerTags(Map<String, String> loadBalancerTags) Sets the value ofBaseLoadBalancerLookupOptions.getLoadBalancerTags()
- Parameters:
loadBalancerTags
- Match load balancer tags.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<NetworkLoadBalancerLookupOptions>
- Returns:
- a new instance of
NetworkLoadBalancerLookupOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-