org.jclouds.cloudstack.domain
Class Snapshot.Builder
java.lang.Object
org.jclouds.cloudstack.domain.Snapshot.Builder
- Enclosing class:
- Snapshot
public static class Snapshot.Builder
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Snapshot.Builder
public Snapshot.Builder()
id
public Snapshot.Builder id(long id)
- Parameters:
id - ID of the snapshot
account
public Snapshot.Builder account(String account)
- Parameters:
account - the account associated with the snapshot
created
public Snapshot.Builder created(Date created)
- Parameters:
created - the date the snapshot was created
domain
public Snapshot.Builder domain(String domain)
- Parameters:
domain - the domain name of the snapshot's account
domainId
public Snapshot.Builder domainId(long domainId)
- Parameters:
domainId - the domain ID of the snapshot's account
interval
public Snapshot.Builder interval(Snapshot.Interval interval)
- Parameters:
interval - valid types are hourly, daily, weekly, monthy, template, and none.
jobId
public Snapshot.Builder jobId(long jobId)
- Parameters:
jobId - the job ID associated with the snapshot. This is only displayed if the snapshot listed is part of a currently running asynchronous job.
jobStatus
public Snapshot.Builder jobStatus(String jobStatus)
- Parameters:
jobStatus - the job status associated with the snapshot. This is only displayed if the snapshot listed is part of a currently running asynchronous job.
name
public Snapshot.Builder name(String name)
- Parameters:
name - name of the snapshot
snapshotType
public Snapshot.Builder snapshotType(Snapshot.Type snapshotType)
- Parameters:
snapshotType - the type of the snapshot
state
public Snapshot.Builder state(Snapshot.State state)
- Parameters:
state - the state of the snapshot. BackedUp means that snapshot is ready to be used; Creating - the snapshot is being allocated on the primary storage; BackingUp - the snapshot is being backed up on secondary storage
volumeId
public Snapshot.Builder volumeId(long volumeId)
- Parameters:
volumeId - ID of the disk volume
volumeName
public Snapshot.Builder volumeName(String volumeName)
- Parameters:
volumeName - name of the disk volume
volumeType
public Snapshot.Builder volumeType(Volume.Type volumeType)
- Parameters:
volumeType - type of the disk volume
build
public Snapshot build()
Copyright © 2009-2012 jclouds. All Rights Reserved.