org.jclouds.gogrid.domain
Class Job.Builder<T extends Job.Builder<T>>
java.lang.Object
org.jclouds.gogrid.domain.Job.Builder<T>
- Enclosing class:
- Job
public abstract static class Job.Builder<T extends Job.Builder<T>>
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
details
protected Map<String,String> details
Job.Builder
public Job.Builder()
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()
fromJob
public T fromJob(Job in)
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.