com.amazonaws.services.ec2.model

## クラス InstanceState

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

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

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

  Represents the state of an Amazon EC2 instance.

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

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.Integer` | `getCode()` A 16-bit unsigned integer.
    `java.lang.String` | `getName()` The current state of the instance.
    `int` | `hashCode()`
    `void` | `setCode(java.lang.Integer code)` A 16-bit unsigned integer.
    `void` | `setName(InstanceStateName name)` The current state of the instance.
    `void` | `setName(java.lang.String name)` The current state of the instance.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `InstanceState` | `withCode(java.lang.Integer code)` A 16-bit unsigned integer.
    `InstanceState` | `withName(InstanceStateName name)` The current state of the instance.
    `InstanceState` | `withName(java.lang.String name)` The current state of the instance.

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

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

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

    - #### InstanceState

          public InstanceState()

  - ### メソッドの詳細

    - #### getCode

          public java.lang.Integer getCode()

      A 16-bit unsigned integer. The high byte is an opaque internal value and should be ignored. The low byte is set based on the state represented.
      戻り値:
        A 16-bit unsigned integer. The high byte is an opaque internal value and should be ignored. The low byte is set based on the state represented.

    - #### setCode

          public void setCode(java.lang.Integer code)

      A 16-bit unsigned integer. The high byte is an opaque internal value and should be ignored. The low byte is set based on the state represented.
      パラメータ:
        `code` - A 16-bit unsigned integer. The high byte is an opaque internal value and should be ignored. The low byte is set based on the state represented.

    - #### withCode

          public InstanceState withCode(java.lang.Integer code)

      A 16-bit unsigned integer. The high byte is an opaque internal value and should be ignored. The low byte is set based on the state represented.

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

      パラメータ:
        `code` - A 16-bit unsigned integer. The high byte is an opaque internal value and should be ignored. The low byte is set based on the state represented.

    - #### getName

          public java.lang.String getName()

      The current state of the instance.

      Constraints:
      Allowed Values: pending, running, shutting-down, terminated, stopping, stopped

      戻り値:
        The current state of the instance.
      関連項目:
        `InstanceStateName`

    - #### setName

          public void setName(java.lang.String name)

      The current state of the instance.

      Constraints:
      Allowed Values: pending, running, shutting-down, terminated, stopping, stopped

      パラメータ:
        `name` - The current state of the instance.
      関連項目:
        `InstanceStateName`

    - #### withName

          public InstanceState withName(java.lang.String name)

      The current state of the instance.

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

      Constraints:
      Allowed Values: pending, running, shutting-down, terminated, stopping, stopped

      パラメータ:
        `name` - The current state of the instance.
      関連項目:
        `InstanceStateName`

    - #### setName

          public void setName(InstanceStateName name)

      The current state of the instance.

      Constraints:
      Allowed Values: pending, running, shutting-down, terminated, stopping, stopped

      パラメータ:
        `name` - The current state of the instance.
      関連項目:
        `InstanceStateName`

    - #### withName

          public InstanceState withName(InstanceStateName name)

      The current state of the instance.

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

      Constraints:
      Allowed Values: pending, running, shutting-down, terminated, stopping, stopped

      パラメータ:
        `name` - The current state of the instance.
      関連項目:
        `InstanceStateName`

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