org.jclouds.cloudstack.domain
Class SnapshotPolicy

java.lang.Object
  extended by org.jclouds.cloudstack.domain.SnapshotPolicy
All Implemented Interfaces:
Comparable<SnapshotPolicy>

public class SnapshotPolicy
extends Object
implements Comparable<SnapshotPolicy>

Author:
Richard Downer

Nested Class Summary
static class SnapshotPolicy.Builder
           
 
Constructor Summary
SnapshotPolicy(long id, Snapshot.Interval interval, long numberToRetain, String schedule, String timezone, long volumeId)
           
 
Method Summary
static SnapshotPolicy.Builder builder()
           
 int compareTo(SnapshotPolicy other)
           
 boolean equals(Object o)
           
 long getId()
           
 Snapshot.Interval getInterval()
           
 long getNumberToRetain()
           
 String getSchedule()
           
 String getTimezone()
           
 long getVolumeId()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SnapshotPolicy

public SnapshotPolicy(long id,
                      Snapshot.Interval interval,
                      long numberToRetain,
                      String schedule,
                      String timezone,
                      long volumeId)
Method Detail

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.