org.jclouds.cloudstack.domain
Class AsyncJob.Builder<T extends AsyncJob.Builder<T,S>,S>

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

public abstract static class AsyncJob.Builder<T extends AsyncJob.Builder<T,S>,S>
extends Object


Field Summary
protected  String accountId
           
protected  String cmd
           
protected  Date created
           
protected  AsyncJobError error
           
protected  String id
           
protected  String instanceId
           
protected  String instanceType
           
protected  int progress
           
protected  S result
           
protected  AsyncJob.ResultCode resultCode
           
protected  String resultType
           
protected  AsyncJob.Status status
           
protected  String userId
           
 
Constructor Summary
AsyncJob.Builder()
           
 
Method Summary
 T accountId(String accountId)
           
 AsyncJob build()
           
 T cmd(String cmd)
           
 T created(Date created)
           
 T error(AsyncJobError error)
           
 T fromAsyncJob(AsyncJob<S> in)
           
static AsyncJob.Builder<?,Object> fromAsyncJobUntyped(AsyncJob in)
           
 T id(String id)
           
 T instanceId(String instanceId)
           
 T instanceType(String instanceType)
           
 T progress(int progress)
           
 T result(S result)
           
 T resultCode(AsyncJob.ResultCode resultCode)
           
 T resultType(String resultType)
           
protected abstract  T self()
           
 T status(AsyncJob.Status status)
           
 T userId(String userId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

accountId

protected String accountId

cmd

protected String cmd

created

protected Date created

id

protected String id

instanceId

protected String instanceId

instanceType

protected String instanceType

progress

protected int progress

result

protected S result

resultCode

protected AsyncJob.ResultCode resultCode

resultType

protected String resultType

status

protected AsyncJob.Status status

userId

protected String userId

error

protected AsyncJobError error
Constructor Detail

AsyncJob.Builder

public AsyncJob.Builder()
Method Detail

self

protected abstract T self()

accountId

public T accountId(String accountId)
See Also:
AsyncJob.getAccountId()

cmd

public T cmd(String cmd)
See Also:
AsyncJob.getCmd()

created

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

id

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

instanceId

public T instanceId(String instanceId)
See Also:
AsyncJob.getInstanceId()

instanceType

public T instanceType(String instanceType)
See Also:
AsyncJob.getInstanceType()

progress

public T progress(int progress)
See Also:
AsyncJob.getProgress()

result

public T result(S result)
See Also:
AsyncJob.getResult()

resultCode

public T resultCode(AsyncJob.ResultCode resultCode)
See Also:
AsyncJob.getResultCode()

resultType

public T resultType(String resultType)
See Also:
AsyncJob.getResultType()

status

public T status(AsyncJob.Status status)
See Also:
AsyncJob.getStatus()

userId

public T userId(String userId)
See Also:
AsyncJob.getUserId()

error

public T error(AsyncJobError error)
See Also:
AsyncJob.getError()

build

public AsyncJob build()

fromAsyncJob

public T fromAsyncJob(AsyncJob<S> in)

fromAsyncJobUntyped

public static AsyncJob.Builder<?,Object> fromAsyncJobUntyped(AsyncJob in)


Copyright © 2009-2013 jclouds. All Rights Reserved.