@Stability(value=Stable) public static final class ListenerProps.Builder extends Object implements software.amazon.jsii.Builder<ListenerProps>
ListenerProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ListenerProps.Builder |
accelerator(IAccelerator accelerator)
Sets the value of
ListenerProps.getAccelerator() |
ListenerProps |
build()
Builds the configured instance.
|
ListenerProps.Builder |
clientAffinity(ClientAffinity clientAffinity)
Sets the value of
ListenerOptions.getClientAffinity() |
ListenerProps.Builder |
listenerName(String listenerName)
Sets the value of
ListenerOptions.getListenerName() |
ListenerProps.Builder |
portRanges(List<? extends PortRange> portRanges)
Sets the value of
ListenerOptions.getPortRanges() |
ListenerProps.Builder |
protocol(ConnectionProtocol protocol)
Sets the value of
ListenerOptions.getProtocol() |
@Stability(value=Stable) public ListenerProps.Builder accelerator(IAccelerator accelerator)
ListenerProps.getAccelerator()accelerator - The accelerator for this listener. This parameter is required.this@Stability(value=Stable) public ListenerProps.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=Stable) public ListenerProps.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=Stable) public ListenerProps.Builder listenerName(String listenerName)
ListenerOptions.getListenerName()listenerName - Name of the listener.this@Stability(value=Stable) public ListenerProps.Builder protocol(ConnectionProtocol protocol)
ListenerOptions.getProtocol()protocol - The protocol for the connections from clients to the accelerator.this@Stability(value=Stable) public ListenerProps build()
build in interface software.amazon.jsii.Builder<ListenerProps>ListenerPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.