public class Snapshot
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a directory snapshot.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
directoryId
The directory identifier.
|
private java.lang.String |
name
The descriptive name of the snapshot.
|
private java.lang.String |
snapshotId
The snapshot identifier.
|
private java.util.Date |
startTime
The date and time that the snapshot was taken.
|
private java.lang.String |
status
The snapshot status.
|
private java.lang.String |
type
The snapshot type.
|
Constructor and Description |
---|
Snapshot() |
Modifier and Type | Method and Description |
---|---|
Snapshot |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDirectoryId()
The directory identifier.
|
java.lang.String |
getName()
The descriptive name of the snapshot.
|
java.lang.String |
getSnapshotId()
The snapshot identifier.
|
java.util.Date |
getStartTime()
The date and time that the snapshot was taken.
|
java.lang.String |
getStatus()
The snapshot status.
|
java.lang.String |
getType()
The snapshot type.
|
int |
hashCode() |
void |
setDirectoryId(java.lang.String directoryId)
The directory identifier.
|
void |
setName(java.lang.String name)
The descriptive name of the snapshot.
|
void |
setSnapshotId(java.lang.String snapshotId)
The snapshot identifier.
|
void |
setStartTime(java.util.Date startTime)
The date and time that the snapshot was taken.
|
void |
setStatus(SnapshotStatus status)
The snapshot status.
|
void |
setStatus(java.lang.String status)
The snapshot status.
|
void |
setType(SnapshotType type)
The snapshot type.
|
void |
setType(java.lang.String type)
The snapshot type.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Snapshot |
withDirectoryId(java.lang.String directoryId)
The directory identifier.
|
Snapshot |
withName(java.lang.String name)
The descriptive name of the snapshot.
|
Snapshot |
withSnapshotId(java.lang.String snapshotId)
The snapshot identifier.
|
Snapshot |
withStartTime(java.util.Date startTime)
The date and time that the snapshot was taken.
|
Snapshot |
withStatus(SnapshotStatus status)
The snapshot status.
|
Snapshot |
withStatus(java.lang.String status)
The snapshot status.
|
Snapshot |
withType(SnapshotType type)
The snapshot type.
|
Snapshot |
withType(java.lang.String type)
The snapshot type.
|
private java.lang.String directoryId
The directory identifier.
private java.lang.String snapshotId
The snapshot identifier.
private java.lang.String type
The snapshot type.
private java.lang.String name
The descriptive name of the snapshot.
private java.lang.String status
The snapshot status.
private java.util.Date startTime
The date and time that the snapshot was taken.
public void setDirectoryId(java.lang.String directoryId)
The directory identifier.
directoryId
- The directory identifier.public java.lang.String getDirectoryId()
The directory identifier.
public Snapshot withDirectoryId(java.lang.String directoryId)
The directory identifier.
directoryId
- The directory identifier.public void setSnapshotId(java.lang.String snapshotId)
The snapshot identifier.
snapshotId
- The snapshot identifier.public java.lang.String getSnapshotId()
The snapshot identifier.
public Snapshot withSnapshotId(java.lang.String snapshotId)
The snapshot identifier.
snapshotId
- The snapshot identifier.public void setType(java.lang.String type)
The snapshot type.
type
- The snapshot type.SnapshotType
public java.lang.String getType()
The snapshot type.
SnapshotType
public Snapshot withType(java.lang.String type)
The snapshot type.
type
- The snapshot type.SnapshotType
public void setType(SnapshotType type)
The snapshot type.
type
- The snapshot type.SnapshotType
public Snapshot withType(SnapshotType type)
The snapshot type.
type
- The snapshot type.SnapshotType
public void setName(java.lang.String name)
The descriptive name of the snapshot.
name
- The descriptive name of the snapshot.public java.lang.String getName()
The descriptive name of the snapshot.
public Snapshot withName(java.lang.String name)
The descriptive name of the snapshot.
name
- The descriptive name of the snapshot.public void setStatus(java.lang.String status)
The snapshot status.
status
- The snapshot status.SnapshotStatus
public java.lang.String getStatus()
The snapshot status.
SnapshotStatus
public Snapshot withStatus(java.lang.String status)
The snapshot status.
status
- The snapshot status.SnapshotStatus
public void setStatus(SnapshotStatus status)
The snapshot status.
status
- The snapshot status.SnapshotStatus
public Snapshot withStatus(SnapshotStatus status)
The snapshot status.
status
- The snapshot status.SnapshotStatus
public void setStartTime(java.util.Date startTime)
The date and time that the snapshot was taken.
startTime
- The date and time that the snapshot was taken.public java.util.Date getStartTime()
The date and time that the snapshot was taken.
public Snapshot withStartTime(java.util.Date startTime)
The date and time that the snapshot was taken.
startTime
- The date and time that the snapshot was taken.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Snapshot clone()
clone
in class java.lang.Object