@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Listener extends Object implements Serializable, Cloneable
Information about a listener.
| Constructor and Description |
|---|
Listener() |
| Modifier and Type | Method and Description |
|---|---|
Listener |
clone() |
boolean |
equals(Object obj) |
List<Certificate> |
getCertificates()
[HTTPS or TLS listener] The default certificate for the listener.
|
List<Action> |
getDefaultActions()
The default actions for the listener.
|
String |
getListenerArn()
The Amazon Resource Name (ARN) of the listener.
|
String |
getLoadBalancerArn()
The Amazon Resource Name (ARN) of the load balancer.
|
Integer |
getPort()
The port on which the load balancer is listening.
|
String |
getProtocol()
The protocol for connections from clients to the load balancer.
|
String |
getSslPolicy()
[HTTPS or TLS listener] The security policy that defines which ciphers and protocols are supported.
|
int |
hashCode() |
void |
setCertificates(Collection<Certificate> certificates)
[HTTPS or TLS listener] The default certificate for the listener.
|
void |
setDefaultActions(Collection<Action> defaultActions)
The default actions for the listener.
|
void |
setListenerArn(String listenerArn)
The Amazon Resource Name (ARN) of the listener.
|
void |
setLoadBalancerArn(String loadBalancerArn)
The Amazon Resource Name (ARN) of the load balancer.
|
void |
setPort(Integer port)
The port on which the load balancer is listening.
|
void |
setProtocol(ProtocolEnum protocol)
The protocol for connections from clients to the load balancer.
|
void |
setProtocol(String protocol)
The protocol for connections from clients to the load balancer.
|
void |
setSslPolicy(String sslPolicy)
[HTTPS or TLS listener] The security policy that defines which ciphers and protocols are supported.
|
String |
toString()
Returns a string representation of this object.
|
Listener |
withCertificates(Certificate... certificates)
[HTTPS or TLS listener] The default certificate for the listener.
|
Listener |
withCertificates(Collection<Certificate> certificates)
[HTTPS or TLS listener] The default certificate for the listener.
|
Listener |
withDefaultActions(Action... defaultActions)
The default actions for the listener.
|
Listener |
withDefaultActions(Collection<Action> defaultActions)
The default actions for the listener.
|
Listener |
withListenerArn(String listenerArn)
The Amazon Resource Name (ARN) of the listener.
|
Listener |
withLoadBalancerArn(String loadBalancerArn)
The Amazon Resource Name (ARN) of the load balancer.
|
Listener |
withPort(Integer port)
The port on which the load balancer is listening.
|
Listener |
withProtocol(ProtocolEnum protocol)
The protocol for connections from clients to the load balancer.
|
Listener |
withProtocol(String protocol)
The protocol for connections from clients to the load balancer.
|
Listener |
withSslPolicy(String sslPolicy)
[HTTPS or TLS listener] The security policy that defines which ciphers and protocols are supported.
|
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 void setLoadBalancerArn(String loadBalancerArn)
The Amazon Resource Name (ARN) of the load balancer.
loadBalancerArn - The Amazon Resource Name (ARN) of the load balancer.public String getLoadBalancerArn()
The Amazon Resource Name (ARN) of the load balancer.
public Listener withLoadBalancerArn(String loadBalancerArn)
The Amazon Resource Name (ARN) of the load balancer.
loadBalancerArn - The Amazon Resource Name (ARN) of the load balancer.public void setPort(Integer port)
The port on which the load balancer is listening.
port - The port on which the load balancer is listening.public Integer getPort()
The port on which the load balancer is listening.
public Listener withPort(Integer port)
The port on which the load balancer is listening.
port - The port on which the load balancer is listening.public void setProtocol(String protocol)
The protocol for connections from clients to the load balancer.
protocol - The protocol for connections from clients to the load balancer.ProtocolEnumpublic String getProtocol()
The protocol for connections from clients to the load balancer.
ProtocolEnumpublic Listener withProtocol(String protocol)
The protocol for connections from clients to the load balancer.
protocol - The protocol for connections from clients to the load balancer.ProtocolEnumpublic void setProtocol(ProtocolEnum protocol)
The protocol for connections from clients to the load balancer.
protocol - The protocol for connections from clients to the load balancer.ProtocolEnumpublic Listener withProtocol(ProtocolEnum protocol)
The protocol for connections from clients to the load balancer.
protocol - The protocol for connections from clients to the load balancer.ProtocolEnumpublic List<Certificate> getCertificates()
[HTTPS or TLS listener] The default certificate for the listener.
public void setCertificates(Collection<Certificate> certificates)
[HTTPS or TLS listener] The default certificate for the listener.
certificates - [HTTPS or TLS listener] The default certificate for the listener.public Listener withCertificates(Certificate... certificates)
[HTTPS or TLS listener] The default certificate for the listener.
NOTE: This method appends the values to the existing list (if any). Use
setCertificates(java.util.Collection) or withCertificates(java.util.Collection) if you want to
override the existing values.
certificates - [HTTPS or TLS listener] The default certificate for the listener.public Listener withCertificates(Collection<Certificate> certificates)
[HTTPS or TLS listener] The default certificate for the listener.
certificates - [HTTPS or TLS listener] The default certificate for the listener.public void setSslPolicy(String sslPolicy)
[HTTPS or TLS listener] The security policy that defines which ciphers and protocols are supported. The default is the current predefined security policy.
sslPolicy - [HTTPS or TLS listener] The security policy that defines which ciphers and protocols are supported. The
default is the current predefined security policy.public String getSslPolicy()
[HTTPS or TLS listener] The security policy that defines which ciphers and protocols are supported. The default is the current predefined security policy.
public Listener withSslPolicy(String sslPolicy)
[HTTPS or TLS listener] The security policy that defines which ciphers and protocols are supported. The default is the current predefined security policy.
sslPolicy - [HTTPS or TLS listener] The security policy that defines which ciphers and protocols are supported. The
default is the current predefined security policy.public List<Action> getDefaultActions()
The default actions for the listener.
public void setDefaultActions(Collection<Action> defaultActions)
The default actions for the listener.
defaultActions - The default actions for the listener.public Listener withDefaultActions(Action... defaultActions)
The default actions for the listener.
NOTE: This method appends the values to the existing list (if any). Use
setDefaultActions(java.util.Collection) or withDefaultActions(java.util.Collection) if you want
to override the existing values.
defaultActions - The default actions for the listener.public Listener withDefaultActions(Collection<Action> defaultActions)
The default actions for the listener.
defaultActions - The default actions for the listener.public String toString()
toString in class ObjectObject.toString()Copyright © 2019. All rights reserved.