@Generated(value="software.amazon.awssdk:codegen") public final class UpdateListenerRequest extends GlobalAcceleratorRequest implements ToCopyableBuilder<UpdateListenerRequest.Builder,UpdateListenerRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
UpdateListenerRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static UpdateListenerRequest.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()
For responses, this returns true if the service returned a value for the PortRanges property.
|
String |
listenerArn()
The Amazon Resource Name (ARN) of the listener to update.
|
List<PortRange> |
portRanges()
The updated list of port ranges for the connections from clients to the accelerator.
|
Protocol |
protocol()
The updated protocol for the connections from clients to the accelerator.
|
String |
protocolAsString()
The updated protocol for the connections from clients to the accelerator.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends UpdateListenerRequest.Builder> |
serializableBuilderClass() |
UpdateListenerRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String listenerArn()
The Amazon Resource Name (ARN) of the listener to update.
public final boolean hasPortRanges()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<PortRange> portRanges()
The updated 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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasPortRanges() method.
public final Protocol protocol()
The updated 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 updated 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.
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().
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.
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().
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 UpdateListenerRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<UpdateListenerRequest.Builder,UpdateListenerRequest>toBuilder in class GlobalAcceleratorRequestpublic static UpdateListenerRequest.Builder builder()
public static Class<? extends UpdateListenerRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.