com.baidubce.services.cfc.model
Class PublishVersionRequest

java.lang.Object
  extended by com.baidubce.model.AbstractBceRequest
      extended by com.baidubce.services.cfc.model.PublishVersionRequest

public class PublishVersionRequest
extends AbstractBceRequest

Request object for publishing the CFC function


Constructor Summary
PublishVersionRequest()
           
 
Method Summary
 String getCodeSha256()
          Get the function code sha256
 String getDescription()
          Get the version description
 String getFunctionName()
          Get the function name
 void setCodeSha256(String codeSha256)
          Set the function code sha256
 void setDescription(String description)
          Set the version description
 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).
 String toString()
          (non-Javadoc)
 PublishVersionRequest withCodeSha256(String codeSha256)
           
 PublishVersionRequest withDescription(String description)
           
 PublishVersionRequest withFunctionName(String functionName)
           
 PublishVersionRequest withRequestCredentials(BceCredentials credentials)
          (non-Javadoc)
 
Methods inherited from class com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PublishVersionRequest

public PublishVersionRequest()
Method Detail

getFunctionName

public String getFunctionName()
Get the function name

Returns:
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.

Parameters:
functionName -

getDescription

public String getDescription()
Get the version description

Returns:
The version description

setDescription

public void setDescription(String description)
Set the version description

Parameters:
description - The version description

getCodeSha256

public String getCodeSha256()
Get the function code sha256

Returns:
The function code sha256

setCodeSha256

public void setCodeSha256(String codeSha256)
Set the function code sha256

Parameters:
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)

Specified by:
withRequestCredentials in class AbstractBceRequest
See Also:
AbstractBceRequest.withRequestCredentials(com.baidubce.auth.BceCredentials)

toString

public String toString()
(non-Javadoc)

Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2020. All rights reserved.