org.jclouds.cloudstack.domain
Class SnapshotPolicy
java.lang.Object
org.jclouds.cloudstack.domain.SnapshotPolicy
public class SnapshotPolicy
- extends Object
Class SnapshotPolicy
- Author:
- Richard Downer
SnapshotPolicy
@ConstructorProperties(value={"id","intervaltype","maxsnaps","schedule","timezone","volumeid"})
protected SnapshotPolicy(String id,
@Nullable
Snapshot.Interval interval,
long numberToRetain,
@Nullable
String schedule,
@Nullable
String timezone,
@Nullable
String volumeId)
builder
public static SnapshotPolicy.Builder<?> builder()
toBuilder
public SnapshotPolicy.Builder<?> toBuilder()
getId
public String getId()
- Returns:
- the ID of the snapshot policy
getInterval
@Nullable
public Snapshot.Interval getInterval()
- Returns:
- valid types are hourly, daily, weekly, monthy, template, and none.
getNumberToRetain
public long getNumberToRetain()
- Returns:
- maximum number of snapshots retained
getSchedule
@Nullable
public String getSchedule()
- Returns:
- time the snapshot is scheduled to be taken.
getTimezone
@Nullable
public String getTimezone()
- Returns:
- the time zone of the snapshot policy
getVolumeId
@Nullable
public String getVolumeId()
- Returns:
- ID 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-2012 jclouds. All Rights Reserved.