org.jclouds.cloudstack.domain
Class Snapshot
java.lang.Object
org.jclouds.cloudstack.domain.Snapshot
public class Snapshot
- extends Object
Class Snapshot
- Author:
- Richard Downer
|
Constructor Summary |
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)
|
Snapshot
@ConstructorProperties(value={"id","account","created","domain","domainid","intervaltype","jobid","jobstatus","name","snapshottype","state","volumeid","volumename","volumetype"})
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)
builder
public static Snapshot.Builder<?> builder()
toBuilder
public Snapshot.Builder<?> toBuilder()
getId
public String getId()
- Returns:
- ID of the snapshot
getAccount
@Nullable
public String getAccount()
- Returns:
- the account associated with the snapshot
getCreated
@Nullable
public Date getCreated()
- Returns:
- the date the snapshot was created
getDomain
@Nullable
public String getDomain()
- Returns:
- the domain name of the snapshot's account
getDomainId
@Nullable
public String getDomainId()
- Returns:
- the domain ID of the snapshot's account
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.
getName
@Nullable
public String getName()
- Returns:
- name of the snapshot
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
getVolumeId
@Nullable
public String getVolumeId()
- Returns:
- ID of the disk volume
getVolumeName
@Nullable
public String getVolumeName()
- Returns:
- name of the disk volume
getVolumeType
@Nullable
public Volume.Type getVolumeType()
- Returns:
- type of the disk volume
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
string
protected com.google.common.base.Objects.ToStringHelper string()
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2009-2013 jclouds. All Rights Reserved.