| 
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectcom.amazonaws.services.ec2.model.Snapshot
public class Snapshot
Represents a snapshot of an Amazon EC2 EBS volume.
| Constructor Summary | |
|---|---|
Snapshot()
 | 
|
| Method Summary | |
|---|---|
 boolean | 
equals(Object obj)
 | 
 String | 
getDescription()
Description of the snapshot.  | 
 String | 
getOwnerAlias()
The AWS account alias (e.g., "amazon", "redhat", "self", etc.) or AWS account ID that owns the AMI.  | 
 String | 
getOwnerId()
AWS Access Key ID of the user who owns the snapshot.  | 
 String | 
getProgress()
The progress of the snapshot, in percentage.  | 
 String | 
getSnapshotId()
The unique ID of this snapshot.  | 
 Date | 
getStartTime()
Time stamp when the snapshot was initiated.  | 
 String | 
getState()
Snapshot state (e.g., pending, completed, or error).  | 
 List<Tag> | 
getTags()
A list of tags for the Snapshot.  | 
 String | 
getVolumeId()
The ID of the volume from which this snapshot was created.  | 
 Integer | 
getVolumeSize()
The size of the volume, in gigabytes.  | 
 int | 
hashCode()
 | 
 void | 
setDescription(String description)
Description of the snapshot.  | 
 void | 
setOwnerAlias(String ownerAlias)
The AWS account alias (e.g., "amazon", "redhat", "self", etc.) or AWS account ID that owns the AMI.  | 
 void | 
setOwnerId(String ownerId)
AWS Access Key ID of the user who owns the snapshot.  | 
 void | 
setProgress(String progress)
The progress of the snapshot, in percentage.  | 
 void | 
setSnapshotId(String snapshotId)
The unique ID of this snapshot.  | 
 void | 
setStartTime(Date startTime)
Time stamp when the snapshot was initiated.  | 
 void | 
setState(SnapshotState state)
Snapshot state (e.g., pending, completed, or error).  | 
 void | 
setState(String state)
Snapshot state (e.g., pending, completed, or error).  | 
 void | 
setTags(Collection<Tag> tags)
A list of tags for the Snapshot.  | 
 void | 
setVolumeId(String volumeId)
The ID of the volume from which this snapshot was created.  | 
 void | 
setVolumeSize(Integer volumeSize)
The size of the volume, in gigabytes.  | 
 String | 
toString()
Returns a string representation of this object; useful for testing and debugging.  | 
 Snapshot | 
withDescription(String description)
Description of the snapshot.  | 
 Snapshot | 
withOwnerAlias(String ownerAlias)
The AWS account alias (e.g., "amazon", "redhat", "self", etc.) or AWS account ID that owns the AMI.  | 
 Snapshot | 
withOwnerId(String ownerId)
AWS Access Key ID of the user who owns the snapshot.  | 
 Snapshot | 
withProgress(String progress)
The progress of the snapshot, in percentage.  | 
 Snapshot | 
withSnapshotId(String snapshotId)
The unique ID of this snapshot.  | 
 Snapshot | 
withStartTime(Date startTime)
Time stamp when the snapshot was initiated.  | 
 Snapshot | 
withState(SnapshotState state)
Snapshot state (e.g., pending, completed, or error).  | 
 Snapshot | 
withState(String state)
Snapshot state (e.g., pending, completed, or error).  | 
 Snapshot | 
withTags(Collection<Tag> tags)
A list of tags for the Snapshot.  | 
 Snapshot | 
withTags(Tag... tags)
A list of tags for the Snapshot.  | 
 Snapshot | 
withVolumeId(String volumeId)
The ID of the volume from which this snapshot was created.  | 
 Snapshot | 
withVolumeSize(Integer volumeSize)
The size of the volume, in gigabytes.  | 
| Methods inherited from class java.lang.Object | 
|---|
getClass, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public Snapshot()
| Method Detail | 
|---|
public String getSnapshotId()
public void setSnapshotId(String snapshotId)
snapshotId - The unique ID of this snapshot.public Snapshot withSnapshotId(String snapshotId)
Returns a reference to this object so that method calls can be chained together.
snapshotId - The unique ID of this snapshot.
public String getVolumeId()
public void setVolumeId(String volumeId)
volumeId - The ID of the volume from which this snapshot was created.public Snapshot withVolumeId(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 String getState()
 Constraints:
 Allowed Values: pending, completed, error
SnapshotStatepublic void setState(String state)
 Constraints:
 Allowed Values: pending, completed, error
state - Snapshot state (e.g., pending, completed, or error).SnapshotStatepublic Snapshot withState(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 Date getStartTime()
public void setStartTime(Date startTime)
startTime - Time stamp when the snapshot was initiated.public Snapshot withStartTime(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 String getProgress()
public void setProgress(String progress)
progress - The progress of the snapshot, in percentage.public Snapshot withProgress(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 String getOwnerId()
public void setOwnerId(String ownerId)
ownerId - AWS Access Key ID of the user who owns the snapshot.public Snapshot withOwnerId(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 String getDescription()
public void setDescription(String description)
description - Description of the snapshot.public Snapshot withDescription(String description)
Returns a reference to this object so that method calls can be chained together.
description - Description of the snapshot.
public Integer getVolumeSize()
public void setVolumeSize(Integer volumeSize)
volumeSize - The size of the volume, in gigabytes.public Snapshot withVolumeSize(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 String getOwnerAlias()
public void setOwnerAlias(String ownerAlias)
ownerAlias - The AWS account alias (e.g., "amazon", "redhat", "self", etc.) or AWS
         account ID that owns the AMI.public Snapshot withOwnerAlias(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 List<Tag> getTags()
public void setTags(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(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 String toString()
toString in class ObjectObject.toString()public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
  | 
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||