org.jclouds.cloudstack.domain
Class SnapshotPolicy.Builder

java.lang.Object
  extended by org.jclouds.cloudstack.domain.SnapshotPolicy.Builder
Enclosing class:
SnapshotPolicy

public static class SnapshotPolicy.Builder
extends Object


Constructor Summary
SnapshotPolicy.Builder()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnapshotPolicy.Builder

public SnapshotPolicy.Builder()
Method Detail

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.