Package org.jclouds.cloudstack.domain
Class AsyncJob.Builder<T extends AsyncJob.Builder<T,S>,S>
- java.lang.Object
-
- org.jclouds.cloudstack.domain.AsyncJob.Builder<T,S>
-
-
Field Summary
Fields Modifier and Type Field Description 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
Constructors Constructor Description Builder()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
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
-
-
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()
-
fromAsyncJobUntyped
public static AsyncJob.Builder<?,Object> fromAsyncJobUntyped(AsyncJob<?> in)
-
-