Class NetworkListenerLookupOptions.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.NetworkListenerLookupOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<NetworkListenerLookupOptions>
- Enclosing interface:
NetworkListenerLookupOptions
@Stability(Stable)
public static final class NetworkListenerLookupOptions.Builder
extends Object
implements software.amazon.jsii.Builder<NetworkListenerLookupOptions>
A builder for
NetworkListenerLookupOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.listenerPort(Number listenerPort) Sets the value ofBaseListenerLookupOptions.getListenerPort()listenerProtocol(Protocol listenerProtocol) Sets the value ofNetworkListenerLookupOptions.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
-
listenerProtocol
@Stability(Stable) public NetworkListenerLookupOptions.Builder listenerProtocol(Protocol listenerProtocol) Sets the value ofNetworkListenerLookupOptions.getListenerProtocol()- Parameters:
listenerProtocol- Protocol of the listener port.- Returns:
this
-
listenerPort
Sets the value ofBaseListenerLookupOptions.getListenerPort()- Parameters:
listenerPort- Filter listeners by listener port.- Returns:
this
-
loadBalancerArn
@Stability(Stable) public NetworkListenerLookupOptions.Builder loadBalancerArn(String loadBalancerArn) Sets the value ofBaseListenerLookupOptions.getLoadBalancerArn()- Parameters:
loadBalancerArn- Filter listeners by associated load balancer arn.- Returns:
this
-
loadBalancerTags
@Stability(Stable) public NetworkListenerLookupOptions.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<NetworkListenerLookupOptions>- Returns:
- a new instance of
NetworkListenerLookupOptions - Throws:
NullPointerException- if any required attribute was not provided
-