org.jclouds.cloudstack.domain
Class Snapshot
java.lang.Object
org.jclouds.cloudstack.domain.Snapshot
- All Implemented Interfaces:
- Comparable<Snapshot>
public class Snapshot
- extends Object
- implements Comparable<Snapshot>
- Author:
- Richard Downer
Constructor Summary |
Snapshot(long id,
String account,
Date created,
String domain,
long domainId,
Snapshot.Interval interval,
long jobId,
String jobStatus,
String name,
Snapshot.Type snapshotType,
Snapshot.State state,
long volumeId,
String volumeName,
Volume.Type volumeType)
|
Snapshot
public Snapshot(long id,
String account,
Date created,
String domain,
long domainId,
Snapshot.Interval interval,
long jobId,
String jobStatus,
String name,
Snapshot.Type snapshotType,
Snapshot.State state,
long volumeId,
String volumeName,
Volume.Type volumeType)
builder
public static Snapshot.Builder builder()
getId
public long getId()
- Returns:
- ID of the snapshot
getAccount
public String getAccount()
- Returns:
- the account associated with the snapshot
getCreated
public Date getCreated()
- Returns:
- the date the snapshot was created
getDomain
public String getDomain()
- Returns:
- the domain name of the snapshot's account
getDomainId
public long getDomainId()
- Returns:
- the domain ID of the snapshot's account
getInterval
public Snapshot.Interval getInterval()
- Returns:
- valid types are hourly, daily, weekly, monthy, template, and none.
getJobId
public long getJobId()
- Returns:
- the job ID associated with the snapshot. This is only displayed if the snapshot listed is part of a currently running asynchronous job.
getJobStatus
public String getJobStatus()
- Returns:
- the job status associated with the snapshot. This is only displayed if the snapshot listed is part of a currently running asynchronous job.
getName
public String getName()
- Returns:
- name of the snapshot
getSnapshotType
public Snapshot.Type getSnapshotType()
- Returns:
- the type of the snapshot
getState
public Snapshot.State getState()
- Returns:
- the state of the snapshot. BackedUp means that snapshot is ready to be used; Creating - the snapshot is being allocated on the primary storage; BackingUp - the snapshot is being backed up on secondary storage
getVolumeId
public long getVolumeId()
- Returns:
- ID of the disk volume
getVolumeName
public String getVolumeName()
- Returns:
- name of the disk volume
getVolumeType
public Volume.Type getVolumeType()
- Returns:
- type of the disk volume
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
compareTo
public int compareTo(Snapshot other)
- Specified by:
compareTo
in interface Comparable<Snapshot>
Copyright © 2009-2012 jclouds. All Rights Reserved.