com.amazonaws.services.ec2.model

## クラス CreateSnapshotRequest

- java.lang.Object
- - com.amazonaws.AmazonWebServiceRequest
  - - com.amazonaws.services.ec2.model.CreateSnapshotRequest

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

      public class CreateSnapshotRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `CreateSnapshot operation`.

  Create a snapshot of the volume identified by volume ID. A volume does not have to be detached at the time the snapshot is taken.

  NOTE: Snapshot creation requires that the system is in a consistent state. For instance, this means that if taking a snapshot of a database, the tables must be read-only locked to ensure that the snapshot will not contain a corrupted version of the database. Therefore, be careful when using this API to ensure that the system remains in the consistent state until the create snapshot status has returned.

  関連項目:
    `AmazonEC2.createSnapshot(CreateSnapshotRequest)`, 直列化された形式

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

    コンストラクタ
    コンストラクタと説明
    `CreateSnapshotRequest()` Default constructor for a new CreateSnapshotRequest object.
    `CreateSnapshotRequest(java.lang.String volumeId, java.lang.String description)` Constructs a new CreateSnapshotRequest object.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getDescription()` The description for the new snapshot.
    `java.lang.String` | `getVolumeId()` The ID of the volume from which to create the snapshot.
    `int` | `hashCode()`
    `void` | `setDescription(java.lang.String description)` The description for the new snapshot.
    `void` | `setVolumeId(java.lang.String volumeId)` The ID of the volume from which to create the snapshot.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `CreateSnapshotRequest` | `withDescription(java.lang.String description)` The description for the new snapshot.
    `CreateSnapshotRequest` | `withVolumeId(java.lang.String volumeId)` The ID of the volume from which to create the snapshot.

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### CreateSnapshotRequest

          public CreateSnapshotRequest()

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

    - #### CreateSnapshotRequest

          public CreateSnapshotRequest(java.lang.String volumeId,
                               java.lang.String description)

      Constructs a new CreateSnapshotRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `volumeId` - The ID of the volume from which to create the snapshot.
        `description` - The description for the new snapshot.

  - ### メソッドの詳細

    - #### getVolumeId

          public java.lang.String getVolumeId()

      The ID of the volume from which to create the snapshot.
      戻り値:
        The ID of the volume from which to create the snapshot.

    - #### setVolumeId

          public void setVolumeId(java.lang.String volumeId)

      The ID of the volume from which to create the snapshot.
      パラメータ:
        `volumeId` - The ID of the volume from which to create the snapshot.

    - #### withVolumeId

          public CreateSnapshotRequest withVolumeId(java.lang.String volumeId)

      The ID of the volume from which to create the snapshot.

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

      パラメータ:
        `volumeId` - The ID of the volume from which to create the snapshot.

    - #### getDescription

          public java.lang.String getDescription()

      The description for the new snapshot.
      戻り値:
        The description for the new snapshot.

    - #### setDescription

          public void setDescription(java.lang.String description)

      The description for the new snapshot.
      パラメータ:
        `description` - The description for the new snapshot.

    - #### withDescription

          public CreateSnapshotRequest withDescription(java.lang.String description)

      The description for the new snapshot.

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

      パラメータ:
        `description` - The description for the new snapshot.

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