@Generated(value="software.amazon.awssdk:codegen") public final class CreateListenerRequest extends ElasticLoadBalancingV2Request implements ToCopyableBuilder<CreateListenerRequest.Builder,CreateListenerRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateListenerRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
alpnPolicy()
[TLS listeners] The name of the Application-Layer Protocol Negotiation (ALPN) policy.
|
static CreateListenerRequest.Builder |
builder() |
List<Certificate> |
certificates()
[HTTPS and TLS listeners] The default certificate for the listener.
|
List<Action> |
defaultActions()
The actions for the default rule.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAlpnPolicy()
Returns true if the AlpnPolicy property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
boolean |
hasCertificates()
Returns true if the Certificates property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasDefaultActions()
Returns true if the DefaultActions property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
int |
hashCode() |
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 CreateListenerRequest.Builder> |
serializableBuilderClass() |
String |
sslPolicy()
[HTTPS and TLS listeners] The security policy that defines which protocols and ciphers are supported.
|
CreateListenerRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String loadBalancerArn()
The Amazon Resource Name (ARN) of the load balancer.
public ProtocolEnum protocol()
The protocol for connections from clients to the load balancer. For Application Load Balancers, the supported protocols are HTTP and HTTPS. For Network Load Balancers, the supported protocols are TCP, TLS, UDP, and TCP_UDP.
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 String protocolAsString()
The protocol for connections from clients to the load balancer. For Application Load Balancers, the supported protocols are HTTP and HTTPS. For Network Load Balancers, the supported protocols are TCP, TLS, UDP, and TCP_UDP.
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 Integer port()
The port on which the load balancer is listening.
public String sslPolicy()
[HTTPS and TLS listeners] The security policy that defines which protocols and ciphers are supported. The following are the possible values:
ELBSecurityPolicy-2016-08
ELBSecurityPolicy-TLS-1-0-2015-04
ELBSecurityPolicy-TLS-1-1-2017-01
ELBSecurityPolicy-TLS-1-2-2017-01
ELBSecurityPolicy-TLS-1-2-Ext-2018-06
ELBSecurityPolicy-FS-2018-06
ELBSecurityPolicy-FS-1-1-2019-08
ELBSecurityPolicy-FS-1-2-2019-08
ELBSecurityPolicy-FS-1-2-Res-2019-08
For more information, see Security Policies in the Application Load Balancers Guide and Security Policies in the Network Load Balancers Guide.
ELBSecurityPolicy-2016-08
ELBSecurityPolicy-TLS-1-0-2015-04
ELBSecurityPolicy-TLS-1-1-2017-01
ELBSecurityPolicy-TLS-1-2-2017-01
ELBSecurityPolicy-TLS-1-2-Ext-2018-06
ELBSecurityPolicy-FS-2018-06
ELBSecurityPolicy-FS-1-1-2019-08
ELBSecurityPolicy-FS-1-2-2019-08
ELBSecurityPolicy-FS-1-2-Res-2019-08
For more information, see Security Policies in the Application Load Balancers Guide and Security Policies in the Network Load Balancers Guide.
public boolean hasCertificates()
public List<Certificate> certificates()
[HTTPS and TLS listeners] The default certificate for the listener. You must provide exactly one certificate. Set
CertificateArn to the certificate ARN but do not set IsDefault.
To create a certificate list for the listener, use AddListenerCertificates.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasCertificates() to see if a value was sent in this field.
CertificateArn to the certificate ARN but do not set IsDefault
.
To create a certificate list for the listener, use AddListenerCertificates.
public boolean hasDefaultActions()
public List<Action> defaultActions()
The actions for the default rule. The rule must include one forward action or one or more fixed-response actions.
If the action type is forward, you specify one or more target groups. The protocol of the target
group must be HTTP or HTTPS for an Application Load Balancer. The protocol of the target group must be TCP, TLS,
UDP, or TCP_UDP for a Network Load Balancer.
[HTTPS listeners] If the action type is authenticate-oidc, you authenticate users through an
identity provider that is OpenID Connect (OIDC) compliant.
[HTTPS listeners] If the action type is authenticate-cognito, you authenticate users through the
user pools supported by Amazon Cognito.
[Application Load Balancer] If the action type is redirect, you redirect specified client requests
from one URL to another.
[Application Load Balancer] If the action type is fixed-response, you drop specified client requests
and return a custom HTTP response.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasDefaultActions() to see if a value was sent in this field.
If the action type is forward, you specify one or more target groups. The protocol of the
target group must be HTTP or HTTPS for an Application Load Balancer. The protocol of the target group
must be TCP, TLS, UDP, or TCP_UDP for a Network Load Balancer.
[HTTPS listeners] If the action type is authenticate-oidc, you authenticate users through an
identity provider that is OpenID Connect (OIDC) compliant.
[HTTPS listeners] If the action type is authenticate-cognito, you authenticate users through
the user pools supported by Amazon Cognito.
[Application Load Balancer] If the action type is redirect, you redirect specified client
requests from one URL to another.
[Application Load Balancer] If the action type is fixed-response, you drop specified client
requests and return a custom HTTP response.
public boolean hasAlpnPolicy()
public List<String> alpnPolicy()
[TLS listeners] The name of the Application-Layer Protocol Negotiation (ALPN) policy. You can specify one policy name. The following are the possible values:
HTTP1Only
HTTP2Only
HTTP2Optional
HTTP2Preferred
None
For more information, see ALPN Policies in the Network Load Balancers Guide.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasAlpnPolicy() to see if a value was sent in this field.
HTTP1Only
HTTP2Only
HTTP2Optional
HTTP2Preferred
None
For more information, see ALPN Policies in the Network Load Balancers Guide.
public CreateListenerRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateListenerRequest.Builder,CreateListenerRequest>toBuilder in class ElasticLoadBalancingV2Requestpublic static CreateListenerRequest.Builder builder()
public static Class<? extends CreateListenerRequest.Builder> serializableBuilderClass()
public int hashCode()
hashCode in class AwsRequestpublic boolean equals(Object obj)
equals in class AwsRequestpublic boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2020. All rights reserved.