@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<String> |
getAlpnPolicy()
[TLS listener] The name of the Application-Layer Protocol Negotiation (ALPN) policy.
|
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 protocols and ciphers are supported.
|
int |
hashCode() |
void |
setAlpnPolicy(Collection<String> alpnPolicy)
[TLS listener] The name of the Application-Layer Protocol Negotiation (ALPN) policy.
|
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 protocols and ciphers are supported.
|
String |
toString()
Returns a string representation of this object.
|
Listener |
withAlpnPolicy(Collection<String> alpnPolicy)
[TLS listener] The name of the Application-Layer Protocol Negotiation (ALPN) policy.
|
Listener |
withAlpnPolicy(String... alpnPolicy)
[TLS listener] The name of the Application-Layer Protocol Negotiation (ALPN) policy.
|
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 protocols and ciphers 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.ProtocolEnum
public String getProtocol()
The protocol for connections from clients to the load balancer.
ProtocolEnum
public 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.ProtocolEnum
public 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.ProtocolEnum
public 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.ProtocolEnum
public 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 protocols and ciphers are supported.
sslPolicy
- [HTTPS or TLS listener] The security policy that defines which protocols and ciphers are supported.public String getSslPolicy()
[HTTPS or TLS listener] The security policy that defines which protocols and ciphers are supported.
public Listener withSslPolicy(String sslPolicy)
[HTTPS or TLS listener] The security policy that defines which protocols and ciphers are supported.
sslPolicy
- [HTTPS or TLS listener] The security policy that defines which protocols and ciphers are supported.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 List<String> getAlpnPolicy()
[TLS listener] The name of the Application-Layer Protocol Negotiation (ALPN) policy.
public void setAlpnPolicy(Collection<String> alpnPolicy)
[TLS listener] The name of the Application-Layer Protocol Negotiation (ALPN) policy.
alpnPolicy
- [TLS listener] The name of the Application-Layer Protocol Negotiation (ALPN) policy.public Listener withAlpnPolicy(String... alpnPolicy)
[TLS listener] The name of the Application-Layer Protocol Negotiation (ALPN) policy.
NOTE: This method appends the values to the existing list (if any). Use
setAlpnPolicy(java.util.Collection)
or withAlpnPolicy(java.util.Collection)
if you want to
override the existing values.
alpnPolicy
- [TLS listener] The name of the Application-Layer Protocol Negotiation (ALPN) policy.public Listener withAlpnPolicy(Collection<String> alpnPolicy)
[TLS listener] The name of the Application-Layer Protocol Negotiation (ALPN) policy.
alpnPolicy
- [TLS listener] The name of the Application-Layer Protocol Negotiation (ALPN) policy.public String toString()
toString
in class Object
Object.toString()