@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Listener extends Object implements Serializable, Cloneable, StructuredPojo
A complex type for a listener.
Constructor and Description |
---|
Listener() |
Modifier and Type | Method and Description |
---|---|
Listener |
clone() |
boolean |
equals(Object obj) |
String |
getClientAffinity()
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 |
getListenerArn()
The Amazon Resource Name (ARN) of the listener.
|
List<PortRange> |
getPortRanges()
The list of port ranges for the connections from clients to the accelerator.
|
String |
getProtocol()
The protocol for the connections from clients to the accelerator.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setClientAffinity(String 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.
|
void |
setListenerArn(String listenerArn)
The Amazon Resource Name (ARN) of the listener.
|
void |
setPortRanges(Collection<PortRange> portRanges)
The list of port ranges for the connections from clients to the accelerator.
|
void |
setProtocol(String protocol)
The protocol for the connections from clients to the accelerator.
|
String |
toString()
Returns a string representation of this object.
|
Listener |
withClientAffinity(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.
|
Listener |
withClientAffinity(String 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.
|
Listener |
withListenerArn(String listenerArn)
The Amazon Resource Name (ARN) of the listener.
|
Listener |
withPortRanges(Collection<PortRange> portRanges)
The list of port ranges for the connections from clients to the accelerator.
|
Listener |
withPortRanges(PortRange... portRanges)
The list of port ranges for the connections from clients to the accelerator.
|
Listener |
withProtocol(Protocol protocol)
The protocol for the connections from clients to the accelerator.
|
Listener |
withProtocol(String protocol)
The protocol for the connections from clients to the accelerator.
|
public void setListenerArn(String listenerArn)
The Amazon Resource Name (ARN) of the listener.
listenerArn
- The Amazon Resource Name (ARN) of the listener.public String getListenerArn()
The Amazon Resource Name (ARN) of the listener.
public Listener withListenerArn(String listenerArn)
The Amazon Resource Name (ARN) of the listener.
listenerArn
- The Amazon Resource Name (ARN) of the listener.public List<PortRange> getPortRanges()
The list of port ranges for the connections from clients to the accelerator.
public void setPortRanges(Collection<PortRange> portRanges)
The list of port ranges for the connections from clients to the accelerator.
portRanges
- The list of port ranges for the connections from clients to the accelerator.public Listener withPortRanges(PortRange... portRanges)
The list of port ranges for the connections from clients to the accelerator.
NOTE: This method appends the values to the existing list (if any). Use
setPortRanges(java.util.Collection)
or withPortRanges(java.util.Collection)
if you want to
override the existing values.
portRanges
- The list of port ranges for the connections from clients to the accelerator.public Listener withPortRanges(Collection<PortRange> portRanges)
The list of port ranges for the connections from clients to the accelerator.
portRanges
- The list of port ranges for the connections from clients to the accelerator.public void setProtocol(String protocol)
The protocol for the connections from clients to the accelerator.
protocol
- The protocol for the connections from clients to the accelerator.Protocol
public String getProtocol()
The protocol for the connections from clients to the accelerator.
Protocol
public Listener withProtocol(String protocol)
The protocol for the connections from clients to the accelerator.
protocol
- The protocol for the connections from clients to the accelerator.Protocol
public Listener withProtocol(Protocol protocol)
The protocol for the connections from clients to the accelerator.
protocol
- The protocol for the connections from clients to the accelerator.Protocol
public void setClientAffinity(String 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
.
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
.
ClientAffinity
public String getClientAffinity()
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
.
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
.
ClientAffinity
public Listener withClientAffinity(String 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
.
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
.
ClientAffinity
public Listener withClientAffinity(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
.
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
.
ClientAffinity
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.