@Stability(value=Experimental) public static final class ListenerOptions.Builder extends Object implements software.amazon.jsii.Builder<ListenerOptions>
ListenerOptions| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ListenerOptions |
build()
Builds the configured instance.
|
ListenerOptions.Builder |
clientAffinity(ClientAffinity clientAffinity)
Sets the value of
ListenerOptions.getClientAffinity() |
ListenerOptions.Builder |
listenerName(String listenerName)
Sets the value of
ListenerOptions.getListenerName() |
ListenerOptions.Builder |
portRanges(List<? extends PortRange> portRanges)
Sets the value of
ListenerOptions.getPortRanges() |
ListenerOptions.Builder |
protocol(ConnectionProtocol protocol)
Sets the value of
ListenerOptions.getProtocol() |
@Stability(value=Experimental) public ListenerOptions.Builder portRanges(List<? extends PortRange> portRanges)
ListenerOptions.getPortRanges()portRanges - The list of port ranges for the connections from clients to the accelerator. This parameter is required.this@Stability(value=Experimental) public ListenerOptions.Builder clientAffinity(ClientAffinity clientAffinity)
ListenerOptions.getClientAffinity()clientAffinity - Client affinity to direct all requests from a user to the same endpoint.
If you have stateful applications, client affinity lets you direct all
requests from a user to the same endpoint.
By default, each connection from each client is routed to seperate endpoints. Set client affinity to SOURCE_IP to route all connections from a single client to the same endpoint.
this@Stability(value=Experimental) public ListenerOptions.Builder listenerName(String listenerName)
ListenerOptions.getListenerName()listenerName - Name of the listener.this@Stability(value=Experimental) public ListenerOptions.Builder protocol(ConnectionProtocol protocol)
ListenerOptions.getProtocol()protocol - The protocol for the connections from clients to the accelerator.this@Stability(value=Experimental) public ListenerOptions build()
build in interface software.amazon.jsii.Builder<ListenerOptions>ListenerOptionsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.