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 classSnapshot.Builder<T extends Snapshot.Builder<T>>static classSnapshot.Intervalstatic classSnapshot.Statestatic classSnapshot.Type
-
Constructor Summary
Constructors Modifier Constructor Description protectedSnapshot(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()booleanequals(Object obj)StringgetAccount()DategetCreated()StringgetDomain()StringgetDomainId()StringgetId()Snapshot.IntervalgetInterval()StringgetJobId()StringgetJobStatus()StringgetName()Snapshot.TypegetSnapshotType()Snapshot.StategetState()Set<Tag>getTags()StringgetVolumeId()StringgetVolumeName()Volume.TypegetVolumeType()inthashCode()protected com.google.common.base.MoreObjects.ToStringHelperstring()Snapshot.Builder<?>toBuilder()StringtoString()
-
-
-
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()
-
-