com.amazonaws.services.ec2.model

## クラス Snapshot

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

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

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

  Represents a snapshot of an Amazon EC2 EBS volume.

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

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getDescription()` Description of the snapshot.
    `java.lang.String` | `getOwnerAlias()` The AWS account alias (e.g., "amazon", "redhat", "self", etc.) or AWS account ID that owns the AMI.
    `java.lang.String` | `getOwnerId()` AWS Access Key ID of the user who owns the snapshot.
    `java.lang.String` | `getProgress()` The progress of the snapshot, in percentage.
    `java.lang.String` | `getSnapshotId()` The unique ID of this snapshot.
    `java.util.Date` | `getStartTime()` Time stamp when the snapshot was initiated.
    `java.lang.String` | `getState()` Snapshot state (e.g., pending, completed, or error).
    `java.util.List<Tag>` | `getTags()` A list of tags for the Snapshot.
    `java.lang.String` | `getVolumeId()` The ID of the volume from which this snapshot was created.
    `java.lang.Integer` | `getVolumeSize()` The size of the volume, in gigabytes.
    `int` | `hashCode()`
    `void` | `setDescription(java.lang.String description)` Description of the snapshot.
    `void` | `setOwnerAlias(java.lang.String ownerAlias)` The AWS account alias (e.g., "amazon", "redhat", "self", etc.) or AWS account ID that owns the AMI.
    `void` | `setOwnerId(java.lang.String ownerId)` AWS Access Key ID of the user who owns the snapshot.
    `void` | `setProgress(java.lang.String progress)` The progress of the snapshot, in percentage.
    `void` | `setSnapshotId(java.lang.String snapshotId)` The unique ID of this snapshot.
    `void` | `setStartTime(java.util.Date startTime)` Time stamp when the snapshot was initiated.
    `void` | `setState(SnapshotState state)` Snapshot state (e.g., pending, completed, or error).
    `void` | `setState(java.lang.String state)` Snapshot state (e.g., pending, completed, or error).
    `void` | `setTags(java.util.Collection<Tag> tags)` A list of tags for the Snapshot.
    `void` | `setVolumeId(java.lang.String volumeId)` The ID of the volume from which this snapshot was created.
    `void` | `setVolumeSize(java.lang.Integer volumeSize)` The size of the volume, in gigabytes.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `Snapshot` | `withDescription(java.lang.String description)` Description of the snapshot.
    `Snapshot` | `withOwnerAlias(java.lang.String ownerAlias)` The AWS account alias (e.g., "amazon", "redhat", "self", etc.) or AWS account ID that owns the AMI.
    `Snapshot` | `withOwnerId(java.lang.String ownerId)` AWS Access Key ID of the user who owns the snapshot.
    `Snapshot` | `withProgress(java.lang.String progress)` The progress of the snapshot, in percentage.
    `Snapshot` | `withSnapshotId(java.lang.String snapshotId)` The unique ID of this snapshot.
    `Snapshot` | `withStartTime(java.util.Date startTime)` Time stamp when the snapshot was initiated.
    `Snapshot` | `withState(SnapshotState state)` Snapshot state (e.g., pending, completed, or error).
    `Snapshot` | `withState(java.lang.String state)` Snapshot state (e.g., pending, completed, or error).
    `Snapshot` | `withTags(java.util.Collection<Tag> tags)` A list of tags for the Snapshot.
    `Snapshot` | `withTags(Tag... tags)` A list of tags for the Snapshot.
    `Snapshot` | `withVolumeId(java.lang.String volumeId)` The ID of the volume from which this snapshot was created.
    `Snapshot` | `withVolumeSize(java.lang.Integer volumeSize)` The size of the volume, in gigabytes.

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

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

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

    - #### Snapshot

          public Snapshot()

  - ### メソッドの詳細

    - #### getSnapshotId

          public java.lang.String getSnapshotId()

      The unique ID of this snapshot.
      戻り値:
        The unique ID of this snapshot.

    - #### setSnapshotId

          public void setSnapshotId(java.lang.String snapshotId)

      The unique ID of this snapshot.
      パラメータ:
        `snapshotId` - The unique ID of this snapshot.

    - #### withSnapshotId

          public Snapshot withSnapshotId(java.lang.String snapshotId)

      The unique ID of this snapshot.

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

      パラメータ:
        `snapshotId` - The unique ID of this snapshot.

    - #### getVolumeId

          public java.lang.String getVolumeId()

      The ID of the volume from which this snapshot was created.
      戻り値:
        The ID of the volume from which this snapshot was created.

    - #### setVolumeId

          public void setVolumeId(java.lang.String volumeId)

      The ID of the volume from which this snapshot was created.
      パラメータ:
        `volumeId` - The ID of the volume from which this snapshot was created.

    - #### withVolumeId

          public Snapshot withVolumeId(java.lang.String volumeId)

      The ID of the volume from which this snapshot was created.

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

      パラメータ:
        `volumeId` - The ID of the volume from which this snapshot was created.

    - #### getState

          public java.lang.String getState()

      Snapshot state (e.g., pending, completed, or error).

      Constraints:
      Allowed Values: pending, completed, error

      戻り値:
        Snapshot state (e.g., pending, completed, or error).
      関連項目:
        `SnapshotState`

    - #### setState

          public void setState(java.lang.String state)

      Snapshot state (e.g., pending, completed, or error).

      Constraints:
      Allowed Values: pending, completed, error

      パラメータ:
        `state` - Snapshot state (e.g., pending, completed, or error).
      関連項目:
        `SnapshotState`

    - #### withState

          public Snapshot withState(java.lang.String state)

      Snapshot state (e.g., pending, completed, or error).

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

      Constraints:
      Allowed Values: pending, completed, error

      パラメータ:
        `state` - Snapshot state (e.g., pending, completed, or error).
      関連項目:
        `SnapshotState`

    - #### setState

          public void setState(SnapshotState state)

      Snapshot state (e.g., pending, completed, or error).

      Constraints:
      Allowed Values: pending, completed, error

      パラメータ:
        `state` - Snapshot state (e.g., pending, completed, or error).
      関連項目:
        `SnapshotState`

    - #### withState

          public Snapshot withState(SnapshotState state)

      Snapshot state (e.g., pending, completed, or error).

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

      Constraints:
      Allowed Values: pending, completed, error

      パラメータ:
        `state` - Snapshot state (e.g., pending, completed, or error).
      関連項目:
        `SnapshotState`

    - #### getStartTime

          public java.util.Date getStartTime()

      Time stamp when the snapshot was initiated.
      戻り値:
        Time stamp when the snapshot was initiated.

    - #### setStartTime

          public void setStartTime(java.util.Date startTime)

      Time stamp when the snapshot was initiated.
      パラメータ:
        `startTime` - Time stamp when the snapshot was initiated.

    - #### withStartTime

          public Snapshot withStartTime(java.util.Date startTime)

      Time stamp when the snapshot was initiated.

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

      パラメータ:
        `startTime` - Time stamp when the snapshot was initiated.

    - #### getProgress

          public java.lang.String getProgress()

      The progress of the snapshot, in percentage.
      戻り値:
        The progress of the snapshot, in percentage.

    - #### setProgress

          public void setProgress(java.lang.String progress)

      The progress of the snapshot, in percentage.
      パラメータ:
        `progress` - The progress of the snapshot, in percentage.

    - #### withProgress

          public Snapshot withProgress(java.lang.String progress)

      The progress of the snapshot, in percentage.

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

      パラメータ:
        `progress` - The progress of the snapshot, in percentage.

    - #### getOwnerId

          public java.lang.String getOwnerId()

      AWS Access Key ID of the user who owns the snapshot.
      戻り値:
        AWS Access Key ID of the user who owns the snapshot.

    - #### setOwnerId

          public void setOwnerId(java.lang.String ownerId)

      AWS Access Key ID of the user who owns the snapshot.
      パラメータ:
        `ownerId` - AWS Access Key ID of the user who owns the snapshot.

    - #### withOwnerId

          public Snapshot withOwnerId(java.lang.String ownerId)

      AWS Access Key ID of the user who owns the snapshot.

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

      パラメータ:
        `ownerId` - AWS Access Key ID of the user who owns the snapshot.

    - #### getDescription

          public java.lang.String getDescription()

      Description of the snapshot.
      戻り値:
        Description of the snapshot.

    - #### setDescription

          public void setDescription(java.lang.String description)

      Description of the snapshot.
      パラメータ:
        `description` - Description of the snapshot.

    - #### withDescription

          public Snapshot withDescription(java.lang.String description)

      Description of the snapshot.

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

      パラメータ:
        `description` - Description of the snapshot.

    - #### getVolumeSize

          public java.lang.Integer getVolumeSize()

      The size of the volume, in gigabytes.
      戻り値:
        The size of the volume, in gigabytes.

    - #### setVolumeSize

          public void setVolumeSize(java.lang.Integer volumeSize)

      The size of the volume, in gigabytes.
      パラメータ:
        `volumeSize` - The size of the volume, in gigabytes.

    - #### withVolumeSize

          public Snapshot withVolumeSize(java.lang.Integer volumeSize)

      The size of the volume, in gigabytes.

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

      パラメータ:
        `volumeSize` - The size of the volume, in gigabytes.

    - #### getOwnerAlias

          public java.lang.String getOwnerAlias()

      The AWS account alias (e.g., "amazon", "redhat", "self", etc.) or AWS account ID that owns the AMI.
      戻り値:
        The AWS account alias (e.g., "amazon", "redhat", "self", etc.) or AWS account ID that owns the AMI.

    - #### setOwnerAlias

          public void setOwnerAlias(java.lang.String ownerAlias)

      The AWS account alias (e.g., "amazon", "redhat", "self", etc.) or AWS account ID that owns the AMI.
      パラメータ:
        `ownerAlias` - The AWS account alias (e.g., "amazon", "redhat", "self", etc.) or AWS account ID that owns the AMI.

    - #### withOwnerAlias

          public Snapshot withOwnerAlias(java.lang.String ownerAlias)

      The AWS account alias (e.g., "amazon", "redhat", "self", etc.) or AWS account ID that owns the AMI.

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

      パラメータ:
        `ownerAlias` - The AWS account alias (e.g., "amazon", "redhat", "self", etc.) or AWS account ID that owns the AMI.

    - #### getTags

          public java.util.List<Tag> getTags()

      A list of tags for the Snapshot.
      戻り値:
        A list of tags for the Snapshot.

    - #### setTags

          public void setTags(java.util.Collection<Tag> tags)

      A list of tags for the Snapshot.
      パラメータ:
        `tags` - A list of tags for the Snapshot.

    - #### withTags

          public Snapshot withTags(Tag... tags)

      A list of tags for the Snapshot.

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

      パラメータ:
        `tags` - A list of tags for the Snapshot.

    - #### withTags

          public Snapshot withTags(java.util.Collection<Tag> tags)

      A list of tags for the Snapshot.

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

      パラメータ:
        `tags` - A list of tags for the 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`