@Generated(value="software.amazon.awssdk:codegen") public class Listener extends Object implements 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 Balancer 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) |
<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.
|
static Class<? extends Listener.Builder> |
serializableBuilderClass() |
String |
sslCertificateId()
The Amazon Resource Name (ARN) of the server certificate.
|
Listener.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String protocol()
The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP, or SSL.
public 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 String instanceProtocol()
The protocol to use for routing traffic to instances: HTTP, HTTPS, TCP, or SSL.
If the front-end protocol is HTTP, HTTPS, TCP, or SSL, InstanceProtocol
must be at the same
protocol.
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 HTTP, HTTPS, TCP, or SSL, InstanceProtocol
must be at the same
protocol.
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 Integer instancePort()
The port on which the instance is listening.
public String sslCertificateId()
The Amazon Resource Name (ARN) of the server certificate.
public Listener.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Listener.Builder,Listener>
public static Listener.Builder builder()
public static Class<? extends Listener.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.