Class FunctionDefinition
- java.lang.Object
-
- io.serverlessworkflow.api.functions.FunctionDefinition
-
- All Implemented Interfaces:
Serializable
public class FunctionDefinition extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FunctionDefinition()
No args constructor for use in serializationFunctionDefinition(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
getMetadata()
MetadataString
getName()
Function unique name (Required)String
getOperation()
Combination of the function/service OpenAPI definition URI and the operationID of the operation that needs to be invoked, separated by a '#'.void
setMetadata(Map<String,String> metadata)
Metadatavoid
setName(String name)
Function unique name (Required)void
setOperation(String operation)
Combination of the function/service OpenAPI definition URI and the operationID of the operation that needs to be invoked, separated by a '#'.FunctionDefinition
withMetadata(Map<String,String> metadata)
FunctionDefinition
withName(String name)
FunctionDefinition
withOperation(String operation)
-
-
-
Constructor Detail
-
FunctionDefinition
public FunctionDefinition()
No args constructor for use in serialization
-
FunctionDefinition
public FunctionDefinition(String name)
- Parameters:
name
-
-
-
Method Detail
-
getName
public String getName()
Function unique name (Required)
-
setName
public void setName(String name)
Function unique name (Required)
-
withName
public FunctionDefinition withName(String name)
-
getOperation
public String getOperation()
Combination of the function/service OpenAPI definition URI and the operationID of the operation that needs to be invoked, separated by a '#'. For example 'https://petstore.swagger.io/v2/swagger.json#getPetById'
-
setOperation
public void setOperation(String operation)
Combination of the function/service OpenAPI definition URI and the operationID of the operation that needs to be invoked, separated by a '#'. For example 'https://petstore.swagger.io/v2/swagger.json#getPetById'
-
withOperation
public FunctionDefinition withOperation(String operation)
-
withMetadata
public FunctionDefinition withMetadata(Map<String,String> metadata)
-
-