Class CreateListenerRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.globalaccelerator.model.GlobalAcceleratorRequest
-
- software.amazon.awssdk.services.globalaccelerator.model.CreateListenerRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CreateListenerRequest.Builder,CreateListenerRequest>
@Generated("software.amazon.awssdk:codegen") public final class CreateListenerRequest extends GlobalAcceleratorRequest implements ToCopyableBuilder<CreateListenerRequest.Builder,CreateListenerRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCreateListenerRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringacceleratorArn()The Amazon Resource Name (ARN) of your accelerator.static CreateListenerRequest.Builderbuilder()ClientAffinityclientAffinity()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.StringclientAffinityAsString()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.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasPortRanges()For responses, this returns true if the service returned a value for the PortRanges property.StringidempotencyToken()A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of the request.List<PortRange>portRanges()The list of port ranges to support for connections from clients to your accelerator.Protocolprotocol()The protocol for connections from clients to your accelerator.StringprotocolAsString()The protocol for connections from clients to your accelerator.List<SdkField<?>>sdkFields()static Class<? extends CreateListenerRequest.Builder>serializableBuilderClass()CreateListenerRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
acceleratorArn
public final String acceleratorArn()
The Amazon Resource Name (ARN) of your accelerator.
- Returns:
- The Amazon Resource Name (ARN) of your accelerator.
-
hasPortRanges
public final boolean hasPortRanges()
For responses, this returns true if the service returned a value for the PortRanges property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
portRanges
public final List<PortRange> portRanges()
The list of port ranges to support for connections from clients to your 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.- Returns:
- The list of port ranges to support for connections from clients to your accelerator.
-
protocol
public final Protocol protocol()
The protocol for connections from clients to your accelerator.
If the service returns an enum value that is not available in the current SDK version,
protocolwill returnProtocol.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromprotocolAsString().- Returns:
- The protocol for connections from clients to your accelerator.
- See Also:
Protocol
-
protocolAsString
public final String protocolAsString()
The protocol for connections from clients to your accelerator.
If the service returns an enum value that is not available in the current SDK version,
protocolwill returnProtocol.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromprotocolAsString().- Returns:
- The protocol for connections from clients to your accelerator.
- See Also:
Protocol
-
clientAffinity
public 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_IPinstead. When you use theSOURCE_IPsetting, 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,
clientAffinitywill returnClientAffinity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromclientAffinityAsString().- Returns:
- 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_IPinstead. When you use theSOURCE_IPsetting, 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. - See Also:
ClientAffinity
-
clientAffinityAsString
public 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_IPinstead. When you use theSOURCE_IPsetting, 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,
clientAffinitywill returnClientAffinity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromclientAffinityAsString().- Returns:
- 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_IPinstead. When you use theSOURCE_IPsetting, 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. - See Also:
ClientAffinity
-
idempotencyToken
public final String idempotencyToken()
A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of the request.
- Returns:
- A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of the request.
-
toBuilder
public CreateListenerRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateListenerRequest.Builder,CreateListenerRequest>- Specified by:
toBuilderin classGlobalAcceleratorRequest
-
builder
public static CreateListenerRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends CreateListenerRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-