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 intattemptsprotected Optioncommandprotected DatecreatedOnprotected JobStatecurrentStateprotected Map<String,String>detailsprotected Set<JobProperties>historyprotected longidprotected DatelastUpdatedOnprotected ObjectTypeobjectTypeprotected Stringowner 
- 
Constructor Summary
Constructors Constructor Description Builder() 
- 
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Tattempts(int attempts)Jobbuild()Tcommand(Option command)TcreatedOn(Date createdOn)TcurrentState(JobState currentState)Tdetails(Map<String,String> details)TfromJob(Job in)Thistory(Set<JobProperties> history)Thistory(JobProperties... in)Tid(long id)TlastUpdatedOn(Date lastUpdatedOn)TobjectType(ObjectType objectType)Towner(String owner)protected abstract Tself() 
 - 
 
- 
- 
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()
 
 - 
 
 -