Class FunctionRef
- java.lang.Object
-
- com.huaweicloud.sdk.functiongraph.v2.model.FunctionRef
-
public class FunctionRef extends Object
函数调用信息
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFunctionRef.InvokeModeEnum函数调用模式,目前只支持同步调用
-
Constructor Summary
Constructors Constructor Description FunctionRef()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)ObjectgetArguments()函数执行时的入参,支持引用constants中的常量 定义方式:参数路径 | 常量值/常量路径 参数路径指输入参数的JsonPath路径,如$.a.b[0].c 常量值可以为数字类型,字符串类型(需要用单引号括起来),布尔类型 常量路径为常量的JsonPath路径,但是根节点需要用$CONST表示,示例:$CONST.a.bFunctionRef.InvokeModeEnumgetInvokeMode()函数调用模式,目前只支持同步调用StringgetRefName()函数引用名称,需要和外层functions中的name对应inthashCode()voidsetArguments(Object arguments)voidsetInvokeMode(FunctionRef.InvokeModeEnum invokeMode)voidsetRefName(String refName)StringtoString()FunctionRefwithArguments(Object arguments)FunctionRefwithInvokeMode(FunctionRef.InvokeModeEnum invokeMode)FunctionRefwithRefName(String refName)
-
-
-
Method Detail
-
withRefName
public FunctionRef withRefName(String refName)
-
getRefName
public String getRefName()
函数引用名称,需要和外层functions中的name对应- Returns:
- refName
-
setRefName
public void setRefName(String refName)
-
withInvokeMode
public FunctionRef withInvokeMode(FunctionRef.InvokeModeEnum invokeMode)
-
getInvokeMode
public FunctionRef.InvokeModeEnum getInvokeMode()
函数调用模式,目前只支持同步调用- Returns:
- invokeMode
-
setInvokeMode
public void setInvokeMode(FunctionRef.InvokeModeEnum invokeMode)
-
withArguments
public FunctionRef withArguments(Object arguments)
-
getArguments
public Object getArguments()
函数执行时的入参,支持引用constants中的常量 定义方式:参数路径 | 常量值/常量路径 参数路径指输入参数的JsonPath路径,如$.a.b[0].c 常量值可以为数字类型,字符串类型(需要用单引号括起来),布尔类型 常量路径为常量的JsonPath路径,但是根节点需要用$CONST表示,示例:$CONST.a.b- Returns:
- arguments
-
setArguments
public void setArguments(Object arguments)
-
-