Class FunctionRef
- java.lang.Object
-
- io.serverlessworkflow.api.functions.FunctionRef
-
- All Implemented Interfaces:
Serializable
public class FunctionRef extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFunctionRef.Invoke
-
Constructor Summary
Constructors Constructor Description FunctionRef()No args constructor for use in serializationFunctionRef(String refName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNodegetArguments()Function argumentsFunctionRef.InvokegetInvoke()Specifies if the function should be invoked sync or async.StringgetRefName()Name of the referenced function (Required)StringgetSelectionSet()Only used if function type is 'graphql'.voidsetArguments(com.fasterxml.jackson.databind.JsonNode arguments)Function argumentsvoidsetInvoke(FunctionRef.Invoke invoke)Specifies if the function should be invoked sync or async.voidsetRefName(String refName)Name of the referenced function (Required)voidsetSelectionSet(String selectionSet)Only used if function type is 'graphql'.FunctionRefwithArguments(com.fasterxml.jackson.databind.JsonNode arguments)FunctionRefwithInvoke(FunctionRef.Invoke invoke)FunctionRefwithRefName(String refName)FunctionRefwithSelectionSet(String selectionSet)
-
-
-
Constructor Detail
-
FunctionRef
public FunctionRef()
No args constructor for use in serialization
-
FunctionRef
public FunctionRef(String refName)
- Parameters:
refName-
-
-
Method Detail
-
getRefName
public String getRefName()
Name of the referenced function (Required)
-
setRefName
public void setRefName(String refName)
Name of the referenced function (Required)
-
withRefName
public FunctionRef withRefName(String refName)
-
getArguments
public com.fasterxml.jackson.databind.JsonNode getArguments()
Function arguments
-
setArguments
public void setArguments(com.fasterxml.jackson.databind.JsonNode arguments)
Function arguments
-
withArguments
public FunctionRef withArguments(com.fasterxml.jackson.databind.JsonNode arguments)
-
getSelectionSet
public String getSelectionSet()
Only used if function type is 'graphql'. A string containing a valid GraphQL selection set
-
setSelectionSet
public void setSelectionSet(String selectionSet)
Only used if function type is 'graphql'. A string containing a valid GraphQL selection set
-
withSelectionSet
public FunctionRef withSelectionSet(String selectionSet)
-
getInvoke
public FunctionRef.Invoke getInvoke()
Specifies if the function should be invoked sync or async. Default is sync.
-
setInvoke
public void setInvoke(FunctionRef.Invoke invoke)
Specifies if the function should be invoked sync or async. Default is sync.
-
withInvoke
public FunctionRef withInvoke(FunctionRef.Invoke invoke)
-
-