Class WorkflowCreateBody
- java.lang.Object
-
- com.huaweicloud.sdk.functiongraph.v2.model.WorkflowCreateBody
-
public class WorkflowCreateBody extends Object
创建函数流的body体
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWorkflowCreateBody.ModeEnum函数流模式,当前支持两种模式 NORMAL: 标准模式,普通模式面向普通的业务场景,支持长时间任务,支持执行历史持久化和查询,只支持异步调用 EXPRESS: 快速模式,快速模式面向业务执行时长较短,需要极致性能的场景,只支持流程执行时长低于5分钟的场景,不支持执行历史持久化,支持同步和异步调用 默认为标准模式
-
Constructor Summary
Constructors Constructor Description WorkflowCreateBody()
-
Method Summary
-
-
-
Method Detail
-
withName
public WorkflowCreateBody withName(String name)
-
getName
public String getName()
函数流名称- Returns:
- name
-
setName
public void setName(String name)
-
withDescription
public WorkflowCreateBody withDescription(String description)
-
getDescription
public String getDescription()
函数流描述- Returns:
- description
-
setDescription
public void setDescription(String description)
-
withStart
public WorkflowCreateBody withStart(String start)
-
getStart
public String getStart()
流程开始节点ID- Returns:
- start
-
setStart
public void setStart(String start)
-
withTriggers
public WorkflowCreateBody withTriggers(List<Trigger> triggers)
-
addTriggersItem
public WorkflowCreateBody addTriggersItem(Trigger triggersItem)
-
withTriggers
public WorkflowCreateBody withTriggers(java.util.function.Consumer<List<Trigger>> triggersSetter)
-
withFunctions
public WorkflowCreateBody withFunctions(List<Function> functions)
-
addFunctionsItem
public WorkflowCreateBody addFunctionsItem(Function functionsItem)
-
withFunctions
public WorkflowCreateBody withFunctions(java.util.function.Consumer<List<Function>> functionsSetter)
-
withStates
public WorkflowCreateBody withStates(List<OperationState> states)
-
addStatesItem
public WorkflowCreateBody addStatesItem(OperationState statesItem)
-
withStates
public WorkflowCreateBody withStates(java.util.function.Consumer<List<OperationState>> statesSetter)
-
getStates
public List<OperationState> getStates()
函数流节点清单,定义参考SleepState和OperationState- Returns:
- states
-
setStates
public void setStates(List<OperationState> states)
-
withConstants
public WorkflowCreateBody withConstants(Object constants)
-
getConstants
public Object getConstants()
函数流中的常量- Returns:
- constants
-
setConstants
public void setConstants(Object constants)
-
withRetries
public WorkflowCreateBody withRetries(List<Retry> retries)
-
addRetriesItem
public WorkflowCreateBody addRetriesItem(Retry retriesItem)
-
withRetries
public WorkflowCreateBody withRetries(java.util.function.Consumer<List<Retry>> retriesSetter)
-
withMode
public WorkflowCreateBody withMode(WorkflowCreateBody.ModeEnum mode)
-
getMode
public WorkflowCreateBody.ModeEnum getMode()
函数流模式,当前支持两种模式 NORMAL: 标准模式,普通模式面向普通的业务场景,支持长时间任务,支持执行历史持久化和查询,只支持异步调用 EXPRESS: 快速模式,快速模式面向业务执行时长较短,需要极致性能的场景,只支持流程执行时长低于5分钟的场景,不支持执行历史持久化,支持同步和异步调用 默认为标准模式- Returns:
- mode
-
setMode
public void setMode(WorkflowCreateBody.ModeEnum mode)
-
withExpressConfig
public WorkflowCreateBody withExpressConfig(ExpressConfig expressConfig)
-
withExpressConfig
public WorkflowCreateBody withExpressConfig(java.util.function.Consumer<ExpressConfig> expressConfigSetter)
-
getExpressConfig
public ExpressConfig getExpressConfig()
Get expressConfig- Returns:
- expressConfig
-
setExpressConfig
public void setExpressConfig(ExpressConfig expressConfig)
-
withEnterpriseProjectId
public WorkflowCreateBody withEnterpriseProjectId(String enterpriseProjectId)
-
getEnterpriseProjectId
public String getEnterpriseProjectId()
企业项目ID- Returns:
- enterpriseProjectId
-
setEnterpriseProjectId
public void setEnterpriseProjectId(String enterpriseProjectId)
-
withEnableStreamResponse
public WorkflowCreateBody withEnableStreamResponse(Boolean enableStreamResponse)
-
getEnableStreamResponse
public Boolean getEnableStreamResponse()
是否返回流数据- Returns:
- enableStreamResponse
-
setEnableStreamResponse
public void setEnableStreamResponse(Boolean enableStreamResponse)
-
-