public class FunctionConfiguration extends JsonObject
| Constructor and Description |
|---|
FunctionConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCodeSha256()
Get the SHA256 hash of function code package
|
Integer |
getCodeSize()
Get the size of the function package, in bytes
|
String |
getCommitId()
Get the commitId
|
String |
getDescription()
Get the function description
|
Environment |
getEnvironment()
Get the environment
|
String |
getFunctionArn()
Get the FunctionArn.
|
String |
getFunctionBrn()
Get the BRN (Baidu resource name) of the function
|
String |
getFunctionName()
Get the function name, consisting of numbers, letters, - or _, limited to 64 characters in length
|
String |
getHandler()
Get the entry function of the CFC call, for the module is module-name.export eg.
|
String |
getLastModified()
Get the last modified time which is same as UpdateAt.
|
String |
getLogBosDir()
Get the log stored bucket address
|
String |
getLogType()
Get the log type bos /none
|
Integer |
getMemorySize()
Get the memory size
|
String |
getRegion()
Get the region which function belong to
|
String |
getRole()
Get the function execution role
|
String |
getRuntime()
Get the runtime
|
Integer |
getTimeout()
Get the timeout
|
String |
getUid()
Get the user ID
|
String |
getUpdatedAt()
Get the update time of the function.
|
String |
getVersion()
Get the version, $LATEST means the latest, otherwise it consists of numbers, 1-32 characters
|
String |
getVersionDesc()
Get the function description
|
void |
setCodeSha256(String codeSha256)
Set the SHA256 hash of function code package
|
void |
setCodeSize(Integer codeSize)
Set the size of the function package, in bytes
|
void |
setCommitId(String commitId)
Set the commitId
|
void |
setDescription(String description)
Set the function description,0-256 characters
|
void |
setEnvironment(Environment environment)
Set the environment
|
void |
setFunctionArn(String functionArn)
Set the FunctionArn.
|
void |
setFunctionBrn(String functionBrn)
Set the BRN (Baidu resource name) of the function.
|
void |
setFunctionName(String functionName)
Set the function name, consisting of numbers, letters, - or _, limited to 64 characters in length
|
void |
setHandler(String handler)
Set the entry function of the CFC call, for the module is module-name.export eg.
|
void |
setLastModified(String lastModified)
Set the last modified time which is same as UpdateAt.
|
void |
setLogBosDir(String logBosDir)
Set the log stored bucket address
|
void |
setLogType(String logType)
Set the log type bos /none
|
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.
|
void |
setRegion(String region)
Set the region which function belong to.
|
void |
setRole(String role)
Set the function execution role
|
void |
setRuntime(String runtime)
Set the runtime
|
void |
setTimeout(Integer timeout)
Set the timeout, 1-300
|
void |
setUid(String uid)
Set the user ID (consisting of numbers, letters, underscores), length limited to 128 characters
|
void |
setUpdatedAt(String updatedAt)
Set the update time of the function.
|
void |
setVersion(String version)
Set the version, $LATEST means the latest, otherwise it consists of numbers, 1-32 characters
|
void |
setVersionDesc(String versionDesc)
Set the function description.
|
toStringpublic String getUid()
public void setUid(String uid)
uid - The user ID (consisting of numbers, letters, underscores), length limited to 128 characterspublic String getDescription()
public void setDescription(String description)
description - The function description,0-256 characterspublic String getFunctionBrn()
public void setFunctionBrn(String functionBrn)
functionBrn - The BRN (Baidu resource name) of the function. 1-170 characterspublic String getRegion()
public void setRegion(String region)
region - The region which function belong topublic Integer getTimeout()
public void setTimeout(Integer timeout)
timeout - The timeoutpublic String getVersionDesc()
public void setVersionDesc(String versionDesc)
versionDesc - The function descriptionpublic String getUpdatedAt()
public void setUpdatedAt(String updatedAt)
updatedAt - The update time of the function. ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD)public String getLastModified()
public void setLastModified(String lastModified)
lastModified - The last modified time which is same as UpdateAt. Compatible with AWS Lambdapublic String getCodeSha256()
public void setCodeSha256(String codeSha256)
codeSha256 - The SHA256 hash of function code packagepublic Integer getCodeSize()
public void setCodeSize(Integer codeSize)
codeSize - The size of the function package, in bytespublic String getFunctionArn()
public void setFunctionArn(String functionArn)
functionArn - The FunctionArn. Compatible with AWS Lambda with FunctionBrnpublic String getFunctionName()
public void setFunctionName(String functionName)
functionName - The function name, consisting of numbers, letters, - or _, limited to 64 characters in
lengthpublic String getHandler()
public void setHandler(String handler)
handler - The entry function of the CFC call, for the module is module-name.export eg. index.handler
maximum length is 128 characterspublic String getVersion()
public void setVersion(String version)
version - The version, $LATEST means the latest, otherwise it consists of numbers, 1-32 characterspublic String getRuntime()
public void setRuntime(String runtime)
runtime - The runtimepublic Integer getMemorySize()
public void setMemorySize(Integer memorySize)
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).public Environment getEnvironment()
public void setEnvironment(Environment environment)
environment - The environmentpublic String getCommitId()
public void setCommitId(String commitId)
commitId - The commitIdpublic String getRole()
public void setRole(String role)
role - The function execution rolepublic String getLogType()
public void setLogType(String logType)
logType - The log type bos /nonepublic String getLogBosDir()
public void setLogBosDir(String logBosDir)
logBosDir - The log stored bucket addressCopyright © 2020. All rights reserved.