com.amazonaws.services.autoscaling.model

## クラス SetInstanceHealthRequest

- java.lang.Object
- - com.amazonaws.AmazonWebServiceRequest
  - - com.amazonaws.services.autoscaling.model.SetInstanceHealthRequest

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

      public class SetInstanceHealthRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `SetInstanceHealth operation`.

  Sets the health status of an instance.

  関連項目:
    `AmazonAutoScaling.setInstanceHealth(SetInstanceHealthRequest)`, 直列化された形式

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

    コンストラクタ
    コンストラクタと説明
    `SetInstanceHealthRequest()`

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getHealthStatus()` The health status of the instance.
    `java.lang.String` | `getInstanceId()` The identifier of the Amazon EC2 instance.
    `java.lang.Boolean` | `getShouldRespectGracePeriod()` If True, this call should respect the grace period associated with the group.
    `int` | `hashCode()`
    `java.lang.Boolean` | `isShouldRespectGracePeriod()` If True, this call should respect the grace period associated with the group.
    `void` | `setHealthStatus(java.lang.String healthStatus)` The health status of the instance.
    `void` | `setInstanceId(java.lang.String instanceId)` The identifier of the Amazon EC2 instance.
    `void` | `setShouldRespectGracePeriod(java.lang.Boolean shouldRespectGracePeriod)` If True, this call should respect the grace period associated with the group.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `SetInstanceHealthRequest` | `withHealthStatus(java.lang.String healthStatus)` The health status of the instance.
    `SetInstanceHealthRequest` | `withInstanceId(java.lang.String instanceId)` The identifier of the Amazon EC2 instance.
    `SetInstanceHealthRequest` | `withShouldRespectGracePeriod(java.lang.Boolean shouldRespectGracePeriod)` If True, this call should respect the grace period associated with the group.

    - ### クラスから継承されたメソッド com.amazonaws.AmazonWebServiceRequest

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### SetInstanceHealthRequest

          public SetInstanceHealthRequest()

  - ### メソッドの詳細

    - #### getInstanceId

          public java.lang.String getInstanceId()

      The identifier of the Amazon EC2 instance.

      Constraints:
      Length: 1 - 16
      Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

      戻り値:
        The identifier of the Amazon EC2 instance.

    - #### setInstanceId

          public void setInstanceId(java.lang.String instanceId)

      The identifier of the Amazon EC2 instance.

      Constraints:
      Length: 1 - 16
      Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

      パラメータ:
        `instanceId` - The identifier of the Amazon EC2 instance.

    - #### withInstanceId

          public SetInstanceHealthRequest withInstanceId(java.lang.String instanceId)

      The identifier of the Amazon EC2 instance.

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

      Constraints:
      Length: 1 - 16
      Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

      パラメータ:
        `instanceId` - The identifier of the Amazon EC2 instance.

    - #### getHealthStatus

          public java.lang.String getHealthStatus()

      The health status of the instance. "Healthy" means that the instance is healthy and should remain in service. "Unhealthy" means that the instance is unhealthy. Auto Scaling should terminate and replace it.

      Constraints:
      Length: 1 - 32
      Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

      戻り値:
        The health status of the instance. "Healthy" means that the instance is healthy and should remain in service. "Unhealthy" means that the instance is unhealthy. Auto Scaling should terminate and replace it.

    - #### setHealthStatus

          public void setHealthStatus(java.lang.String healthStatus)

      The health status of the instance. "Healthy" means that the instance is healthy and should remain in service. "Unhealthy" means that the instance is unhealthy. Auto Scaling should terminate and replace it.

      Constraints:
      Length: 1 - 32
      Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

      パラメータ:
        `healthStatus` - The health status of the instance. "Healthy" means that the instance is healthy and should remain in service. "Unhealthy" means that the instance is unhealthy. Auto Scaling should terminate and replace it.

    - #### withHealthStatus

          public SetInstanceHealthRequest withHealthStatus(java.lang.String healthStatus)

      The health status of the instance. "Healthy" means that the instance is healthy and should remain in service. "Unhealthy" means that the instance is unhealthy. Auto Scaling should terminate and replace it.

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

      Constraints:
      Length: 1 - 32
      Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

      パラメータ:
        `healthStatus` - The health status of the instance. "Healthy" means that the instance is healthy and should remain in service. "Unhealthy" means that the instance is unhealthy. Auto Scaling should terminate and replace it.

    - #### isShouldRespectGracePeriod

          public java.lang.Boolean isShouldRespectGracePeriod()

      If True, this call should respect the grace period associated with the group.
      戻り値:
        If True, this call should respect the grace period associated with the group.

    - #### setShouldRespectGracePeriod

          public void setShouldRespectGracePeriod(java.lang.Boolean shouldRespectGracePeriod)

      If True, this call should respect the grace period associated with the group.
      パラメータ:
        `shouldRespectGracePeriod` - If True, this call should respect the grace period associated with the group.

    - #### withShouldRespectGracePeriod

          public SetInstanceHealthRequest withShouldRespectGracePeriod(java.lang.Boolean shouldRespectGracePeriod)

      If True, this call should respect the grace period associated with the group.

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

      パラメータ:
        `shouldRespectGracePeriod` - If True, this call should respect the grace period associated with the group.

    - #### getShouldRespectGracePeriod

          public java.lang.Boolean getShouldRespectGracePeriod()

      If True, this call should respect the grace period associated with the group.
      戻り値:
        If True, this call should respect the grace period associated with the group.

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