public static class TaskDefinition.TaskDefinitionBuilder extends Object
TaskDefinition. This object is mutable to allow for
flexibility in specifying application fields/properties during parsing.| Constructor and Description |
|---|
TaskDefinitionBuilder() |
| Modifier and Type | Method and Description |
|---|---|
TaskDefinition.TaskDefinitionBuilder |
addProperties(Map<String,String> properties)
Add the contents of the provided map to the map of app properties.
|
TaskDefinition |
build()
Return a new instance of
TaskDefinition. |
static TaskDefinition.TaskDefinitionBuilder |
from(org.springframework.cloud.dataflow.core.DataFlowAppDefinition definition)
Create a new builder that is initialized with properties of the given
definition.
|
String |
getLabel()
Return symbolic name of a task.
|
Map<String,String> |
getProperties()
Return properties for the task.
|
String |
getRegisteredAppName()
Return name of task app in registry.
|
TaskDefinition.TaskDefinitionBuilder |
setDslText(String dslText)
Establish the DSL Text for a task definition.
|
TaskDefinition.TaskDefinitionBuilder |
setLabel(String label)
Set the app label.
|
TaskDefinition.TaskDefinitionBuilder |
setProperties(Map<String,String> properties)
Sets the contents of the provided map as the map of app properties.
|
TaskDefinition.TaskDefinitionBuilder |
setProperty(String name,
String value)
Set an app property.
|
TaskDefinition.TaskDefinitionBuilder |
setRegisteredAppName(String registeredAppName)
Set the name of the app in the registry.
|
TaskDefinition.TaskDefinitionBuilder |
setTaskName(String taskName)
Establish the task name for a task definition.
|
public static TaskDefinition.TaskDefinitionBuilder from(org.springframework.cloud.dataflow.core.DataFlowAppDefinition definition)
definition - the DataFlowAppDefinition to use when creating the builderpublic TaskDefinition.TaskDefinitionBuilder setProperty(String name, String value)
name - property namevalue - property valueAppDefinition.getProperties()public TaskDefinition.TaskDefinitionBuilder setDslText(String dslText)
dslText - the dsl to be used by the TaskDefinitionpublic TaskDefinition.TaskDefinitionBuilder setTaskName(String taskName)
taskName - the name to be used by the TaskDefinitionAppDefinition.getProperties()public TaskDefinition.TaskDefinitionBuilder addProperties(Map<String,String> properties)
properties - app propertiesAppDefinition.getProperties()public String getRegisteredAppName()
public TaskDefinition.TaskDefinitionBuilder setRegisteredAppName(String registeredAppName)
registeredAppName - name of app in registryDataFlowAppDefinition.registeredAppNamepublic String getLabel()
public TaskDefinition.TaskDefinitionBuilder setLabel(String label)
label - name of app labelpublic Map<String,String> getProperties()
public TaskDefinition.TaskDefinitionBuilder setProperties(Map<String,String> properties)
properties - app propertiesAppDefinition.getProperties()public TaskDefinition build()
TaskDefinition.TaskDefinitionCopyright © 2021 Pivotal Software, Inc.. All rights reserved.