public class Snapshot
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Snapshot.Builder |
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
Snapshot() |
Snapshot(java.lang.Long snapshotID,
java.lang.Long volumeID,
java.lang.String name,
java.lang.String checksum,
java.lang.Boolean enableRemoteReplication,
java.lang.String expirationReason,
Optional<java.lang.String> expirationTime,
Optional<SnapshotRemoteStatus[]> remoteStatuses,
java.lang.String status,
java.util.UUID snapshotUUID,
java.lang.Long totalSize,
Optional<java.lang.Long> groupID,
java.util.UUID groupSnapshotUUID,
java.lang.String createTime,
java.lang.String instanceCreateTime,
java.lang.String volumeName,
java.util.UUID instanceSnapshotUUID,
Optional<java.util.UUID> virtualVolumeID,
Attributes attributes,
Optional<java.lang.String> snapMirrorLabel) |
Modifier and Type | Method and Description |
---|---|
Snapshot.Builder |
asBuilder() |
static Snapshot.Builder |
builder() |
boolean |
equals(java.lang.Object o) |
Attributes |
getAttributes()
List of Name/Value pairs in JSON object format.
|
java.lang.String |
getChecksum()
A string that represents the correct digits in the stored snapshot.
|
java.lang.String |
getCreateTime()
The time this snapshot was taken.
|
java.lang.Boolean |
getEnableRemoteReplication()
Identifies if snapshot is enabled for remote replication.
|
java.lang.String |
getExpirationReason()
Indicates how the snapshot expiration was set.
|
Optional<java.lang.String> |
getExpirationTime()
The time at which this snapshot will expire and be purged from the cluster.
|
Optional<java.lang.Long> |
getGroupID()
If present, the ID of the group this snapshot is a part of.
|
java.util.UUID |
getGroupSnapshotUUID()
Universal Unique ID of the group this snapshot is part of.
|
java.lang.String |
getInstanceCreateTime() |
java.util.UUID |
getInstanceSnapshotUUID() |
java.lang.String |
getName()
A name for this snapshot.
|
Optional<SnapshotRemoteStatus[]> |
getRemoteStatuses()
Replication status details of the snapshot as seen on the source cluster.
|
Optional<java.lang.String> |
getSnapMirrorLabel()
Label used by SnapMirror software to specify snapshot retention policy on SnapMirror endpoint.
|
java.lang.Long |
getSnapshotID()
Unique ID for this snapshot.
|
java.util.UUID |
getSnapshotUUID()
Universal Unique ID of an existing snapshot.
|
java.lang.String |
getStatus()
Current status of the snapshot
Preparing: A snapshot that is being prepared for use and is not yet writable.
|
java.lang.Long |
getTotalSize()
Total size of this snapshot in bytes.
|
Optional<java.util.UUID> |
getVirtualVolumeID()
The ID of the virtual volume with which the snapshot is associated.
|
java.lang.Long |
getVolumeID()
The volume this snapshot was taken of.
|
java.lang.String |
getVolumeName() |
int |
hashCode() |
void |
setAttributes(Attributes attributes) |
void |
setChecksum(java.lang.String checksum) |
void |
setCreateTime(java.lang.String createTime) |
void |
setEnableRemoteReplication(java.lang.Boolean enableRemoteReplication) |
void |
setExpirationReason(java.lang.String expirationReason) |
void |
setExpirationTime(Optional<java.lang.String> expirationTime) |
void |
setGroupID(Optional<java.lang.Long> groupID) |
void |
setGroupSnapshotUUID(java.util.UUID groupSnapshotUUID) |
void |
setInstanceCreateTime(java.lang.String instanceCreateTime) |
void |
setInstanceSnapshotUUID(java.util.UUID instanceSnapshotUUID) |
void |
setName(java.lang.String name) |
void |
setRemoteStatuses(Optional<SnapshotRemoteStatus[]> remoteStatuses) |
void |
setSnapMirrorLabel(Optional<java.lang.String> snapMirrorLabel) |
void |
setSnapshotID(java.lang.Long snapshotID) |
void |
setSnapshotUUID(java.util.UUID snapshotUUID) |
void |
setStatus(java.lang.String status) |
void |
setTotalSize(java.lang.Long totalSize) |
void |
setVirtualVolumeID(Optional<java.util.UUID> virtualVolumeID) |
void |
setVolumeID(java.lang.Long volumeID) |
void |
setVolumeName(java.lang.String volumeName) |
java.util.Map<java.lang.String,java.lang.Object> |
toMap() |
java.lang.String |
toString() |
public static final long serialVersionUID
@Since(value="7.0") public Snapshot(java.lang.Long snapshotID, java.lang.Long volumeID, java.lang.String name, java.lang.String checksum, java.lang.Boolean enableRemoteReplication, java.lang.String expirationReason, Optional<java.lang.String> expirationTime, Optional<SnapshotRemoteStatus[]> remoteStatuses, java.lang.String status, java.util.UUID snapshotUUID, java.lang.Long totalSize, Optional<java.lang.Long> groupID, java.util.UUID groupSnapshotUUID, java.lang.String createTime, java.lang.String instanceCreateTime, java.lang.String volumeName, java.util.UUID instanceSnapshotUUID, Optional<java.util.UUID> virtualVolumeID, Attributes attributes, Optional<java.lang.String> snapMirrorLabel)
public java.lang.Long getSnapshotID()
public void setSnapshotID(java.lang.Long snapshotID)
public java.lang.Long getVolumeID()
public void setVolumeID(java.lang.Long volumeID)
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getChecksum()
public void setChecksum(java.lang.String checksum)
public java.lang.Boolean getEnableRemoteReplication()
public void setEnableRemoteReplication(java.lang.Boolean enableRemoteReplication)
public java.lang.String getExpirationReason()
public void setExpirationReason(java.lang.String expirationReason)
public Optional<java.lang.String> getExpirationTime()
public void setExpirationTime(Optional<java.lang.String> expirationTime)
public Optional<SnapshotRemoteStatus[]> getRemoteStatuses()
public void setRemoteStatuses(Optional<SnapshotRemoteStatus[]> remoteStatuses)
public java.lang.String getStatus()
public void setStatus(java.lang.String status)
public java.util.UUID getSnapshotUUID()
public void setSnapshotUUID(java.util.UUID snapshotUUID)
public java.lang.Long getTotalSize()
public void setTotalSize(java.lang.Long totalSize)
public Optional<java.lang.Long> getGroupID()
public void setGroupID(Optional<java.lang.Long> groupID)
public java.util.UUID getGroupSnapshotUUID()
public void setGroupSnapshotUUID(java.util.UUID groupSnapshotUUID)
public java.lang.String getCreateTime()
public void setCreateTime(java.lang.String createTime)
public java.lang.String getInstanceCreateTime()
public void setInstanceCreateTime(java.lang.String instanceCreateTime)
public java.lang.String getVolumeName()
public void setVolumeName(java.lang.String volumeName)
public java.util.UUID getInstanceSnapshotUUID()
public void setInstanceSnapshotUUID(java.util.UUID instanceSnapshotUUID)
public Optional<java.util.UUID> getVirtualVolumeID()
public void setVirtualVolumeID(Optional<java.util.UUID> virtualVolumeID)
public Attributes getAttributes()
public void setAttributes(Attributes attributes)
public Optional<java.lang.String> getSnapMirrorLabel()
public void setSnapMirrorLabel(Optional<java.lang.String> snapMirrorLabel)
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 Snapshot.Builder builder()
public final Snapshot.Builder asBuilder()