类 PublishVersionRequest
- java.lang.Object
-
- com.baidubce.model.AbstractBceRequest
-
- com.baidubce.services.cfc.model.PublishVersionRequest
-
public class PublishVersionRequest extends AbstractBceRequest
Request object for publishing the CFC function
-
-
构造器概要
构造器 构造器 说明 PublishVersionRequest()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetCodeSha256()Get the function code sha256StringgetDescription()Get the version descriptionStringgetFunctionName()Get the function namevoidsetCodeSha256(String codeSha256)Set the function code sha256voidsetDescription(String description)Set the version descriptionvoidsetFunctionName(String functionName)Set function Name You can specify a function name (for example, Thumbnail), or you can specify the function's BRN resource name (for example: brn:bce:cfc:bj:account-id:function:thumbnail).StringtoString()(non-Javadoc)PublishVersionRequestwithCodeSha256(String codeSha256)PublishVersionRequestwithDescription(String description)PublishVersionRequestwithFunctionName(String functionName)PublishVersionRequestwithRequestCredentials(BceCredentials credentials)(non-Javadoc)-
从类继承的方法 com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
-
-
-
-
方法详细资料
-
getFunctionName
public String getFunctionName()
Get the function name- 返回:
- The function name
-
setFunctionName
public void setFunctionName(String functionName)
Set function Name You can specify a function name (for example, Thumbnail), or you can specify the function's BRN resource name (for example: brn:bce:cfc:bj:account-id:function:thumbnail). CFC also allows you to specify a partial BRN (for example, account-id:Thumbnail). Note that the BRN length is limited to 1-140. If only the function name is specified, the length is limited to 64 characters.- 参数:
functionName-
-
getDescription
public String getDescription()
Get the version description- 返回:
- The version description
-
setDescription
public void setDescription(String description)
Set the version description- 参数:
description- The version description
-
getCodeSha256
public String getCodeSha256()
Get the function code sha256- 返回:
- The function code sha256
-
setCodeSha256
public void setCodeSha256(String codeSha256)
Set the function code sha256- 参数:
codeSha256- The function code sha256
-
withFunctionName
public PublishVersionRequest withFunctionName(String functionName)
-
withDescription
public PublishVersionRequest withDescription(String description)
-
withCodeSha256
public PublishVersionRequest withCodeSha256(String codeSha256)
-
withRequestCredentials
public PublishVersionRequest withRequestCredentials(BceCredentials credentials)
(non-Javadoc)
-
toString
public String toString()
(non-Javadoc)- 覆盖:
toString在类中Object- 另请参阅:
Object.toString()
-
-