public abstract static class SnapshotPolicy.Builder<T extends SnapshotPolicy.Builder<T>> extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
id |
protected Snapshot.Interval |
interval |
protected long |
numberToRetain |
protected String |
schedule |
protected String |
timezone |
protected String |
volumeId |
Constructor and Description |
---|
SnapshotPolicy.Builder() |
Modifier and Type | Method and 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) |
protected String id
protected Snapshot.Interval interval
protected long numberToRetain
protected String schedule
protected String timezone
protected String volumeId
protected abstract T self()
public T id(String id)
SnapshotPolicy.getId()
public T interval(Snapshot.Interval interval)
SnapshotPolicy.getInterval()
public T numberToRetain(long numberToRetain)
SnapshotPolicy.getNumberToRetain()
public T schedule(String schedule)
SnapshotPolicy.getSchedule()
public T timezone(String timezone)
SnapshotPolicy.getTimezone()
public T volumeId(String volumeId)
SnapshotPolicy.getVolumeId()
public SnapshotPolicy build()
public T fromSnapshotPolicy(SnapshotPolicy in)
Copyright © 2009-2013 jclouds. All Rights Reserved.