Package org.jclouds.cloudstack.domain
Class SnapshotPolicy
- java.lang.Object
-
- org.jclouds.cloudstack.domain.SnapshotPolicy
-
public class SnapshotPolicy extends Object
Class SnapshotPolicy
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSnapshotPolicy.Builder<T extends SnapshotPolicy.Builder<T>>
-
Constructor Summary
Constructors Modifier Constructor Description protectedSnapshotPolicy(String id, Snapshot.Interval interval, long numberToRetain, String schedule, String timezone, String volumeId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SnapshotPolicy.Builder<?>builder()booleanequals(Object obj)StringgetId()Snapshot.IntervalgetInterval()longgetNumberToRetain()StringgetSchedule()StringgetTimezone()StringgetVolumeId()inthashCode()protected com.google.common.base.MoreObjects.ToStringHelperstring()SnapshotPolicy.Builder<?>toBuilder()StringtoString()
-
-
-
Constructor Detail
-
SnapshotPolicy
@ConstructorProperties({"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.
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
-