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.
|
public java.lang.String getSnapshotId()
public void setSnapshotId(java.lang.String snapshotId)
snapshotId - The unique ID of this snapshot.public Snapshot withSnapshotId(java.lang.String snapshotId)
Returns a reference to this object so that method calls can be chained together.
snapshotId - The unique ID of this snapshot.public java.lang.String getVolumeId()
public void setVolumeId(java.lang.String volumeId)
volumeId - The ID of the volume from which this snapshot was created.public Snapshot withVolumeId(java.lang.String volumeId)
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.public java.lang.String getState()
Constraints:
Allowed Values: pending, completed, error
SnapshotStatepublic void setState(java.lang.String state)
Constraints:
Allowed Values: pending, completed, error
state - Snapshot state (e.g., pending, completed, or error).SnapshotStatepublic Snapshot withState(java.lang.String state)
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).SnapshotStatepublic void setState(SnapshotState state)
Constraints:
Allowed Values: pending, completed, error
state - Snapshot state (e.g., pending, completed, or error).SnapshotStatepublic Snapshot withState(SnapshotState state)
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).SnapshotStatepublic java.util.Date getStartTime()
public void setStartTime(java.util.Date startTime)
startTime - Time stamp when the snapshot was initiated.public Snapshot withStartTime(java.util.Date startTime)
Returns a reference to this object so that method calls can be chained together.
startTime - Time stamp when the snapshot was initiated.public java.lang.String getProgress()
public void setProgress(java.lang.String progress)
progress - The progress of the snapshot, in percentage.public Snapshot withProgress(java.lang.String progress)
Returns a reference to this object so that method calls can be chained together.
progress - The progress of the snapshot, in percentage.public java.lang.String getOwnerId()
public void setOwnerId(java.lang.String ownerId)
ownerId - AWS Access Key ID of the user who owns the snapshot.public Snapshot withOwnerId(java.lang.String ownerId)
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.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - Description of the snapshot.public Snapshot withDescription(java.lang.String description)
Returns a reference to this object so that method calls can be chained together.
description - Description of the snapshot.public java.lang.Integer getVolumeSize()
public void setVolumeSize(java.lang.Integer volumeSize)
volumeSize - The size of the volume, in gigabytes.public Snapshot withVolumeSize(java.lang.Integer volumeSize)
Returns a reference to this object so that method calls can be chained together.
volumeSize - The size of the volume, in gigabytes.public java.lang.String getOwnerAlias()
public void setOwnerAlias(java.lang.String ownerAlias)
ownerAlias - The AWS account alias (e.g., "amazon", "redhat", "self", etc.) or AWS
account ID that owns the AMI.public Snapshot withOwnerAlias(java.lang.String ownerAlias)
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.public java.util.List<Tag> getTags()
public void setTags(java.util.Collection<Tag> tags)
tags - A list of tags for the Snapshot.public Snapshot withTags(Tag... tags)
Returns a reference to this object so that method calls can be chained together.
tags - A list of tags for the Snapshot.public Snapshot withTags(java.util.Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
tags - A list of tags for the Snapshot.public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object