org.jclouds.cloudstack.domain
Class SnapshotPolicy.Builder
java.lang.Object
org.jclouds.cloudstack.domain.SnapshotPolicy.Builder
- Enclosing class:
- SnapshotPolicy
public static class SnapshotPolicy.Builder
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SnapshotPolicy.Builder
public SnapshotPolicy.Builder()
id
public SnapshotPolicy.Builder id(long id)
- Parameters:
id
- the ID of the snapshot policy
interval
public SnapshotPolicy.Builder interval(Snapshot.Interval interval)
- Parameters:
interval
- valid types are hourly, daily, weekly, monthy, template, and none.
numberToRetain
public SnapshotPolicy.Builder numberToRetain(long numberToRetain)
- Parameters:
numberToRetain
- maximum number of snapshots retained
schedule
public SnapshotPolicy.Builder schedule(String schedule)
- Parameters:
schedule
- time the snapshot is scheduled to be taken.
timezone
public SnapshotPolicy.Builder timezone(String timezone)
- Parameters:
timezone
- the time zone of the snapshot policy
volumeId
public SnapshotPolicy.Builder volumeId(long volumeId)
- Parameters:
volumeId
- ID of the disk volume
build
public SnapshotPolicy build()
Copyright © 2009-2012 jclouds. All Rights Reserved.