public class RollbackToSnapshotRequest
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
RollbackToSnapshotRequest.Builder |
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
RollbackToSnapshotRequest() |
RollbackToSnapshotRequest(java.lang.Long volumeID,
java.lang.Long snapshotID,
java.lang.Boolean saveCurrentState,
Optional<java.lang.String> name,
Optional<Attributes> attributes) |
Modifier and Type | Method and Description |
---|---|
RollbackToSnapshotRequest.Builder |
asBuilder() |
static RollbackToSnapshotRequest.Builder |
builder() |
boolean |
equals(java.lang.Object o) |
Optional<Attributes> |
getAttributes()
List of name-value pairs in JSON object format.
|
Optional<java.lang.String> |
getName()
Name for the snapshot.
|
java.lang.Boolean |
getSaveCurrentState()
Specifies whether to save an active volume image or delete it.
|
java.lang.Long |
getSnapshotID()
The ID of a previously created snapshot on the given volume.
|
java.lang.Long |
getVolumeID()
VolumeID for the volume.
|
int |
hashCode() |
void |
setAttributes(Optional<Attributes> attributes) |
void |
setName(Optional<java.lang.String> name) |
void |
setSaveCurrentState(java.lang.Boolean saveCurrentState) |
void |
setSnapshotID(java.lang.Long snapshotID) |
void |
setVolumeID(java.lang.Long volumeID) |
java.util.Map<java.lang.String,java.lang.Object> |
toMap() |
java.lang.String |
toString() |
public static final long serialVersionUID
@Since(value="7.0") public RollbackToSnapshotRequest(java.lang.Long volumeID, java.lang.Long snapshotID, java.lang.Boolean saveCurrentState, Optional<java.lang.String> name, Optional<Attributes> attributes)
public java.lang.Long getVolumeID()
public void setVolumeID(java.lang.Long volumeID)
public java.lang.Long getSnapshotID()
public void setSnapshotID(java.lang.Long snapshotID)
public java.lang.Boolean getSaveCurrentState()
public void setSaveCurrentState(java.lang.Boolean saveCurrentState)
public Optional<java.lang.String> getName()
public void setName(Optional<java.lang.String> name)
public Optional<Attributes> getAttributes()
public void setAttributes(Optional<Attributes> attributes)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.util.Map<java.lang.String,java.lang.Object> toMap()
public java.lang.String toString()
toString
in class java.lang.Object
public static RollbackToSnapshotRequest.Builder builder()
public final RollbackToSnapshotRequest.Builder asBuilder()