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
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor to be used by Jackson.TaskDefinitionResource(String name, String dslText, String description) -
Method Summary
Modifier and TypeMethodDescriptiongetName()Return the status of this task.booleanReturn if this task is a composed taskbooleanvoidsetComposed(boolean composed) Set if this task is a composed taskvoidsetComposedTaskElement(boolean composedTaskElement) voidsetLastTaskExecution(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
TaskExecutionif available, null otherwise
-
setLastTaskExecution
- Parameters:
lastTaskExecution- the last Task Execution
-