Package org.jclouds.cloudstack.domain
Class Snapshot
java.lang.Object
org.jclouds.cloudstack.domain.Snapshot
Class Snapshot
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSnapshot.Builder<T extends Snapshot.Builder<T>>static enumstatic enumstatic enum -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSnapshot(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
-
Constructor Details
-
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 Details
-
builder
-
toBuilder
-
getId
- Returns:
- ID of the snapshot
-
getAccount
- Returns:
- the account associated with the snapshot
-
getCreated
- Returns:
- the date the snapshot was created
-
getDomain
- Returns:
- the domain name of the snapshot's account
-
getDomainId
- Returns:
- the domain ID of the snapshot's account
-
getInterval
- Returns:
- valid types are hourly, daily, weekly, monthly, template, and none.
-
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
- 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
- Returns:
- name of the snapshot
-
getSnapshotType
- Returns:
- the type of the snapshot
-
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
- Returns:
- ID of the disk volume
-
getVolumeName
- Returns:
- name of the disk volume
-
getVolumeType
- Returns:
- type of the disk volume
-
getTags
- Returns:
- the tags for the snapshot
-
hashCode
public int hashCode() -
equals
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string() -
toString
-