Package com.circleci.client.v2.model
Class Workflow
- java.lang.Object
-
- com.circleci.client.v2.model.Workflow
-
public class Workflow extends Object
A workflow
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWorkflow.StatusEnumThe current status of the workflow.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CREATED_ATstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_NAMEstatic StringJSON_PROPERTY_PIPELINE_IDstatic StringJSON_PROPERTY_PIPELINE_NUMBERstatic StringJSON_PROPERTY_PROJECT_SLUGstatic StringJSON_PROPERTY_STATUSstatic StringJSON_PROPERTY_STOPPED_AT
-
Constructor Summary
Constructors Constructor Description Workflow()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkflowcreatedAt(OffsetDateTime createdAt)booleanequals(Object o)OffsetDateTimegetCreatedAt()The date and time the workflow was created.UUIDgetId()The unique ID of the workflow.StringgetName()The name of the workflow.UUIDgetPipelineId()The ID of the pipeline this workflow belongs to.LonggetPipelineNumber()The number of the pipeline this workflow belongs to.StringgetProjectSlug()The project-slug for the pipeline this workflow belongs to.Workflow.StatusEnumgetStatus()The current status of the workflow.OffsetDateTimegetStoppedAt()The date and time the workflow stopped.inthashCode()Workflowid(UUID id)Workflowname(String name)WorkflowpipelineId(UUID pipelineId)WorkflowpipelineNumber(Long pipelineNumber)WorkflowprojectSlug(String projectSlug)voidsetCreatedAt(OffsetDateTime createdAt)voidsetId(UUID id)voidsetName(String name)voidsetPipelineId(UUID pipelineId)voidsetPipelineNumber(Long pipelineNumber)voidsetProjectSlug(String projectSlug)voidsetStatus(Workflow.StatusEnum status)voidsetStoppedAt(OffsetDateTime stoppedAt)Workflowstatus(Workflow.StatusEnum status)WorkflowstoppedAt(OffsetDateTime stoppedAt)StringtoString()
-
-
-
Field Detail
-
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_STATUS
public static final String JSON_PROPERTY_STATUS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CREATED_AT
public static final String JSON_PROPERTY_CREATED_AT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STOPPED_AT
public static final String JSON_PROPERTY_STOPPED_AT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PIPELINE_ID
public static final String JSON_PROPERTY_PIPELINE_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PIPELINE_NUMBER
public static final String JSON_PROPERTY_PIPELINE_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PROJECT_SLUG
public static final String JSON_PROPERTY_PROJECT_SLUG
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public UUID getId()
The unique ID of the workflow.- Returns:
- id
-
setId
public void setId(UUID id)
-
getName
public String getName()
The name of the workflow.- Returns:
- name
-
setName
public void setName(String name)
-
status
public Workflow status(Workflow.StatusEnum status)
-
getStatus
public Workflow.StatusEnum getStatus()
The current status of the workflow.- Returns:
- status
-
setStatus
public void setStatus(Workflow.StatusEnum status)
-
createdAt
public Workflow createdAt(OffsetDateTime createdAt)
-
getCreatedAt
public OffsetDateTime getCreatedAt()
The date and time the workflow was created.- Returns:
- createdAt
-
setCreatedAt
public void setCreatedAt(OffsetDateTime createdAt)
-
stoppedAt
public Workflow stoppedAt(OffsetDateTime stoppedAt)
-
getStoppedAt
public OffsetDateTime getStoppedAt()
The date and time the workflow stopped.- Returns:
- stoppedAt
-
setStoppedAt
public void setStoppedAt(OffsetDateTime stoppedAt)
-
getPipelineId
public UUID getPipelineId()
The ID of the pipeline this workflow belongs to.- Returns:
- pipelineId
-
setPipelineId
public void setPipelineId(UUID pipelineId)
-
getPipelineNumber
public Long getPipelineNumber()
The number of the pipeline this workflow belongs to.- Returns:
- pipelineNumber
-
setPipelineNumber
public void setPipelineNumber(Long pipelineNumber)
-
getProjectSlug
public String getProjectSlug()
The project-slug for the pipeline this workflow belongs to.- Returns:
- projectSlug
-
setProjectSlug
public void setProjectSlug(String projectSlug)
-
-