Package com.circleci.client.v2.model
Class Job
- java.lang.Object
-
- com.circleci.client.v2.model.Job
-
public class Job extends Object
Job
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJob.TypeEnumThe type of job.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DEPENDENCIESstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_JOB_NUMBERstatic StringJSON_PROPERTY_NAMEstatic StringJSON_PROPERTY_PROJECT_SLUGstatic StringJSON_PROPERTY_START_TIMEstatic StringJSON_PROPERTY_STATUSstatic StringJSON_PROPERTY_STOP_TIMEstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description Job()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JobaddDependenciesItem(UUID dependenciesItem)Jobdependencies(List<UUID> dependencies)booleanequals(Object o)List<UUID>getDependencies()A sequence of the unique job IDs for the jobs that this job depends upon in the workflow.UUIDgetId()The unique ID of the job.LonggetJobNumber()The number of the job.StringgetName()The name of the job.StringgetProjectSlug()The project-slug for the job.OffsetDateTimegetStartTime()The date and time the job started.ObjectgetStatus()The current status of the job.OffsetDateTimegetStopTime()The time when the job stopped.Job.TypeEnumgetType()The type of job.inthashCode()Jobid(UUID id)JobjobNumber(Long jobNumber)Jobname(String name)JobprojectSlug(String projectSlug)voidsetDependencies(List<UUID> dependencies)voidsetId(UUID id)voidsetJobNumber(Long jobNumber)voidsetName(String name)voidsetProjectSlug(String projectSlug)voidsetStartTime(OffsetDateTime startTime)voidsetStatus(Object status)voidsetStopTime(OffsetDateTime stopTime)voidsetType(Job.TypeEnum type)JobstartTime(OffsetDateTime startTime)Jobstatus(Object status)JobstopTime(OffsetDateTime stopTime)StringtoString()Jobtype(Job.TypeEnum type)
-
-
-
Field Detail
-
JSON_PROPERTY_DEPENDENCIES
public static final String JSON_PROPERTY_DEPENDENCIES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_JOB_NUMBER
public static final String JSON_PROPERTY_JOB_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PROJECT_SLUG
public static final String JSON_PROPERTY_PROJECT_SLUG
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATUS
public static final String JSON_PROPERTY_STATUS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STOP_TIME
public static final String JSON_PROPERTY_STOP_TIME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_START_TIME
public static final String JSON_PROPERTY_START_TIME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDependencies
public List<UUID> getDependencies()
A sequence of the unique job IDs for the jobs that this job depends upon in the workflow.- Returns:
- dependencies
-
getJobNumber
public Long getJobNumber()
The number of the job.- Returns:
- jobNumber
-
setJobNumber
public void setJobNumber(Long jobNumber)
-
getId
public UUID getId()
The unique ID of the job.- Returns:
- id
-
setId
public void setId(UUID id)
-
getName
public String getName()
The name of the job.- Returns:
- name
-
setName
public void setName(String name)
-
getProjectSlug
public String getProjectSlug()
The project-slug for the job.- Returns:
- projectSlug
-
setProjectSlug
public void setProjectSlug(String projectSlug)
-
getStatus
public Object getStatus()
The current status of the job.- Returns:
- status
-
setStatus
public void setStatus(Object status)
-
stopTime
public Job stopTime(OffsetDateTime stopTime)
-
getStopTime
@Nullable public OffsetDateTime getStopTime()
The time when the job stopped.- Returns:
- stopTime
-
setStopTime
public void setStopTime(OffsetDateTime stopTime)
-
type
public Job type(Job.TypeEnum type)
-
getType
public Job.TypeEnum getType()
The type of job.- Returns:
- type
-
setType
public void setType(Job.TypeEnum type)
-
startTime
public Job startTime(OffsetDateTime startTime)
-
getStartTime
public OffsetDateTime getStartTime()
The date and time the job started.- Returns:
- startTime
-
setStartTime
public void setStartTime(OffsetDateTime startTime)
-
-