public static class SnapshotPolicy.Builder extends Object
Constructor and Description |
---|
SnapshotPolicy.Builder() |
Modifier and Type | Method and Description |
---|---|
SnapshotPolicy |
build() |
SnapshotPolicy.Builder |
id(long id) |
SnapshotPolicy.Builder |
interval(Snapshot.Interval interval) |
SnapshotPolicy.Builder |
numberToRetain(long numberToRetain) |
SnapshotPolicy.Builder |
schedule(String schedule) |
SnapshotPolicy.Builder |
timezone(String timezone) |
SnapshotPolicy.Builder |
volumeId(long volumeId) |
public SnapshotPolicy.Builder id(long id)
id
- the ID of the snapshot policypublic SnapshotPolicy.Builder interval(Snapshot.Interval interval)
interval
- valid types are hourly, daily, weekly, monthy, template, and none.public SnapshotPolicy.Builder numberToRetain(long numberToRetain)
numberToRetain
- maximum number of snapshots retainedpublic SnapshotPolicy.Builder schedule(String schedule)
schedule
- time the snapshot is scheduled to be taken.public SnapshotPolicy.Builder timezone(String timezone)
timezone
- the time zone of the snapshot policypublic SnapshotPolicy.Builder volumeId(long volumeId)
volumeId
- ID of the disk volumepublic SnapshotPolicy build()
Copyright © 2009-2012 jclouds. All Rights Reserved.