Package org.jclouds.cloudstack.domain
Class SnapshotPolicy
java.lang.Object
org.jclouds.cloudstack.domain.SnapshotPolicy
Class SnapshotPolicy
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
SnapshotPolicy.Builder<T extends SnapshotPolicy.Builder<T>>
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SnapshotPolicy
(String id, Snapshot.Interval interval, long numberToRetain, String schedule, String timezone, String volumeId) -
Method Summary
-
Constructor Details
-
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 Details
-
builder
-
toBuilder
-
getId
- Returns:
- the ID of the snapshot policy
-
getInterval
- Returns:
- valid types are hourly, daily, weekly, monthly, template, and none.
-
getNumberToRetain
public long getNumberToRetain()- Returns:
- maximum number of snapshots retained
-
getSchedule
- Returns:
- time the snapshot is scheduled to be taken.
-
getTimezone
- Returns:
- the time zone of the snapshot policy
-
getVolumeId
- Returns:
- ID of the disk volume
-
hashCode
public int hashCode() -
equals
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string() -
toString
-