Class ApplicationListenerLookupOptions.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.ApplicationListenerLookupOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ApplicationListenerLookupOptions>
- Enclosing interface:
ApplicationListenerLookupOptions
@Stability(Stable)
public static final class ApplicationListenerLookupOptions.Builder
extends Object
implements software.amazon.jsii.Builder<ApplicationListenerLookupOptions>
A builder for
ApplicationListenerLookupOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.listenerArn(String listenerArn) Sets the value ofApplicationListenerLookupOptions.getListenerArn()listenerPort(Number listenerPort) Sets the value ofBaseListenerLookupOptions.getListenerPort()listenerProtocol(ApplicationProtocol listenerProtocol) Sets the value ofApplicationListenerLookupOptions.getListenerProtocol()loadBalancerArn(String loadBalancerArn) Sets the value ofBaseListenerLookupOptions.getLoadBalancerArn()loadBalancerTags(Map<String, String> loadBalancerTags) Sets the value ofBaseListenerLookupOptions.getLoadBalancerTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
listenerArn
Sets the value ofApplicationListenerLookupOptions.getListenerArn()- Parameters:
listenerArn- ARN of the listener to look up.- Returns:
this
-
listenerProtocol
@Stability(Stable) public ApplicationListenerLookupOptions.Builder listenerProtocol(ApplicationProtocol listenerProtocol) Sets the value ofApplicationListenerLookupOptions.getListenerProtocol()- Parameters:
listenerProtocol- Filter listeners by listener protocol.- Returns:
this
-
listenerPort
@Stability(Stable) public ApplicationListenerLookupOptions.Builder listenerPort(Number listenerPort) Sets the value ofBaseListenerLookupOptions.getListenerPort()- Parameters:
listenerPort- Filter listeners by listener port.- Returns:
this
-
loadBalancerArn
@Stability(Stable) public ApplicationListenerLookupOptions.Builder loadBalancerArn(String loadBalancerArn) Sets the value ofBaseListenerLookupOptions.getLoadBalancerArn()- Parameters:
loadBalancerArn- Filter listeners by associated load balancer arn.- Returns:
this
-
loadBalancerTags
@Stability(Stable) public ApplicationListenerLookupOptions.Builder loadBalancerTags(Map<String, String> loadBalancerTags) Sets the value ofBaseListenerLookupOptions.getLoadBalancerTags()- Parameters:
loadBalancerTags- Filter listeners by associated load balancer tags.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ApplicationListenerLookupOptions>- Returns:
- a new instance of
ApplicationListenerLookupOptions - Throws:
NullPointerException- if any required attribute was not provided
-