类 FunctionConfiguration


  • public class FunctionConfiguration
    extends JsonObject
    Represent the basic information of the Baidu CFC function
    • 构造器详细资料

      • FunctionConfiguration

        public FunctionConfiguration()
    • 方法详细资料

      • getUid

        public String getUid()
        Get the user ID
        返回:
        The user ID
      • setUid

        public void setUid​(String uid)
        Set the user ID (consisting of numbers, letters, underscores), length limited to 128 characters
        参数:
        uid - The user ID (consisting of numbers, letters, underscores), length limited to 128 characters
      • getDescription

        public String getDescription()
        Get the function description
        返回:
        The function description
      • setDescription

        public void setDescription​(String description)
        Set the function description,0-256 characters
        参数:
        description - The function description,0-256 characters
      • getFunctionBrn

        public String getFunctionBrn()
        Get the BRN (Baidu resource name) of the function
        返回:
        The BRN (Baidu resource name) of the function
      • setFunctionBrn

        public void setFunctionBrn​(String functionBrn)
        Set the BRN (Baidu resource name) of the function. 1-170 characters
        参数:
        functionBrn - The BRN (Baidu resource name) of the function. 1-170 characters
      • getRegion

        public String getRegion()
        Get the region which function belong to
        返回:
        The region which function belong to
      • setRegion

        public void setRegion​(String region)
        Set the region which function belong to. The current regions include bj(beijing)、su(suzhou)、gz (guangzhou)
        参数:
        region - The region which function belong to
      • getTimeout

        public Integer getTimeout()
        Get the timeout
        返回:
        The timeout
      • setTimeout

        public void setTimeout​(Integer timeout)
        Set the timeout, 1-300
        参数:
        timeout - The timeout
      • getVersionDesc

        public String getVersionDesc()
        Get the function description
        返回:
        The function description
      • setVersionDesc

        public void setVersionDesc​(String versionDesc)
        Set the function description. 0-256 characters
        参数:
        versionDesc - The function description
      • getUpdatedAt

        public String getUpdatedAt()
        Get the update time of the function. ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD)
        返回:
        The update time of the function. ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD)
      • setUpdatedAt

        public void setUpdatedAt​(String updatedAt)
        Set the update time of the function. ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD)
        参数:
        updatedAt - The update time of the function. ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD)
      • getLastModified

        public String getLastModified()
        Get the last modified time which is same as UpdateAt. Compatible with AWS Lambda
        返回:
        The last modified time which is same as UpdateAt. Compatible with AWS Lambda
      • setLastModified

        public void setLastModified​(String lastModified)
        Set the last modified time which is same as UpdateAt. Compatible with AWS Lambda
        参数:
        lastModified - The last modified time which is same as UpdateAt. Compatible with AWS Lambda
      • getCodeSha256

        public String getCodeSha256()
        Get the SHA256 hash of function code package
      • setCodeSha256

        public void setCodeSha256​(String codeSha256)
        Set the SHA256 hash of function code package
        参数:
        codeSha256 - The SHA256 hash of function code package
      • getCodeSize

        public Integer getCodeSize()
        Get the size of the function package, in bytes
        返回:
        The size of the function package, in bytes
      • setCodeSize

        public void setCodeSize​(Integer codeSize)
        Set the size of the function package, in bytes
        参数:
        codeSize - The size of the function package, in bytes
      • getFunctionArn

        public String getFunctionArn()
        Get the FunctionArn. Compatible with AWS Lambda with FunctionBrn
        返回:
        The FunctionArn. Compatible with AWS Lambda with FunctionBrn
      • setFunctionArn

        public void setFunctionArn​(String functionArn)
        Set the FunctionArn. Compatible with AWS Lambda with FunctionBrn
        参数:
        functionArn - The FunctionArn. Compatible with AWS Lambda with FunctionBrn
      • getFunctionName

        public String getFunctionName()
        Get the function name, consisting of numbers, letters, - or _, limited to 64 characters in length
        返回:
        The function name, consisting of numbers, letters, - or _, limited to 64 characters in length
      • setFunctionName

        public void setFunctionName​(String functionName)
        Set the function name, consisting of numbers, letters, - or _, limited to 64 characters in length
        参数:
        functionName - The function name, consisting of numbers, letters, - or _, limited to 64 characters in length
      • getHandler

        public String getHandler()
        Get the entry function of the CFC call, for the module is module-name.export eg. index.handler maximum length is 128 characters
        返回:
        The entry function of the CFC call, for the module is module-name.export eg. index.handler maximum length is 128 characters
      • setHandler

        public void setHandler​(String handler)
        Set the entry function of the CFC call, for the module is module-name.export eg. index.handler maximum length is 128 characters
        参数:
        handler - The entry function of the CFC call, for the module is module-name.export eg. index.handler maximum length is 128 characters
      • getVersion

        public String getVersion()
        Get the version, $LATEST means the latest, otherwise it consists of numbers, 1-32 characters
        返回:
        The version, $LATEST means the latest, otherwise it consists of numbers, 1-32 characters
      • setVersion

        public void setVersion​(String version)
        Set the version, $LATEST means the latest, otherwise it consists of numbers, 1-32 characters
        参数:
        version - The version, $LATEST means the latest, otherwise it consists of numbers, 1-32 characters
      • getRuntime

        public String getRuntime()
        Get the runtime
        返回:
        The runtime
      • setRuntime

        public void setRuntime​(String runtime)
        Set the runtime
        参数:
        runtime - The runtime
      • getMemorySize

        public Integer getMemorySize()
        Get the memory size
        返回:
        The memory size
      • setMemorySize

        public void setMemorySize​(Integer memorySize)
        Set the memory size, in megabytes, used by CFC to infer the amount of CPU and memory allocated to user functions. Default 128MB,Must be a multiple of 128MB (now CFC provides 128 to 1024M of memory).
        参数:
        memorySize - The memory size, in megabytes, used by CFC to infer the amount of CPU and memory allocated to user functions. Default 128MB,Must be a multiple of 128MB (now CFC provides 128 to 1024M of memory).
      • getEnvironment

        public Environment getEnvironment()
        Get the environment
        返回:
        The environment
      • setEnvironment

        public void setEnvironment​(Environment environment)
        Set the environment
        参数:
        environment - The environment
      • getCommitId

        public String getCommitId()
        Get the commitId
        返回:
        The commitId
      • setCommitId

        public void setCommitId​(String commitId)
        Set the commitId
        参数:
        commitId - The commitId
      • getRole

        public String getRole()
        Get the function execution role
        返回:
        The function execution role
      • setRole

        public void setRole​(String role)
        Set the function execution role
        参数:
        role - The function execution role
      • getLogType

        public String getLogType()
        Get the log type bos /none
        返回:
        The log type
      • setLogType

        public void setLogType​(String logType)
        Set the log type bos /none
        参数:
        logType - The log type bos /none
      • getLogBosDir

        public String getLogBosDir()
        Get the log stored bucket address
        返回:
        The log stored bucket address
      • setLogBosDir

        public void setLogBosDir​(String logBosDir)
        Set the log stored bucket address
        参数:
        logBosDir - The log stored bucket address