Package org.jclouds.cloudstack.domain
Class SnapshotPolicy.Builder<T extends SnapshotPolicy.Builder<T>>
- java.lang.Object
-
- org.jclouds.cloudstack.domain.SnapshotPolicy.Builder<T>
-
- Enclosing class:
- SnapshotPolicy
public abstract static class SnapshotPolicy.Builder<T extends SnapshotPolicy.Builder<T>> extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description SnapshotPolicy
build()
T
fromSnapshotPolicy(SnapshotPolicy in)
T
id(String id)
T
interval(Snapshot.Interval interval)
T
numberToRetain(long numberToRetain)
T
schedule(String schedule)
protected abstract T
self()
T
timezone(String timezone)
T
volumeId(String volumeId)
-
-
-
Field Detail
-
id
protected String id
-
interval
protected Snapshot.Interval interval
-
numberToRetain
protected long numberToRetain
-
schedule
protected String schedule
-
timezone
protected String timezone
-
volumeId
protected String volumeId
-
-
Method Detail
-
self
protected abstract T self()
-
id
public T id(String id)
- See Also:
SnapshotPolicy.getId()
-
interval
public T interval(Snapshot.Interval interval)
- See Also:
SnapshotPolicy.getInterval()
-
numberToRetain
public T numberToRetain(long numberToRetain)
- See Also:
SnapshotPolicy.getNumberToRetain()
-
schedule
public T schedule(String schedule)
- See Also:
SnapshotPolicy.getSchedule()
-
timezone
public T timezone(String timezone)
- See Also:
SnapshotPolicy.getTimezone()
-
volumeId
public T volumeId(String volumeId)
- See Also:
SnapshotPolicy.getVolumeId()
-
build
public SnapshotPolicy build()
-
fromSnapshotPolicy
public T fromSnapshotPolicy(SnapshotPolicy in)
-
-