Class FunctionAsyncConfig
- java.lang.Object
-
- com.huaweicloud.sdk.functiongraph.v2.model.FunctionAsyncConfig
-
public class FunctionAsyncConfig extends Object
函数异步配置返回结构体。
-
-
Constructor Summary
Constructors Constructor Description FunctionAsyncConfig()
-
Method Summary
-
-
-
Method Detail
-
withMaxAsyncEventAgeInSeconds
public FunctionAsyncConfig withMaxAsyncEventAgeInSeconds(Integer maxAsyncEventAgeInSeconds)
-
getMaxAsyncEventAgeInSeconds
public Integer getMaxAsyncEventAgeInSeconds()
消息最大存活时长,取值范围[60,86400]。单位:秒。- Returns:
- maxAsyncEventAgeInSeconds
-
setMaxAsyncEventAgeInSeconds
public void setMaxAsyncEventAgeInSeconds(Integer maxAsyncEventAgeInSeconds)
-
withMaxAsyncRetryAttempts
public FunctionAsyncConfig withMaxAsyncRetryAttempts(Integer maxAsyncRetryAttempts)
-
getMaxAsyncRetryAttempts
public Integer getMaxAsyncRetryAttempts()
异步调用失败后的最大重试次数,默认值为3。取值范围[0,8]。- Returns:
- maxAsyncRetryAttempts
-
setMaxAsyncRetryAttempts
public void setMaxAsyncRetryAttempts(Integer maxAsyncRetryAttempts)
-
withDestinationConfig
public FunctionAsyncConfig withDestinationConfig(FuncAsyncDestinationConfig destinationConfig)
-
withDestinationConfig
public FunctionAsyncConfig withDestinationConfig(java.util.function.Consumer<FuncAsyncDestinationConfig> destinationConfigSetter)
-
getDestinationConfig
public FuncAsyncDestinationConfig getDestinationConfig()
Get destinationConfig- Returns:
- destinationConfig
-
setDestinationConfig
public void setDestinationConfig(FuncAsyncDestinationConfig destinationConfig)
-
withCreatedTime
public FunctionAsyncConfig withCreatedTime(String createdTime)
-
getCreatedTime
public String getCreatedTime()
异步调用配置的创建时间。- Returns:
- createdTime
-
setCreatedTime
public void setCreatedTime(String createdTime)
-
withLastModified
public FunctionAsyncConfig withLastModified(String lastModified)
-
getLastModified
public String getLastModified()
异步调用配置的最后更改时间。- Returns:
- lastModified
-
setLastModified
public void setLastModified(String lastModified)
-
-