Package org.jclouds.gogrid.domain
Class Job.Builder<T extends Job.Builder<T>>
- java.lang.Object
-
- org.jclouds.gogrid.domain.Job.Builder<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected int
attempts
protected Option
command
protected Date
createdOn
protected JobState
currentState
protected Map<String,String>
details
protected Set<JobProperties>
history
protected long
id
protected Date
lastUpdatedOn
protected ObjectType
objectType
protected String
owner
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description T
attempts(int attempts)
Job
build()
T
command(Option command)
T
createdOn(Date createdOn)
T
currentState(JobState currentState)
T
details(Map<String,String> details)
T
fromJob(Job in)
T
history(Set<JobProperties> history)
T
history(JobProperties... in)
T
id(long id)
T
lastUpdatedOn(Date lastUpdatedOn)
T
objectType(ObjectType objectType)
T
owner(String owner)
protected abstract T
self()
-
-
-
Field Detail
-
id
protected long id
-
command
protected Option command
-
objectType
protected ObjectType objectType
-
createdOn
protected Date createdOn
-
lastUpdatedOn
protected Date lastUpdatedOn
-
currentState
protected JobState currentState
-
attempts
protected int attempts
-
owner
protected String owner
-
history
protected Set<JobProperties> history
-
-
Method Detail
-
self
protected abstract T self()
-
id
public T id(long id)
- See Also:
Job.getId()
-
command
public T command(Option command)
- See Also:
Job.getCommand()
-
objectType
public T objectType(ObjectType objectType)
- See Also:
Job.getObjectType()
-
createdOn
public T createdOn(Date createdOn)
- See Also:
Job.getCreatedOn()
-
lastUpdatedOn
public T lastUpdatedOn(Date lastUpdatedOn)
- See Also:
Job.getLastUpdatedOn()
-
currentState
public T currentState(JobState currentState)
- See Also:
Job.getCurrentState()
-
attempts
public T attempts(int attempts)
- See Also:
Job.getAttempts()
-
owner
public T owner(String owner)
- See Also:
Job.getOwner()
-
history
public T history(Set<JobProperties> history)
- See Also:
Job.getHistory()
-
history
public T history(JobProperties... in)
-
details
public T details(Map<String,String> details)
- See Also:
Job.getDetails()
-
build
public Job build()
-
-