org.jclouds.cloudstack.domain
Class Snapshot.Builder<T extends Snapshot.Builder<T>>

java.lang.Object
  extended by org.jclouds.cloudstack.domain.Snapshot.Builder<T>
Enclosing class:
Snapshot

public abstract static class Snapshot.Builder<T extends Snapshot.Builder<T>>
extends Object


Field Summary
protected  String account
           
protected  Date created
           
protected  String domain
           
protected  String domainId
           
protected  String id
           
protected  Snapshot.Interval interval
           
protected  String jobId
           
protected  String jobStatus
           
protected  String name
           
protected  Snapshot.Type snapshotType
           
protected  Snapshot.State state
           
protected  String volumeId
           
protected  String volumeName
           
protected  Volume.Type volumeType
           
 
Constructor Summary
Snapshot.Builder()
           
 
Method Summary
 T account(String account)
           
 Snapshot build()
           
 T created(Date created)
           
 T domain(String domain)
           
 T domainId(String domainId)
           
 T fromSnapshot(Snapshot in)
           
 T id(String id)
           
 T interval(Snapshot.Interval interval)
           
 T jobId(String jobId)
           
 T jobStatus(String jobStatus)
           
 T name(String name)
           
protected abstract  T self()
           
 T snapshotType(Snapshot.Type snapshotType)
           
 T state(Snapshot.State state)
           
 T volumeId(String volumeId)
           
 T volumeName(String volumeName)
           
 T volumeType(Volume.Type volumeType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected String id

account

protected String account

created

protected Date created

domain

protected String domain

domainId

protected String domainId

interval

protected Snapshot.Interval interval

jobId

protected String jobId

jobStatus

protected String jobStatus

name

protected String name

snapshotType

protected Snapshot.Type snapshotType

state

protected Snapshot.State state

volumeId

protected String volumeId

volumeName

protected String volumeName

volumeType

protected Volume.Type volumeType
Constructor Detail

Snapshot.Builder

public Snapshot.Builder()
Method Detail

self

protected abstract T self()

id

public T id(String id)
See Also:
Snapshot.getId()

account

public T account(String account)
See Also:
Snapshot.getAccount()

created

public T created(Date created)
See Also:
Snapshot.getCreated()

domain

public T domain(String domain)
See Also:
Snapshot.getDomain()

domainId

public T domainId(String domainId)
See Also:
Snapshot.getDomainId()

interval

public T interval(Snapshot.Interval interval)
See Also:
Snapshot.getInterval()

jobId

public T jobId(String jobId)
See Also:
Snapshot.getJobId()

jobStatus

public T jobStatus(String jobStatus)
See Also:
Snapshot.getJobStatus()

name

public T name(String name)
See Also:
Snapshot.getName()

snapshotType

public T snapshotType(Snapshot.Type snapshotType)
See Also:
Snapshot.getSnapshotType()

state

public T state(Snapshot.State state)
See Also:
Snapshot.getState()

volumeId

public T volumeId(String volumeId)
See Also:
Snapshot.getVolumeId()

volumeName

public T volumeName(String volumeName)
See Also:
Snapshot.getVolumeName()

volumeType

public T volumeType(Volume.Type volumeType)
See Also:
Snapshot.getVolumeType()

build

public Snapshot build()

fromSnapshot

public T fromSnapshot(Snapshot in)


Copyright © 2009-2013 jclouds. All Rights Reserved.