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 class
SnapshotPolicy.Builder<T extends SnapshotPolicy.Builder<T>>
-
Constructor Summary
Constructors Modifier Constructor Description protected
SnapshotPolicy(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()
boolean
equals(Object obj)
String
getId()
Snapshot.Interval
getInterval()
long
getNumberToRetain()
String
getSchedule()
String
getTimezone()
String
getVolumeId()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
SnapshotPolicy.Builder<?>
toBuilder()
String
toString()
-
-
-
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()
-
-