@Generated(value="software.amazon.awssdk:codegen") public final class Listener extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Listener.Builder,Listener>
Information about a listener.
For information about the protocols and the ports supported by Elastic Load Balancing, see Listeners for Your Classic Load Balancer in the Classic Load Balancers Guide.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Listener.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Listener.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
instancePort()
The port on which the instance is listening.
|
String |
instanceProtocol()
The protocol to use for routing traffic to instances: HTTP, HTTPS, TCP, or SSL.
|
Integer |
loadBalancerPort()
The port on which the load balancer is listening.
|
String |
protocol()
The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP, or SSL.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Listener.Builder> |
serializableBuilderClass() |
String |
sslCertificateId()
The Amazon Resource Name (ARN) of the server certificate.
|
Listener.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String protocol()
The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP, or SSL.
public final Integer loadBalancerPort()
The port on which the load balancer is listening. On EC2-VPC, you can specify any port from the range 1-65535. On EC2-Classic, you can specify any port from the following list: 25, 80, 443, 465, 587, 1024-65535.
public final String instanceProtocol()
The protocol to use for routing traffic to instances: HTTP, HTTPS, TCP, or SSL.
If the front-end protocol is TCP or SSL, the back-end protocol must be TCP or SSL. If the front-end protocol is HTTP or HTTPS, the back-end protocol must be HTTP or HTTPS.
If there is another listener with the same InstancePort whose InstanceProtocol is
secure, (HTTPS or SSL), the listener's InstanceProtocol must also be secure.
If there is another listener with the same InstancePort whose InstanceProtocol is HTTP
or TCP, the listener's InstanceProtocol must be HTTP or TCP.
If the front-end protocol is TCP or SSL, the back-end protocol must be TCP or SSL. If the front-end protocol is HTTP or HTTPS, the back-end protocol must be HTTP or HTTPS.
If there is another listener with the same InstancePort whose InstanceProtocol
is secure, (HTTPS or SSL), the listener's InstanceProtocol must also be secure.
If there is another listener with the same InstancePort whose InstanceProtocol
is HTTP or TCP, the listener's InstanceProtocol must be HTTP or TCP.
public final Integer instancePort()
The port on which the instance is listening.
public final String sslCertificateId()
The Amazon Resource Name (ARN) of the server certificate.
public 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 © 2022. All rights reserved.