com.amazonaws.services.elasticloadbalancing.model

## クラス HealthCheck

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

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

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

  The HealthCheck data type.

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

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

    コンストラクタ
    コンストラクタと説明
    `HealthCheck()` Default constructor for a new HealthCheck object.
    `HealthCheck(java.lang.String target, java.lang.Integer interval, java.lang.Integer timeout, java.lang.Integer unhealthyThreshold, java.lang.Integer healthyThreshold)` Constructs a new HealthCheck object.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.Integer` | `getHealthyThreshold()` Specifies the number of consecutive health probe successes required before moving the instance to the Healthy state.
    `java.lang.Integer` | `getInterval()` Specifies the approximate interval, in seconds, between health checks of an individual instance.
    `java.lang.String` | `getTarget()` Specifies the instance being checked.
    `java.lang.Integer` | `getTimeout()` Specifies the amount of time, in seconds, during which no response means a failed health probe.
    `java.lang.Integer` | `getUnhealthyThreshold()` Specifies the number of consecutive health probe failures required before moving the instance to the Unhealthy state.
    `int` | `hashCode()`
    `void` | `setHealthyThreshold(java.lang.Integer healthyThreshold)` Specifies the number of consecutive health probe successes required before moving the instance to the Healthy state.
    `void` | `setInterval(java.lang.Integer interval)` Specifies the approximate interval, in seconds, between health checks of an individual instance.
    `void` | `setTarget(java.lang.String target)` Specifies the instance being checked.
    `void` | `setTimeout(java.lang.Integer timeout)` Specifies the amount of time, in seconds, during which no response means a failed health probe.
    `void` | `setUnhealthyThreshold(java.lang.Integer unhealthyThreshold)` Specifies the number of consecutive health probe failures required before moving the instance to the Unhealthy state.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `HealthCheck` | `withHealthyThreshold(java.lang.Integer healthyThreshold)` Specifies the number of consecutive health probe successes required before moving the instance to the Healthy state.
    `HealthCheck` | `withInterval(java.lang.Integer interval)` Specifies the approximate interval, in seconds, between health checks of an individual instance.
    `HealthCheck` | `withTarget(java.lang.String target)` Specifies the instance being checked.
    `HealthCheck` | `withTimeout(java.lang.Integer timeout)` Specifies the amount of time, in seconds, during which no response means a failed health probe.
    `HealthCheck` | `withUnhealthyThreshold(java.lang.Integer unhealthyThreshold)` Specifies the number of consecutive health probe failures required before moving the instance to the Unhealthy state.

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

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

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

    - #### HealthCheck

          public HealthCheck()

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

    - #### HealthCheck

          public HealthCheck(java.lang.String target,
                     java.lang.Integer interval,
                     java.lang.Integer timeout,
                     java.lang.Integer unhealthyThreshold,
                     java.lang.Integer healthyThreshold)

      Constructs a new HealthCheck object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `target` - Specifies the instance being checked. The protocol is either TCP, HTTP, HTTPS, or SSL. The range of valid ports is one (1) through 65535.

        TCP is the default, specified as a TCP: port pair, for example "TCP:5000". In this case a healthcheck simply attempts to open a TCP connection to the instance on the specified port. Failure to connect within the configured timeout is considered unhealthy.

        SSL is also specified as SSL: port pair, for example, SSL:5000.

        For HTTP or HTTPS protocol, the situation is different. You have to include a ping path in the string. HTTP is specified as a HTTP:port;/;PathToPing; grouping, for example "HTTP:80/weather/us/wa/seattle". In this case, a HTTP GET request is issued to the instance on the given port and path. Any answer other than "200 OK" within the timeout period is considered unhealthy.

        The total length of the HTTP ping target needs to be 1024 16-bit Unicode characters or less.

        `interval` - Specifies the approximate interval, in seconds, between health checks of an individual instance.
        `timeout` - Specifies the amount of time, in seconds, during which no response means a failed health probe. This value must be less than the Interval value.
        `unhealthyThreshold` - Specifies the number of consecutive health probe failures required before moving the instance to the Unhealthy state.
        `healthyThreshold` - Specifies the number of consecutive health probe successes required before moving the instance to the Healthy state.

  - ### メソッドの詳細

    - #### getTarget

          public java.lang.String getTarget()

      Specifies the instance being checked. The protocol is either TCP, HTTP, HTTPS, or SSL. The range of valid ports is one (1) through 65535.

      TCP is the default, specified as a TCP: port pair, for example "TCP:5000". In this case a healthcheck simply attempts to open a TCP connection to the instance on the specified port. Failure to connect within the configured timeout is considered unhealthy.

      SSL is also specified as SSL: port pair, for example, SSL:5000.

      For HTTP or HTTPS protocol, the situation is different. You have to include a ping path in the string. HTTP is specified as a HTTP:port;/;PathToPing; grouping, for example "HTTP:80/weather/us/wa/seattle". In this case, a HTTP GET request is issued to the instance on the given port and path. Any answer other than "200 OK" within the timeout period is considered unhealthy.

      The total length of the HTTP ping target needs to be 1024 16-bit Unicode characters or less.

      戻り値:
        Specifies the instance being checked. The protocol is either TCP, HTTP, HTTPS, or SSL. The range of valid ports is one (1) through 65535.

        TCP is the default, specified as a TCP: port pair, for example "TCP:5000". In this case a healthcheck simply attempts to open a TCP connection to the instance on the specified port. Failure to connect within the configured timeout is considered unhealthy.

        SSL is also specified as SSL: port pair, for example, SSL:5000.

        For HTTP or HTTPS protocol, the situation is different. You have to include a ping path in the string. HTTP is specified as a HTTP:port;/;PathToPing; grouping, for example "HTTP:80/weather/us/wa/seattle". In this case, a HTTP GET request is issued to the instance on the given port and path. Any answer other than "200 OK" within the timeout period is considered unhealthy.

        The total length of the HTTP ping target needs to be 1024 16-bit Unicode characters or less.

    - #### setTarget

          public void setTarget(java.lang.String target)

      Specifies the instance being checked. The protocol is either TCP, HTTP, HTTPS, or SSL. The range of valid ports is one (1) through 65535.

      TCP is the default, specified as a TCP: port pair, for example "TCP:5000". In this case a healthcheck simply attempts to open a TCP connection to the instance on the specified port. Failure to connect within the configured timeout is considered unhealthy.

      SSL is also specified as SSL: port pair, for example, SSL:5000.

      For HTTP or HTTPS protocol, the situation is different. You have to include a ping path in the string. HTTP is specified as a HTTP:port;/;PathToPing; grouping, for example "HTTP:80/weather/us/wa/seattle". In this case, a HTTP GET request is issued to the instance on the given port and path. Any answer other than "200 OK" within the timeout period is considered unhealthy.

      The total length of the HTTP ping target needs to be 1024 16-bit Unicode characters or less.

      パラメータ:
        `target` - Specifies the instance being checked. The protocol is either TCP, HTTP, HTTPS, or SSL. The range of valid ports is one (1) through 65535.

        TCP is the default, specified as a TCP: port pair, for example "TCP:5000". In this case a healthcheck simply attempts to open a TCP connection to the instance on the specified port. Failure to connect within the configured timeout is considered unhealthy.

        SSL is also specified as SSL: port pair, for example, SSL:5000.

        For HTTP or HTTPS protocol, the situation is different. You have to include a ping path in the string. HTTP is specified as a HTTP:port;/;PathToPing; grouping, for example "HTTP:80/weather/us/wa/seattle". In this case, a HTTP GET request is issued to the instance on the given port and path. Any answer other than "200 OK" within the timeout period is considered unhealthy.

        The total length of the HTTP ping target needs to be 1024 16-bit Unicode characters or less.

    - #### withTarget

          public HealthCheck withTarget(java.lang.String target)

      Specifies the instance being checked. The protocol is either TCP, HTTP, HTTPS, or SSL. The range of valid ports is one (1) through 65535.

      TCP is the default, specified as a TCP: port pair, for example "TCP:5000". In this case a healthcheck simply attempts to open a TCP connection to the instance on the specified port. Failure to connect within the configured timeout is considered unhealthy.

      SSL is also specified as SSL: port pair, for example, SSL:5000.

      For HTTP or HTTPS protocol, the situation is different. You have to include a ping path in the string. HTTP is specified as a HTTP:port;/;PathToPing; grouping, for example "HTTP:80/weather/us/wa/seattle". In this case, a HTTP GET request is issued to the instance on the given port and path. Any answer other than "200 OK" within the timeout period is considered unhealthy.

      The total length of the HTTP ping target needs to be 1024 16-bit Unicode characters or less.

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

      パラメータ:
        `target` - Specifies the instance being checked. The protocol is either TCP, HTTP, HTTPS, or SSL. The range of valid ports is one (1) through 65535.

        TCP is the default, specified as a TCP: port pair, for example "TCP:5000". In this case a healthcheck simply attempts to open a TCP connection to the instance on the specified port. Failure to connect within the configured timeout is considered unhealthy.

        SSL is also specified as SSL: port pair, for example, SSL:5000.

        For HTTP or HTTPS protocol, the situation is different. You have to include a ping path in the string. HTTP is specified as a HTTP:port;/;PathToPing; grouping, for example "HTTP:80/weather/us/wa/seattle". In this case, a HTTP GET request is issued to the instance on the given port and path. Any answer other than "200 OK" within the timeout period is considered unhealthy.

        The total length of the HTTP ping target needs to be 1024 16-bit Unicode characters or less.

    - #### getInterval

          public java.lang.Integer getInterval()

      Specifies the approximate interval, in seconds, between health checks of an individual instance.

      Constraints:
      Range: 1 - 300

      戻り値:
        Specifies the approximate interval, in seconds, between health checks of an individual instance.

    - #### setInterval

          public void setInterval(java.lang.Integer interval)

      Specifies the approximate interval, in seconds, between health checks of an individual instance.

      Constraints:
      Range: 1 - 300

      パラメータ:
        `interval` - Specifies the approximate interval, in seconds, between health checks of an individual instance.

    - #### withInterval

          public HealthCheck withInterval(java.lang.Integer interval)

      Specifies the approximate interval, in seconds, between health checks of an individual instance.

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

      Constraints:
      Range: 1 - 300

      パラメータ:
        `interval` - Specifies the approximate interval, in seconds, between health checks of an individual instance.

    - #### getTimeout

          public java.lang.Integer getTimeout()

      Specifies the amount of time, in seconds, during which no response means a failed health probe. This value must be less than the Interval value.

      Constraints:
      Range: 1 - 300

      戻り値:
        Specifies the amount of time, in seconds, during which no response means a failed health probe. This value must be less than the Interval value.

    - #### setTimeout

          public void setTimeout(java.lang.Integer timeout)

      Specifies the amount of time, in seconds, during which no response means a failed health probe. This value must be less than the Interval value.

      Constraints:
      Range: 1 - 300

      パラメータ:
        `timeout` - Specifies the amount of time, in seconds, during which no response means a failed health probe. This value must be less than the Interval value.

    - #### withTimeout

          public HealthCheck withTimeout(java.lang.Integer timeout)

      Specifies the amount of time, in seconds, during which no response means a failed health probe. This value must be less than the Interval value.

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

      Constraints:
      Range: 1 - 300

      パラメータ:
        `timeout` - Specifies the amount of time, in seconds, during which no response means a failed health probe. This value must be less than the Interval value.

    - #### getUnhealthyThreshold

          public java.lang.Integer getUnhealthyThreshold()

      Specifies the number of consecutive health probe failures required before moving the instance to the Unhealthy state.

      Constraints:
      Range: 2 - 10

      戻り値:
        Specifies the number of consecutive health probe failures required before moving the instance to the Unhealthy state.

    - #### setUnhealthyThreshold

          public void setUnhealthyThreshold(java.lang.Integer unhealthyThreshold)

      Specifies the number of consecutive health probe failures required before moving the instance to the Unhealthy state.

      Constraints:
      Range: 2 - 10

      パラメータ:
        `unhealthyThreshold` - Specifies the number of consecutive health probe failures required before moving the instance to the Unhealthy state.

    - #### withUnhealthyThreshold

          public HealthCheck withUnhealthyThreshold(java.lang.Integer unhealthyThreshold)

      Specifies the number of consecutive health probe failures required before moving the instance to the Unhealthy state.

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

      Constraints:
      Range: 2 - 10

      パラメータ:
        `unhealthyThreshold` - Specifies the number of consecutive health probe failures required before moving the instance to the Unhealthy state.

    - #### getHealthyThreshold

          public java.lang.Integer getHealthyThreshold()

      Specifies the number of consecutive health probe successes required before moving the instance to the Healthy state.

      Constraints:
      Range: 2 - 10

      戻り値:
        Specifies the number of consecutive health probe successes required before moving the instance to the Healthy state.

    - #### setHealthyThreshold

          public void setHealthyThreshold(java.lang.Integer healthyThreshold)

      Specifies the number of consecutive health probe successes required before moving the instance to the Healthy state.

      Constraints:
      Range: 2 - 10

      パラメータ:
        `healthyThreshold` - Specifies the number of consecutive health probe successes required before moving the instance to the Healthy state.

    - #### withHealthyThreshold

          public HealthCheck withHealthyThreshold(java.lang.Integer healthyThreshold)

      Specifies the number of consecutive health probe successes required before moving the instance to the Healthy state.

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

      Constraints:
      Range: 2 - 10

      パラメータ:
        `healthyThreshold` - Specifies the number of consecutive health probe successes required before moving the instance to the Healthy state.

    - #### 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`