All Superinterfaces:
Buildable, CopyableBuilder<Listener.Builder,Listener>, SdkBuilder<Listener.Builder,Listener>, SdkPojo
Enclosing class:
Listener

public static interface Listener.Builder extends SdkPojo, CopyableBuilder<Listener.Builder,Listener>
  • Method Details

    • protocol

      Listener.Builder protocol(String protocol)

      The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP, or SSL.

      Parameters:
      protocol - The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP, or SSL.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • loadBalancerPort

      Listener.Builder loadBalancerPort(Integer loadBalancerPort)

      The port on which the load balancer is listening. 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.

      Parameters:
      loadBalancerPort - The port on which the load balancer is listening. 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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceProtocol

      Listener.Builder instanceProtocol(String 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.

      Parameters:
      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.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instancePort

      Listener.Builder instancePort(Integer instancePort)

      The port on which the instance is listening.

      Parameters:
      instancePort - The port on which the instance is listening.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sslCertificateId

      Listener.Builder sslCertificateId(String sslCertificateId)

      The Amazon Resource Name (ARN) of the server certificate.

      Parameters:
      sslCertificateId - The Amazon Resource Name (ARN) of the server certificate.
      Returns:
      Returns a reference to this object so that method calls can be chained together.