Class TaskDefinitionResource
java.lang.Object
org.springframework.hateoas.RepresentationModel<TaskDefinitionResource>
org.springframework.cloud.dataflow.rest.resource.TaskDefinitionResource
public class TaskDefinitionResource
extends org.springframework.hateoas.RepresentationModel<TaskDefinitionResource>
A HATEOAS representation of a
TaskDefinition
.- Author:
- Michael Minella, Glenn Renfro, Gunnar Hillert
-
Nested Class Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
Default constructor to be used by Jackson.TaskDefinitionResource
(String name, String dslText, String description) -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Return the status of this task.boolean
Return if this task is a composed taskboolean
void
setComposed
(boolean composed) Set if this task is a composed taskvoid
setComposedTaskElement
(boolean composedTaskElement) void
setLastTaskExecution
(TaskExecutionResource lastTaskExecution) Methods inherited from class org.springframework.hateoas.RepresentationModel
add, add, add, addAllIf, addIf, equals, getLink, getLink, getLinks, getLinks, getLinks, getRequiredLink, getRequiredLink, hashCode, hasLink, hasLink, hasLinks, mapLink, mapLinkIf, of, of, removeLinks, toString
-
Constructor Details
-
TaskDefinitionResource
protected TaskDefinitionResource()Default constructor to be used by Jackson. -
TaskDefinitionResource
-
-
Method Details
-
getName
-
getDslText
-
getDescription
-
isComposed
public boolean isComposed()Return if this task is a composed task- Returns:
- composed
-
setComposed
public void setComposed(boolean composed) Set if this task is a composed task- Parameters:
composed
- is task a composed task
-
isComposedTaskElement
public boolean isComposedTaskElement() -
setComposedTaskElement
public void setComposedTaskElement(boolean composedTaskElement) -
getStatus
Return the status of this task. Returns the value ofEnum.toString()
.- Returns:
- task status
-
getLastTaskExecution
- Returns:
- Last
TaskExecution
if available, null otherwise
-
setLastTaskExecution
- Parameters:
lastTaskExecution
- the last Task Execution
-