Package org.jclouds.cloudstack.domain
Class Snapshot
- java.lang.Object
-
- org.jclouds.cloudstack.domain.Snapshot
-
public class Snapshot extends Object
Class Snapshot
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Snapshot.Builder<T extends Snapshot.Builder<T>>
static class
Snapshot.Interval
static class
Snapshot.State
static class
Snapshot.Type
-
Constructor Summary
Constructors Modifier Constructor Description protected
Snapshot(String id, String account, Date created, String domain, String domainId, Snapshot.Interval interval, String jobId, String jobStatus, String name, Snapshot.Type snapshotType, Snapshot.State state, String volumeId, String volumeName, Volume.Type volumeType, Set<Tag> tags)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Snapshot.Builder<?>
builder()
boolean
equals(Object obj)
String
getAccount()
Date
getCreated()
String
getDomain()
String
getDomainId()
String
getId()
Snapshot.Interval
getInterval()
String
getJobId()
String
getJobStatus()
String
getName()
Snapshot.Type
getSnapshotType()
Snapshot.State
getState()
Set<Tag>
getTags()
String
getVolumeId()
String
getVolumeName()
Volume.Type
getVolumeType()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
Snapshot.Builder<?>
toBuilder()
String
toString()
-
-
-
Constructor Detail
-
Snapshot
@ConstructorProperties({"id","account","created","domain","domainid","intervaltype","jobid","jobstatus","name","snapshottype","state","volumeid","volumename","volumetype","tags"}) protected Snapshot(String id, @Nullable String account, @Nullable Date created, @Nullable String domain, @Nullable String domainId, @Nullable Snapshot.Interval interval, @Nullable String jobId, @Nullable String jobStatus, @Nullable String name, @Nullable Snapshot.Type snapshotType, @Nullable Snapshot.State state, @Nullable String volumeId, @Nullable String volumeName, @Nullable Volume.Type volumeType, @Nullable Set<Tag> tags)
-
-
Method Detail
-
builder
public static Snapshot.Builder<?> builder()
-
toBuilder
public Snapshot.Builder<?> toBuilder()
-
getId
public String getId()
- Returns:
- ID of the snapshot
-
getInterval
@Nullable public Snapshot.Interval getInterval()
- Returns:
- valid types are hourly, daily, weekly, monthly, template, and none.
-
getJobId
@Nullable public String 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
@Nullable 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.
-
getSnapshotType
@Nullable public Snapshot.Type getSnapshotType()
- Returns:
- the type of the snapshot
-
getState
@Nullable 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
-
getVolumeType
@Nullable public Volume.Type getVolumeType()
- Returns:
- type of the disk volume
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
-