com.amazonaws.services.ec2.model

## クラス InstanceStateChange

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

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

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

  Represents a state change for a specific EC2 instance.

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

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `InstanceState` | `getCurrentState()` The current state of the specified instance.
    `java.lang.String` | `getInstanceId()` The ID of the instance whose state changed.
    `InstanceState` | `getPreviousState()` The previous state of the specified instance.
    `int` | `hashCode()`
    `void` | `setCurrentState(InstanceState currentState)` The current state of the specified instance.
    `void` | `setInstanceId(java.lang.String instanceId)` The ID of the instance whose state changed.
    `void` | `setPreviousState(InstanceState previousState)` The previous state of the specified instance.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `InstanceStateChange` | `withCurrentState(InstanceState currentState)` The current state of the specified instance.
    `InstanceStateChange` | `withInstanceId(java.lang.String instanceId)` The ID of the instance whose state changed.
    `InstanceStateChange` | `withPreviousState(InstanceState previousState)` The previous state of the specified instance.

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

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

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

    - #### InstanceStateChange

          public InstanceStateChange()

  - ### メソッドの詳細

    - #### getInstanceId

          public java.lang.String getInstanceId()

      The ID of the instance whose state changed.
      戻り値:
        The ID of the instance whose state changed.

    - #### setInstanceId

          public void setInstanceId(java.lang.String instanceId)

      The ID of the instance whose state changed.
      パラメータ:
        `instanceId` - The ID of the instance whose state changed.

    - #### withInstanceId

          public InstanceStateChange withInstanceId(java.lang.String instanceId)

      The ID of the instance whose state changed.

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

      パラメータ:
        `instanceId` - The ID of the instance whose state changed.

    - #### getCurrentState

          public InstanceState getCurrentState()

      The current state of the specified instance.
      戻り値:
        The current state of the specified instance.

    - #### setCurrentState

          public void setCurrentState(InstanceState currentState)

      The current state of the specified instance.
      パラメータ:
        `currentState` - The current state of the specified instance.

    - #### withCurrentState

          public InstanceStateChange withCurrentState(InstanceState currentState)

      The current state of the specified instance.

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

      パラメータ:
        `currentState` - The current state of the specified instance.

    - #### getPreviousState

          public InstanceState getPreviousState()

      The previous state of the specified instance.
      戻り値:
        The previous state of the specified instance.

    - #### setPreviousState

          public void setPreviousState(InstanceState previousState)

      The previous state of the specified instance.
      パラメータ:
        `previousState` - The previous state of the specified instance.

    - #### withPreviousState

          public InstanceStateChange withPreviousState(InstanceState previousState)

      The previous state of the specified instance.

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

      パラメータ:
        `previousState` - The previous state of the specified 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`