@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateListenerRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateListenerRequest() |
Modifier and Type | Method and Description |
---|---|
CreateListenerRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<String> |
getAlpnPolicy()
[TLS listeners] The name of the Application-Layer Protocol Negotiation (ALPN) policy.
|
List<Certificate> |
getCertificates()
[HTTPS and TLS listeners] The default certificate for the listener.
|
List<Action> |
getDefaultActions()
The actions for the default rule.
|
String |
getLoadBalancerArn()
The Amazon Resource Name (ARN) of the load balancer.
|
MutualAuthenticationAttributes |
getMutualAuthentication()
The mutual authentication configuration information.
|
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 and TLS listeners] The security policy that defines which protocols and ciphers are supported.
|
List<Tag> |
getTags()
The tags to assign to the listener.
|
int |
hashCode() |
void |
setAlpnPolicy(Collection<String> alpnPolicy)
[TLS listeners] The name of the Application-Layer Protocol Negotiation (ALPN) policy.
|
void |
setCertificates(Collection<Certificate> certificates)
[HTTPS and TLS listeners] The default certificate for the listener.
|
void |
setDefaultActions(Collection<Action> defaultActions)
The actions for the default rule.
|
void |
setLoadBalancerArn(String loadBalancerArn)
The Amazon Resource Name (ARN) of the load balancer.
|
void |
setMutualAuthentication(MutualAuthenticationAttributes mutualAuthentication)
The mutual authentication configuration information.
|
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 and TLS listeners] The security policy that defines which protocols and ciphers are supported.
|
void |
setTags(Collection<Tag> tags)
The tags to assign to the listener.
|
String |
toString()
Returns a string representation of this object.
|
CreateListenerRequest |
withAlpnPolicy(Collection<String> alpnPolicy)
[TLS listeners] The name of the Application-Layer Protocol Negotiation (ALPN) policy.
|
CreateListenerRequest |
withAlpnPolicy(String... alpnPolicy)
[TLS listeners] The name of the Application-Layer Protocol Negotiation (ALPN) policy.
|
CreateListenerRequest |
withCertificates(Certificate... certificates)
[HTTPS and TLS listeners] The default certificate for the listener.
|
CreateListenerRequest |
withCertificates(Collection<Certificate> certificates)
[HTTPS and TLS listeners] The default certificate for the listener.
|
CreateListenerRequest |
withDefaultActions(Action... defaultActions)
The actions for the default rule.
|
CreateListenerRequest |
withDefaultActions(Collection<Action> defaultActions)
The actions for the default rule.
|
CreateListenerRequest |
withLoadBalancerArn(String loadBalancerArn)
The Amazon Resource Name (ARN) of the load balancer.
|
CreateListenerRequest |
withMutualAuthentication(MutualAuthenticationAttributes mutualAuthentication)
The mutual authentication configuration information.
|
CreateListenerRequest |
withPort(Integer port)
The port on which the load balancer is listening.
|
CreateListenerRequest |
withProtocol(ProtocolEnum protocol)
The protocol for connections from clients to the load balancer.
|
CreateListenerRequest |
withProtocol(String protocol)
The protocol for connections from clients to the load balancer.
|
CreateListenerRequest |
withSslPolicy(String sslPolicy)
[HTTPS and TLS listeners] The security policy that defines which protocols and ciphers are supported.
|
CreateListenerRequest |
withTags(Collection<Tag> tags)
The tags to assign to the listener.
|
CreateListenerRequest |
withTags(Tag... tags)
The tags to assign to the listener.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
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 CreateListenerRequest withLoadBalancerArn(String loadBalancerArn)
The Amazon Resource Name (ARN) of the load balancer.
loadBalancerArn
- The Amazon Resource Name (ARN) of the load balancer.public void setProtocol(String 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. You can’t specify the UDP or TCP_UDP protocol if dual-stack mode is enabled. You cannot specify a protocol for a Gateway Load Balancer.
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. You can’t specify the UDP or TCP_UDP protocol if dual-stack mode is enabled. You cannot
specify a protocol for a Gateway Load Balancer.ProtocolEnum
public String getProtocol()
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. You can’t specify the UDP or TCP_UDP protocol if dual-stack mode is enabled. You cannot specify a protocol for a Gateway Load Balancer.
ProtocolEnum
public CreateListenerRequest withProtocol(String 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. You can’t specify the UDP or TCP_UDP protocol if dual-stack mode is enabled. You cannot specify a protocol for a Gateway Load Balancer.
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. You can’t specify the UDP or TCP_UDP protocol if dual-stack mode is enabled. You cannot
specify a protocol for a Gateway Load Balancer.ProtocolEnum
public void setProtocol(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. You can’t specify the UDP or TCP_UDP protocol if dual-stack mode is enabled. You cannot specify a protocol for a Gateway Load Balancer.
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. You can’t specify the UDP or TCP_UDP protocol if dual-stack mode is enabled. You cannot
specify a protocol for a Gateway Load Balancer.ProtocolEnum
public CreateListenerRequest withProtocol(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. You can’t specify the UDP or TCP_UDP protocol if dual-stack mode is enabled. You cannot specify a protocol for a Gateway Load Balancer.
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. You can’t specify the UDP or TCP_UDP protocol if dual-stack mode is enabled. You cannot
specify a protocol for a Gateway Load Balancer.ProtocolEnum
public void setPort(Integer port)
The port on which the load balancer is listening. You cannot specify a port for a Gateway Load Balancer.
port
- The port on which the load balancer is listening. You cannot specify a port for a Gateway Load Balancer.public Integer getPort()
The port on which the load balancer is listening. You cannot specify a port for a Gateway Load Balancer.
public CreateListenerRequest withPort(Integer port)
The port on which the load balancer is listening. You cannot specify a port for a Gateway Load Balancer.
port
- The port on which the load balancer is listening. You cannot specify a port for a Gateway Load Balancer.public void setSslPolicy(String sslPolicy)
[HTTPS and TLS listeners] The security policy that defines which protocols and ciphers are supported.
For more information, see Security policies in the Application Load Balancers Guide and Security policies in the Network Load Balancers Guide.
sslPolicy
- [HTTPS and TLS listeners] The security policy that defines which protocols and ciphers are supported.
For more information, see Security policies in the Application Load Balancers Guide and Security policies in the Network Load Balancers Guide.
public String getSslPolicy()
[HTTPS and TLS listeners] The security policy that defines which protocols and ciphers are supported.
For more information, see Security policies in the Application Load Balancers Guide and Security policies in the Network Load Balancers Guide.
For more information, see Security policies in the Application Load Balancers Guide and Security policies in the Network Load Balancers Guide.
public CreateListenerRequest withSslPolicy(String sslPolicy)
[HTTPS and TLS listeners] The security policy that defines which protocols and ciphers are supported.
For more information, see Security policies in the Application Load Balancers Guide and Security policies in the Network Load Balancers Guide.
sslPolicy
- [HTTPS and TLS listeners] The security policy that defines which protocols and ciphers are supported.
For more information, see Security policies in the Application Load Balancers Guide and Security policies in the Network Load Balancers Guide.
public List<Certificate> getCertificates()
[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
.
CertificateArn
to the certificate ARN but do not set IsDefault
.public void setCertificates(Collection<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
.
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
.public CreateListenerRequest withCertificates(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
.
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 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
.public CreateListenerRequest withCertificates(Collection<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
.
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
.public List<Action> getDefaultActions()
The actions for the default rule.
public void setDefaultActions(Collection<Action> defaultActions)
The actions for the default rule.
defaultActions
- The actions for the default rule.public CreateListenerRequest withDefaultActions(Action... defaultActions)
The actions for the default rule.
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 actions for the default rule.public CreateListenerRequest withDefaultActions(Collection<Action> defaultActions)
The actions for the default rule.
defaultActions
- The actions for the default rule.public List<String> getAlpnPolicy()
[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.
HTTP1Only
HTTP2Only
HTTP2Optional
HTTP2Preferred
None
For more information, see ALPN policies in the Network Load Balancers Guide.
public void setAlpnPolicy(Collection<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.
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.
public CreateListenerRequest withAlpnPolicy(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.
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 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.
public CreateListenerRequest withAlpnPolicy(Collection<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.
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.
public List<Tag> getTags()
The tags to assign to the listener.
public void setTags(Collection<Tag> tags)
The tags to assign to the listener.
tags
- The tags to assign to the listener.public CreateListenerRequest withTags(Tag... tags)
The tags to assign to the listener.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The tags to assign to the listener.public CreateListenerRequest withTags(Collection<Tag> tags)
The tags to assign to the listener.
tags
- The tags to assign to the listener.public void setMutualAuthentication(MutualAuthenticationAttributes mutualAuthentication)
The mutual authentication configuration information.
mutualAuthentication
- The mutual authentication configuration information.public MutualAuthenticationAttributes getMutualAuthentication()
The mutual authentication configuration information.
public CreateListenerRequest withMutualAuthentication(MutualAuthenticationAttributes mutualAuthentication)
The mutual authentication configuration information.
mutualAuthentication
- The mutual authentication configuration information.public String toString()
toString
in class Object
Object.toString()
public CreateListenerRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()