public static final class CfnLoadBalancer.ListenersProperty.Builder
extends java.lang.Object
CfnLoadBalancer.ListenersProperty
Constructor and Description |
---|
Builder() |
public CfnLoadBalancer.ListenersProperty.Builder instancePort(java.lang.String instancePort)
CfnLoadBalancer.ListenersProperty.getInstancePort()
instancePort
- The port on which the instance is listening. This parameter is required.this
public CfnLoadBalancer.ListenersProperty.Builder loadBalancerPort(java.lang.String loadBalancerPort)
CfnLoadBalancer.ListenersProperty.getLoadBalancerPort()
loadBalancerPort
- The port on which the load balancer is listening. This parameter is required.
On EC2-VPC, you can specify any port from the range 1-65535. On EC2-Classic, you can specify any port from the following list: 25, 80, 443, 465, 587, 1024-65535.this
public CfnLoadBalancer.ListenersProperty.Builder protocol(java.lang.String protocol)
CfnLoadBalancer.ListenersProperty.getProtocol()
protocol
- The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP, or SSL. This parameter is required.this
public CfnLoadBalancer.ListenersProperty.Builder instanceProtocol(java.lang.String instanceProtocol)
CfnLoadBalancer.ListenersProperty.getInstanceProtocol()
instanceProtocol
- The protocol to use for routing traffic to instances: HTTP, HTTPS, TCP, or SSL.
If the front-end protocol is TCP or SSL, the back-end protocol must be TCP or SSL. If the front-end protocol is HTTP or HTTPS, the back-end protocol must be HTTP or HTTPS.
If there is another listener with the same InstancePort
whose InstanceProtocol
is secure, (HTTPS or SSL), the listener's InstanceProtocol
must also be secure.
If there is another listener with the same InstancePort
whose InstanceProtocol
is HTTP or TCP, the listener's InstanceProtocol
must be HTTP or TCP.
this
public CfnLoadBalancer.ListenersProperty.Builder policyNames(java.util.List<java.lang.String> policyNames)
CfnLoadBalancer.ListenersProperty.getPolicyNames()
policyNames
- The names of the policies to associate with the listener.this
public CfnLoadBalancer.ListenersProperty.Builder sslCertificateId(java.lang.String sslCertificateId)
CfnLoadBalancer.ListenersProperty.getSslCertificateId()
sslCertificateId
- The Amazon Resource Name (ARN) of the server certificate.this
public CfnLoadBalancer.ListenersProperty build()
CfnLoadBalancer.ListenersProperty
java.lang.NullPointerException
- if any required attribute was not provided