com.amazonaws.services.elasticloadbalancing.model

## クラス InstanceState

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

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

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

  The InstanceState data type.

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

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

    コンストラクタ
    コンストラクタと説明
    `InstanceState()` Default constructor for a new InstanceState object.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getDescription()` Provides a description of the instance.
    `java.lang.String` | `getInstanceId()` Provides an EC2 instance ID.
    `java.lang.String` | `getReasonCode()` Provides information about the cause of OutOfService instances.
    `java.lang.String` | `getState()` Specifies the current status of the instance.
    `int` | `hashCode()`
    `void` | `setDescription(java.lang.String description)` Provides a description of the instance.
    `void` | `setInstanceId(java.lang.String instanceId)` Provides an EC2 instance ID.
    `void` | `setReasonCode(java.lang.String reasonCode)` Provides information about the cause of OutOfService instances.
    `void` | `setState(java.lang.String state)` Specifies the current status of the instance.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `InstanceState` | `withDescription(java.lang.String description)` Provides a description of the instance.
    `InstanceState` | `withInstanceId(java.lang.String instanceId)` Provides an EC2 instance ID.
    `InstanceState` | `withReasonCode(java.lang.String reasonCode)` Provides information about the cause of OutOfService instances.
    `InstanceState` | `withState(java.lang.String state)` Specifies the current status of the instance.

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

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

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

    - #### InstanceState

          public InstanceState()

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

  - ### メソッドの詳細

    - #### getInstanceId

          public java.lang.String getInstanceId()

      Provides an EC2 instance ID.
      戻り値:
        Provides an EC2 instance ID.

    - #### setInstanceId

          public void setInstanceId(java.lang.String instanceId)

      Provides an EC2 instance ID.
      パラメータ:
        `instanceId` - Provides an EC2 instance ID.

    - #### withInstanceId

          public InstanceState withInstanceId(java.lang.String instanceId)

      Provides an EC2 instance ID.

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

      パラメータ:
        `instanceId` - Provides an EC2 instance ID.

    - #### getState

          public java.lang.String getState()

      Specifies the current status of the instance.
      戻り値:
        Specifies the current status of the instance.

    - #### setState

          public void setState(java.lang.String state)

      Specifies the current status of the instance.
      パラメータ:
        `state` - Specifies the current status of the instance.

    - #### withState

          public InstanceState withState(java.lang.String state)

      Specifies the current status of the instance.

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

      パラメータ:
        `state` - Specifies the current status of the instance.

    - #### getReasonCode

          public java.lang.String getReasonCode()

      Provides information about the cause of OutOfService instances. Specifically, it indicates whether the cause is Elastic Load Balancing or the instance behind the LoadBalancer.
      戻り値:
        Provides information about the cause of OutOfService instances. Specifically, it indicates whether the cause is Elastic Load Balancing or the instance behind the LoadBalancer.

    - #### setReasonCode

          public void setReasonCode(java.lang.String reasonCode)

      Provides information about the cause of OutOfService instances. Specifically, it indicates whether the cause is Elastic Load Balancing or the instance behind the LoadBalancer.
      パラメータ:
        `reasonCode` - Provides information about the cause of OutOfService instances. Specifically, it indicates whether the cause is Elastic Load Balancing or the instance behind the LoadBalancer.

    - #### withReasonCode

          public InstanceState withReasonCode(java.lang.String reasonCode)

      Provides information about the cause of OutOfService instances. Specifically, it indicates whether the cause is Elastic Load Balancing or the instance behind the LoadBalancer.

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

      パラメータ:
        `reasonCode` - Provides information about the cause of OutOfService instances. Specifically, it indicates whether the cause is Elastic Load Balancing or the instance behind the LoadBalancer.

    - #### getDescription

          public java.lang.String getDescription()

      Provides a description of the instance.
      戻り値:
        Provides a description of the instance.

    - #### setDescription

          public void setDescription(java.lang.String description)

      Provides a description of the instance.
      パラメータ:
        `description` - Provides a description of the instance.

    - #### withDescription

          public InstanceState withDescription(java.lang.String description)

      Provides a description of the instance.

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

      パラメータ:
        `description` - Provides a description of the instance.

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