@Generated(value="software.amazon.awssdk:codegen") public final class Listener extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Listener.Builder,Listener>
A complex type for a listener.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Listener.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Listener.Builder |
builder() |
ClientAffinity |
clientAffinity()
Client affinity lets you direct all requests from a user to the same endpoint, if you have stateful applications,
regardless of the port and protocol of the client request.
|
String |
clientAffinityAsString()
Client affinity lets you direct all requests from a user to the same endpoint, if you have stateful applications,
regardless of the port and protocol of the client request.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasPortRanges()
Returns true if the PortRanges property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
String |
listenerArn()
The Amazon Resource Name (ARN) of the listener.
|
List<PortRange> |
portRanges()
The list of port ranges for the connections from clients to the accelerator.
|
Protocol |
protocol()
The protocol for the connections from clients to the accelerator.
|
String |
protocolAsString()
The protocol for the connections from clients to the accelerator.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Listener.Builder> |
serializableBuilderClass() |
Listener.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String listenerArn()
The Amazon Resource Name (ARN) of the listener.
public final boolean hasPortRanges()
public final List<PortRange> portRanges()
The list of port ranges for the connections from clients to the accelerator.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasPortRanges() to see if a value was sent in this field.
public final Protocol protocol()
The protocol for the connections from clients to the accelerator.
If the service returns an enum value that is not available in the current SDK version, protocol will
return Protocol.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
protocolAsString().
Protocolpublic final String protocolAsString()
The protocol for the connections from clients to the accelerator.
If the service returns an enum value that is not available in the current SDK version, protocol will
return Protocol.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
protocolAsString().
Protocolpublic final ClientAffinity clientAffinity()
Client affinity lets you direct all requests from a user to the same endpoint, if you have stateful applications, regardless of the port and protocol of the client request. Client affinity gives you control over whether to always route each client to the same specific endpoint.
AWS Global Accelerator uses a consistent-flow hashing algorithm to choose the optimal endpoint for a connection.
If client affinity is NONE, Global Accelerator uses the "five-tuple" (5-tuple) properties—source IP
address, source port, destination IP address, destination port, and protocol—to select the hash value, and then
chooses the best endpoint. However, with this setting, if someone uses different ports to connect to Global
Accelerator, their connections might not be always routed to the same endpoint because the hash value changes.
If you want a given client to always be routed to the same endpoint, set client affinity to
SOURCE_IP instead. When you use the SOURCE_IP setting, Global Accelerator uses the
"two-tuple" (2-tuple) properties— source (client) IP address and destination IP address—to select the hash value.
The default value is NONE.
If the service returns an enum value that is not available in the current SDK version, clientAffinity
will return ClientAffinity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from clientAffinityAsString().
AWS Global Accelerator uses a consistent-flow hashing algorithm to choose the optimal endpoint for a
connection. If client affinity is NONE, Global Accelerator uses the "five-tuple" (5-tuple)
properties—source IP address, source port, destination IP address, destination port, and protocol—to
select the hash value, and then chooses the best endpoint. However, with this setting, if someone uses
different ports to connect to Global Accelerator, their connections might not be always routed to the
same endpoint because the hash value changes.
If you want a given client to always be routed to the same endpoint, set client affinity to
SOURCE_IP instead. When you use the SOURCE_IP setting, Global Accelerator uses
the "two-tuple" (2-tuple) properties— source (client) IP address and destination IP address—to select the
hash value.
The default value is NONE.
ClientAffinitypublic final String clientAffinityAsString()
Client affinity lets you direct all requests from a user to the same endpoint, if you have stateful applications, regardless of the port and protocol of the client request. Client affinity gives you control over whether to always route each client to the same specific endpoint.
AWS Global Accelerator uses a consistent-flow hashing algorithm to choose the optimal endpoint for a connection.
If client affinity is NONE, Global Accelerator uses the "five-tuple" (5-tuple) properties—source IP
address, source port, destination IP address, destination port, and protocol—to select the hash value, and then
chooses the best endpoint. However, with this setting, if someone uses different ports to connect to Global
Accelerator, their connections might not be always routed to the same endpoint because the hash value changes.
If you want a given client to always be routed to the same endpoint, set client affinity to
SOURCE_IP instead. When you use the SOURCE_IP setting, Global Accelerator uses the
"two-tuple" (2-tuple) properties— source (client) IP address and destination IP address—to select the hash value.
The default value is NONE.
If the service returns an enum value that is not available in the current SDK version, clientAffinity
will return ClientAffinity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from clientAffinityAsString().
AWS Global Accelerator uses a consistent-flow hashing algorithm to choose the optimal endpoint for a
connection. If client affinity is NONE, Global Accelerator uses the "five-tuple" (5-tuple)
properties—source IP address, source port, destination IP address, destination port, and protocol—to
select the hash value, and then chooses the best endpoint. However, with this setting, if someone uses
different ports to connect to Global Accelerator, their connections might not be always routed to the
same endpoint because the hash value changes.
If you want a given client to always be routed to the same endpoint, set client affinity to
SOURCE_IP instead. When you use the SOURCE_IP setting, Global Accelerator uses
the "two-tuple" (2-tuple) properties— source (client) IP address and destination IP address—to select the
hash value.
The default value is NONE.
ClientAffinitypublic Listener.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Listener.Builder,Listener>public static Listener.Builder builder()
public static Class<? extends Listener.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.