public class CreateSnapshotResult extends Object implements Serializable
The result of creating a snapshot from an EBS volume.
Constructor and Description |
---|
CreateSnapshotResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Snapshot |
getSnapshot()
The new snapshot.
|
int |
hashCode() |
void |
setSnapshot(Snapshot snapshot)
The new snapshot.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateSnapshotResult |
withSnapshot(Snapshot snapshot)
The new snapshot.
|
public Snapshot getSnapshot()
public void setSnapshot(Snapshot snapshot)
snapshot
- The new snapshot.public CreateSnapshotResult withSnapshot(Snapshot snapshot)
Returns a reference to this object so that method calls can be chained together.
snapshot
- The new snapshot.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.