Class UpdateFunctionCodeRequestBody
- java.lang.Object
-
- com.huaweicloud.sdk.functiongraph.v2.model.UpdateFunctionCodeRequestBody
-
public class UpdateFunctionCodeRequestBody extends Object
UpdateFunctionCodeRequestBody
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUpdateFunctionCodeRequestBody.CodeTypeEnum函数代码类型,取值有4种。 inline: UI在线编辑代码。 zip: 函数代码为zip包。 obs: 函数代码来源于obs存储。 jar: 函数代码为jar包,主要针对Java函数。
-
Constructor Summary
Constructors Constructor Description UpdateFunctionCodeRequestBody()
-
Method Summary
-
-
-
Method Detail
-
withCodeType
public UpdateFunctionCodeRequestBody withCodeType(UpdateFunctionCodeRequestBody.CodeTypeEnum codeType)
-
getCodeType
public UpdateFunctionCodeRequestBody.CodeTypeEnum getCodeType()
函数代码类型,取值有4种。 inline: UI在线编辑代码。 zip: 函数代码为zip包。 obs: 函数代码来源于obs存储。 jar: 函数代码为jar包,主要针对Java函数。- Returns:
- codeType
-
setCodeType
public void setCodeType(UpdateFunctionCodeRequestBody.CodeTypeEnum codeType)
-
withCodeUrl
public UpdateFunctionCodeRequestBody withCodeUrl(String codeUrl)
-
getCodeUrl
public String getCodeUrl()
当CodeType为obs时,该值为函数代码包在OBS上的地址,CodeType为其他值时,该字段为空。- Returns:
- codeUrl
-
setCodeUrl
public void setCodeUrl(String codeUrl)
-
withCodeFilename
public UpdateFunctionCodeRequestBody withCodeFilename(String codeFilename)
-
getCodeFilename
public String getCodeFilename()
函数的文件名,当CodeType为jar/zip时必须提供该字段,inline和obs不需要提供。- Returns:
- codeFilename
-
setCodeFilename
public void setCodeFilename(String codeFilename)
-
withFuncCode
public UpdateFunctionCodeRequestBody withFuncCode(FuncCode funcCode)
-
withFuncCode
public UpdateFunctionCodeRequestBody withFuncCode(java.util.function.Consumer<FuncCode> funcCodeSetter)
-
getFuncCode
public FuncCode getFuncCode()
Get funcCode- Returns:
- funcCode
-
setFuncCode
public void setFuncCode(FuncCode funcCode)
-
withDependList
public UpdateFunctionCodeRequestBody withDependList(List<String> dependList)
-
addDependListItem
public UpdateFunctionCodeRequestBody addDependListItem(String dependListItem)
-
withDependList
public UpdateFunctionCodeRequestBody withDependList(java.util.function.Consumer<List<String>> dependListSetter)
-
withDependVersionList
public UpdateFunctionCodeRequestBody withDependVersionList(List<String> dependVersionList)
-
addDependVersionListItem
public UpdateFunctionCodeRequestBody addDependVersionListItem(String dependVersionListItem)
-
withDependVersionList
public UpdateFunctionCodeRequestBody withDependVersionList(java.util.function.Consumer<List<String>> dependVersionListSetter)
-
-