public class TaskDefinitionResource extends org.springframework.hateoas.RepresentationModel<TaskDefinitionResource>
TaskDefinition
.Modifier and Type | Class and Description |
---|---|
static class |
TaskDefinitionResource.Page |
Modifier | Constructor and Description |
---|---|
protected |
TaskDefinitionResource()
Default constructor to be used by Jackson.
|
|
TaskDefinitionResource(String name,
String dslText,
String description) |
Modifier and Type | Method and Description |
---|---|
String |
getDescription() |
String |
getDslText() |
TaskExecutionResource |
getLastTaskExecution() |
String |
getName() |
String |
getStatus()
Return the status of this task.
|
boolean |
isComposed()
Return if this task is a composed task
|
boolean |
isComposedTaskElement() |
void |
setComposed(boolean composed)
Set if this task is a composed task
|
void |
setComposedTaskElement(boolean composedTaskElement) |
void |
setLastTaskExecution(TaskExecutionResource lastTaskExecution) |
protected TaskDefinitionResource()
public String getName()
public String getDslText()
public String getDescription()
public boolean isComposed()
public void setComposed(boolean composed)
composed
- is task a composed taskpublic boolean isComposedTaskElement()
public void setComposedTaskElement(boolean composedTaskElement)
public String getStatus()
Enum.toString()
.public TaskExecutionResource getLastTaskExecution()
TaskExecution
if available, null otherwisepublic void setLastTaskExecution(TaskExecutionResource lastTaskExecution)
lastTaskExecution
- the last Task ExecutionCopyright © 2023 Pivotal Software, Inc.. All rights reserved.