com.amazonaws.services.elasticloadbalancing.model

## クラス Listener

- java.lang.Object
- - com.amazonaws.services.elasticloadbalancing.model.Listener

- すべての実装されたインタフェース:
    java.io.Serializable

      public class Listener
      extends java.lang.Object
      implements java.io.Serializable

  The Listener data type.

  関連項目:
    直列化された形式

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `Listener()` Default constructor for a new Listener object.
    `Listener(java.lang.String protocol, java.lang.Integer loadBalancerPort, java.lang.Integer instancePort)` Constructs a new Listener object.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.Integer` | `getInstancePort()` Specifies the TCP port on which the instance server is listening.
    `java.lang.String` | `getInstanceProtocol()` Specifies the protocol to use for routing traffic to back-end instances - HTTP, HTTPS, TCP, or SSL.
    `java.lang.Integer` | `getLoadBalancerPort()` Specifies the external LoadBalancer port number.
    `java.lang.String` | `getProtocol()` Specifies the LoadBalancer transport protocol to use for routing - HTTP, HTTPS, TCP or SSL.
    `java.lang.String` | `getSSLCertificateId()` The ARN string of the server certificate.
    `int` | `hashCode()`
    `void` | `setInstancePort(java.lang.Integer instancePort)` Specifies the TCP port on which the instance server is listening.
    `void` | `setInstanceProtocol(java.lang.String instanceProtocol)` Specifies the protocol to use for routing traffic to back-end instances - HTTP, HTTPS, TCP, or SSL.
    `void` | `setLoadBalancerPort(java.lang.Integer loadBalancerPort)` Specifies the external LoadBalancer port number.
    `void` | `setProtocol(java.lang.String protocol)` Specifies the LoadBalancer transport protocol to use for routing - HTTP, HTTPS, TCP or SSL.
    `void` | `setSSLCertificateId(java.lang.String sSLCertificateId)` The ARN string of the server certificate.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `Listener` | `withInstancePort(java.lang.Integer instancePort)` Specifies the TCP port on which the instance server is listening.
    `Listener` | `withInstanceProtocol(java.lang.String instanceProtocol)` Specifies the protocol to use for routing traffic to back-end instances - HTTP, HTTPS, TCP, or SSL.
    `Listener` | `withLoadBalancerPort(java.lang.Integer loadBalancerPort)` Specifies the external LoadBalancer port number.
    `Listener` | `withProtocol(java.lang.String protocol)` Specifies the LoadBalancer transport protocol to use for routing - HTTP, HTTPS, TCP or SSL.
    `Listener` | `withSSLCertificateId(java.lang.String sSLCertificateId)` The ARN string of the server certificate.

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### Listener

          public Listener()

      Default constructor for a new Listener object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.

    - #### Listener

          public Listener(java.lang.String protocol,
                  java.lang.Integer loadBalancerPort,
                  java.lang.Integer instancePort)

      Constructs a new Listener object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `protocol` - Specifies the LoadBalancer transport protocol to use for routing - HTTP, HTTPS, TCP or SSL. This property cannot be modified for the life of the LoadBalancer.
        `loadBalancerPort` - Specifies the external LoadBalancer port number. This property cannot be modified for the life of the LoadBalancer.
        `instancePort` - Specifies the TCP port on which the instance server is listening. This property cannot be modified for the life of the LoadBalancer.

  - ### メソッドの詳細

    - #### getProtocol

          public java.lang.String getProtocol()

      Specifies the LoadBalancer transport protocol to use for routing - HTTP, HTTPS, TCP or SSL. This property cannot be modified for the life of the LoadBalancer.
      戻り値:
        Specifies the LoadBalancer transport protocol to use for routing - HTTP, HTTPS, TCP or SSL. This property cannot be modified for the life of the LoadBalancer.

    - #### setProtocol

          public void setProtocol(java.lang.String protocol)

      Specifies the LoadBalancer transport protocol to use for routing - HTTP, HTTPS, TCP or SSL. This property cannot be modified for the life of the LoadBalancer.
      パラメータ:
        `protocol` - Specifies the LoadBalancer transport protocol to use for routing - HTTP, HTTPS, TCP or SSL. This property cannot be modified for the life of the LoadBalancer.

    - #### withProtocol

          public Listener withProtocol(java.lang.String protocol)

      Specifies the LoadBalancer transport protocol to use for routing - HTTP, HTTPS, TCP or SSL. This property cannot be modified for the life of the LoadBalancer.

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

      パラメータ:
        `protocol` - Specifies the LoadBalancer transport protocol to use for routing - HTTP, HTTPS, TCP or SSL. This property cannot be modified for the life of the LoadBalancer.

    - #### getLoadBalancerPort

          public java.lang.Integer getLoadBalancerPort()

      Specifies the external LoadBalancer port number. This property cannot be modified for the life of the LoadBalancer.
      戻り値:
        Specifies the external LoadBalancer port number. This property cannot be modified for the life of the LoadBalancer.

    - #### setLoadBalancerPort

          public void setLoadBalancerPort(java.lang.Integer loadBalancerPort)

      Specifies the external LoadBalancer port number. This property cannot be modified for the life of the LoadBalancer.
      パラメータ:
        `loadBalancerPort` - Specifies the external LoadBalancer port number. This property cannot be modified for the life of the LoadBalancer.

    - #### withLoadBalancerPort

          public Listener withLoadBalancerPort(java.lang.Integer loadBalancerPort)

      Specifies the external LoadBalancer port number. This property cannot be modified for the life of the LoadBalancer.

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

      パラメータ:
        `loadBalancerPort` - Specifies the external LoadBalancer port number. This property cannot be modified for the life of the LoadBalancer.

    - #### getInstanceProtocol

          public java.lang.String getInstanceProtocol()

      Specifies the protocol to use for routing traffic to back-end instances - HTTP, HTTPS, TCP, or SSL. This property cannot be modified for the life of the LoadBalancer. If the front-end protocol is HTTP or HTTPS, `InstanceProtocol` has to be at the same protocol layer, i.e., HTTP or HTTPS. Likewise, if the front-end protocol is TCP or SSL, InstanceProtocol has to be TCP or SSL. If there is another listener with the same `InstancePort` whose `InstanceProtocol` is secure, i.e., HTTPS or SSL, the listener's `InstanceProtocol` has to be secure, i.e., HTTPS or SSL. If there is another listener with the same `InstancePort` whose `InstanceProtocol` is HTTP or TCP, the listener's `InstanceProtocol` must be either HTTP or TCP.
      戻り値:
        Specifies the protocol to use for routing traffic to back-end instances - HTTP, HTTPS, TCP, or SSL. This property cannot be modified for the life of the LoadBalancer. If the front-end protocol is HTTP or HTTPS, `InstanceProtocol` has to be at the same protocol layer, i.e., HTTP or HTTPS. Likewise, if the front-end protocol is TCP or SSL, InstanceProtocol has to be TCP or SSL. If there is another listener with the same `InstancePort` whose `InstanceProtocol` is secure, i.e., HTTPS or SSL, the listener's `InstanceProtocol` has to be secure, i.e., HTTPS or SSL. If there is another listener with the same `InstancePort` whose `InstanceProtocol` is HTTP or TCP, the listener's `InstanceProtocol` must be either HTTP or TCP.

    - #### setInstanceProtocol

          public void setInstanceProtocol(java.lang.String instanceProtocol)

      Specifies the protocol to use for routing traffic to back-end instances - HTTP, HTTPS, TCP, or SSL. This property cannot be modified for the life of the LoadBalancer. If the front-end protocol is HTTP or HTTPS, `InstanceProtocol` has to be at the same protocol layer, i.e., HTTP or HTTPS. Likewise, if the front-end protocol is TCP or SSL, InstanceProtocol has to be TCP or SSL. If there is another listener with the same `InstancePort` whose `InstanceProtocol` is secure, i.e., HTTPS or SSL, the listener's `InstanceProtocol` has to be secure, i.e., HTTPS or SSL. If there is another listener with the same `InstancePort` whose `InstanceProtocol` is HTTP or TCP, the listener's `InstanceProtocol` must be either HTTP or TCP.
      パラメータ:
        `instanceProtocol` - Specifies the protocol to use for routing traffic to back-end instances - HTTP, HTTPS, TCP, or SSL. This property cannot be modified for the life of the LoadBalancer. If the front-end protocol is HTTP or HTTPS, `InstanceProtocol` has to be at the same protocol layer, i.e., HTTP or HTTPS. Likewise, if the front-end protocol is TCP or SSL, InstanceProtocol has to be TCP or SSL. If there is another listener with the same `InstancePort` whose `InstanceProtocol` is secure, i.e., HTTPS or SSL, the listener's `InstanceProtocol` has to be secure, i.e., HTTPS or SSL. If there is another listener with the same `InstancePort` whose `InstanceProtocol` is HTTP or TCP, the listener's `InstanceProtocol` must be either HTTP or TCP.

    - #### withInstanceProtocol

          public Listener withInstanceProtocol(java.lang.String instanceProtocol)

      Specifies the protocol to use for routing traffic to back-end instances - HTTP, HTTPS, TCP, or SSL. This property cannot be modified for the life of the LoadBalancer. If the front-end protocol is HTTP or HTTPS, `InstanceProtocol` has to be at the same protocol layer, i.e., HTTP or HTTPS. Likewise, if the front-end protocol is TCP or SSL, InstanceProtocol has to be TCP or SSL. If there is another listener with the same `InstancePort` whose `InstanceProtocol` is secure, i.e., HTTPS or SSL, the listener's `InstanceProtocol` has to be secure, i.e., HTTPS or SSL. If there is another listener with the same `InstancePort` whose `InstanceProtocol` is HTTP or TCP, the listener's `InstanceProtocol` must be either HTTP or TCP.

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

      パラメータ:
        `instanceProtocol` - Specifies the protocol to use for routing traffic to back-end instances - HTTP, HTTPS, TCP, or SSL. This property cannot be modified for the life of the LoadBalancer. If the front-end protocol is HTTP or HTTPS, `InstanceProtocol` has to be at the same protocol layer, i.e., HTTP or HTTPS. Likewise, if the front-end protocol is TCP or SSL, InstanceProtocol has to be TCP or SSL. If there is another listener with the same `InstancePort` whose `InstanceProtocol` is secure, i.e., HTTPS or SSL, the listener's `InstanceProtocol` has to be secure, i.e., HTTPS or SSL. If there is another listener with the same `InstancePort` whose `InstanceProtocol` is HTTP or TCP, the listener's `InstanceProtocol` must be either HTTP or TCP.

    - #### getInstancePort

          public java.lang.Integer getInstancePort()

      Specifies the TCP port on which the instance server is listening. This property cannot be modified for the life of the LoadBalancer.

      Constraints:
      Range: 1 - 65535

      戻り値:
        Specifies the TCP port on which the instance server is listening. This property cannot be modified for the life of the LoadBalancer.

    - #### setInstancePort

          public void setInstancePort(java.lang.Integer instancePort)

      Specifies the TCP port on which the instance server is listening. This property cannot be modified for the life of the LoadBalancer.

      Constraints:
      Range: 1 - 65535

      パラメータ:
        `instancePort` - Specifies the TCP port on which the instance server is listening. This property cannot be modified for the life of the LoadBalancer.

    - #### withInstancePort

          public Listener withInstancePort(java.lang.Integer instancePort)

      Specifies the TCP port on which the instance server is listening. This property cannot be modified for the life of the LoadBalancer.

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

      Constraints:
      Range: 1 - 65535

      パラメータ:
        `instancePort` - Specifies the TCP port on which the instance server is listening. This property cannot be modified for the life of the LoadBalancer.

    - #### getSSLCertificateId

          public java.lang.String getSSLCertificateId()

      The ARN string of the server certificate. To get the ARN of the server certificate, call the AWS Identity and Access Management UploadServerCertificate API.
      戻り値:
        The ARN string of the server certificate. To get the ARN of the server certificate, call the AWS Identity and Access Management UploadServerCertificate API.

    - #### setSSLCertificateId

          public void setSSLCertificateId(java.lang.String sSLCertificateId)

      The ARN string of the server certificate. To get the ARN of the server certificate, call the AWS Identity and Access Management UploadServerCertificate API.
      パラメータ:
        `sSLCertificateId` - The ARN string of the server certificate. To get the ARN of the server certificate, call the AWS Identity and Access Management UploadServerCertificate API.

    - #### withSSLCertificateId

          public Listener withSSLCertificateId(java.lang.String sSLCertificateId)

      The ARN string of the server certificate. To get the ARN of the server certificate, call the AWS Identity and Access Management UploadServerCertificate API.

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

      パラメータ:
        `sSLCertificateId` - The ARN string of the server certificate. To get the ARN of the server certificate, call the AWS Identity and Access Management UploadServerCertificate API.

    - #### toString

          public java.lang.String toString()

      Returns a string representation of this object; useful for testing and debugging.
      オーバーライド:
        `toString` クラス内 `java.lang.Object`
      戻り値:
        A string representation of this object.
      関連項目:
        `Object.toString()`

    - #### hashCode

          public int hashCode()

      オーバーライド:
        `hashCode` クラス内 `java.lang.Object`

    - #### equals

          public boolean equals(java.lang.Object obj)

      オーバーライド:
        `equals` クラス内 `java.lang.Object`