@Generated(value="software.amazon.awssdk:codegen") public final class Listener extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Listener.Builder,Listener>
Information about a listener.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Listener.Builder |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
alpnPolicy()
[TLS listener] The name of the Application-Layer Protocol Negotiation (ALPN) policy.
|
static Listener.Builder |
builder() |
List<Certificate> |
certificates()
[HTTPS or TLS listener] The default certificate for the listener.
|
List<Action> |
defaultActions()
The default actions for the listener.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAlpnPolicy()
For responses, this returns true if the service returned a value for the AlpnPolicy property.
|
boolean |
hasCertificates()
For responses, this returns true if the service returned a value for the Certificates property.
|
boolean |
hasDefaultActions()
For responses, this returns true if the service returned a value for the DefaultActions property.
|
int |
hashCode() |
String |
listenerArn()
The Amazon Resource Name (ARN) of the listener.
|
String |
loadBalancerArn()
The Amazon Resource Name (ARN) of the load balancer.
|
Integer |
port()
The port on which the load balancer is listening.
|
ProtocolEnum |
protocol()
The protocol for connections from clients to the load balancer.
|
String |
protocolAsString()
The protocol for connections from clients to the load balancer.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Listener.Builder> |
serializableBuilderClass() |
String |
sslPolicy()
[HTTPS or TLS listener] The security policy that defines which protocols and ciphers are supported.
|
Listener.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String listenerArn()
The Amazon Resource Name (ARN) of the listener.
public final String loadBalancerArn()
The Amazon Resource Name (ARN) of the load balancer.
public final Integer port()
The port on which the load balancer is listening.
public final ProtocolEnum protocol()
The protocol for connections from clients to the load balancer.
If the service returns an enum value that is not available in the current SDK version, protocol will
return ProtocolEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
protocolAsString().
ProtocolEnumpublic final String protocolAsString()
The protocol for connections from clients to the load balancer.
If the service returns an enum value that is not available in the current SDK version, protocol will
return ProtocolEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
protocolAsString().
ProtocolEnumpublic final boolean hasCertificates()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<Certificate> certificates()
[HTTPS or TLS listener] The default certificate for the listener.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasCertificates() method.
public final String sslPolicy()
[HTTPS or TLS listener] The security policy that defines which protocols and ciphers are supported.
public final boolean hasDefaultActions()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<Action> defaultActions()
The default actions for the listener.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasDefaultActions() method.
public final boolean hasAlpnPolicy()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<String> alpnPolicy()
[TLS listener] The name of the Application-Layer Protocol Negotiation (ALPN) policy.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasAlpnPolicy() method.
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 © 2023. All rights reserved.