public class Snapshot extends Object implements Serializable, Cloneable
Describes a directory snapshot.
| Constructor and Description |
|---|
Snapshot() |
| Modifier and Type | Method and Description |
|---|---|
Snapshot |
clone() |
boolean |
equals(Object obj) |
String |
getDirectoryId()
The directory identifier.
|
String |
getName()
The descriptive name of the snapshot.
|
String |
getSnapshotId()
The snapshot identifier.
|
Date |
getStartTime()
The date and time that the snapshot was taken.
|
String |
getStatus()
The snapshot status.
|
String |
getType()
The snapshot type.
|
int |
hashCode() |
void |
setDirectoryId(String directoryId)
The directory identifier.
|
void |
setName(String name)
The descriptive name of the snapshot.
|
void |
setSnapshotId(String snapshotId)
The snapshot identifier.
|
void |
setStartTime(Date startTime)
The date and time that the snapshot was taken.
|
void |
setStatus(SnapshotStatus status)
The snapshot status.
|
void |
setStatus(String status)
The snapshot status.
|
void |
setType(SnapshotType type)
The snapshot type.
|
void |
setType(String type)
The snapshot type.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Snapshot |
withDirectoryId(String directoryId)
The directory identifier.
|
Snapshot |
withName(String name)
The descriptive name of the snapshot.
|
Snapshot |
withSnapshotId(String snapshotId)
The snapshot identifier.
|
Snapshot |
withStartTime(Date startTime)
The date and time that the snapshot was taken.
|
Snapshot |
withStatus(SnapshotStatus status)
The snapshot status.
|
Snapshot |
withStatus(String status)
The snapshot status.
|
Snapshot |
withType(SnapshotType type)
The snapshot type.
|
Snapshot |
withType(String type)
The snapshot type.
|
public String getDirectoryId()
Constraints:
Pattern: ^d-[0-9a-f]{10}$
public void setDirectoryId(String directoryId)
Constraints:
Pattern: ^d-[0-9a-f]{10}$
directoryId - The directory identifier.public Snapshot withDirectoryId(String directoryId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: ^d-[0-9a-f]{10}$
directoryId - The directory identifier.public String getSnapshotId()
Constraints:
Pattern: ^s-[0-9a-f]{10}$
public void setSnapshotId(String snapshotId)
Constraints:
Pattern: ^s-[0-9a-f]{10}$
snapshotId - The snapshot identifier.public Snapshot withSnapshotId(String snapshotId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: ^s-[0-9a-f]{10}$
snapshotId - The snapshot identifier.public String getType()
Constraints:
Allowed Values: Auto, Manual
SnapshotTypepublic void setType(String type)
Constraints:
Allowed Values: Auto, Manual
type - The snapshot type.SnapshotTypepublic Snapshot withType(String type)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Auto, Manual
type - The snapshot type.SnapshotTypepublic void setType(SnapshotType type)
Constraints:
Allowed Values: Auto, Manual
type - The snapshot type.SnapshotTypepublic Snapshot withType(SnapshotType type)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Auto, Manual
type - The snapshot type.SnapshotTypepublic String getName()
Constraints:
Length: 0 - 128
Pattern: ^([a-zA-Z0-9_])[\\a-zA-Z0-9_@#%*+=:?./!\s-]*$
public void setName(String name)
Constraints:
Length: 0 - 128
Pattern: ^([a-zA-Z0-9_])[\\a-zA-Z0-9_@#%*+=:?./!\s-]*$
name - The descriptive name of the snapshot.public Snapshot withName(String name)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 128
Pattern: ^([a-zA-Z0-9_])[\\a-zA-Z0-9_@#%*+=:?./!\s-]*$
name - The descriptive name of the snapshot.public String getStatus()
Constraints:
Allowed Values: Creating, Completed, Failed
SnapshotStatuspublic void setStatus(String status)
Constraints:
Allowed Values: Creating, Completed, Failed
status - The snapshot status.SnapshotStatuspublic Snapshot withStatus(String status)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Creating, Completed, Failed
status - The snapshot status.SnapshotStatuspublic void setStatus(SnapshotStatus status)
Constraints:
Allowed Values: Creating, Completed, Failed
status - The snapshot status.SnapshotStatuspublic Snapshot withStatus(SnapshotStatus status)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Creating, Completed, Failed
status - The snapshot status.SnapshotStatuspublic Date getStartTime()
public void setStartTime(Date startTime)
startTime - The date and time that the snapshot was taken.public Snapshot withStartTime(Date startTime)
Returns a reference to this object so that method calls can be chained together.
startTime - The date and time that the snapshot was taken.public String toString()
toString in class ObjectObject.toString()Copyright © 2015. All rights reserved.