org.jclouds.cloudstack.domain
Class SnapshotPolicy
java.lang.Object
org.jclouds.cloudstack.domain.SnapshotPolicy
- All Implemented Interfaces:
- Comparable<SnapshotPolicy>
public class SnapshotPolicy
- extends Object
- implements Comparable<SnapshotPolicy>
- Author:
- Richard Downer
SnapshotPolicy
public SnapshotPolicy(long id,
Snapshot.Interval interval,
long numberToRetain,
String schedule,
String timezone,
long volumeId)
builder
public static SnapshotPolicy.Builder builder()
getId
public long getId()
- Returns:
- the ID of the snapshot policy
getInterval
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
public String getSchedule()
- Returns:
- time the snapshot is scheduled to be taken.
getTimezone
public String getTimezone()
- Returns:
- the time zone of the snapshot policy
getVolumeId
public long getVolumeId()
- Returns:
- ID of the disk volume
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
compareTo
public int compareTo(SnapshotPolicy other)
- Specified by:
compareTo
in interface Comparable<SnapshotPolicy>
Copyright © 2009-2012 jclouds. All Rights Reserved.