org.jclouds.cloudstack.domain
Class SnapshotPolicy

java.lang.Object
  extended by org.jclouds.cloudstack.domain.SnapshotPolicy

public class SnapshotPolicy
extends Object

Class SnapshotPolicy

Author:
Richard Downer

Nested Class Summary
static class SnapshotPolicy.Builder<T extends SnapshotPolicy.Builder<T>>
           
 
Constructor Summary
protected SnapshotPolicy(String id, Snapshot.Interval interval, long numberToRetain, String schedule, String timezone, String volumeId)
           
 
Method Summary
static SnapshotPolicy.Builder<?> builder()
           
 boolean equals(Object obj)
           
 String getId()
           
 Snapshot.Interval getInterval()
           
 long getNumberToRetain()
           
 String getSchedule()
           
 String getTimezone()
           
 String getVolumeId()
           
 int hashCode()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 SnapshotPolicy.Builder<?> toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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, monthly, 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-2013 jclouds. All Rights Reserved.