类 FunctionConfigurationResponse
- java.lang.Object
-
- com.baidubce.model.AbstractBceResponse
-
- com.baidubce.services.cfc.model.CfcResponse
-
- com.baidubce.services.cfc.model.FunctionConfigurationResponse
-
- 所有已实现的接口:
Serializable
- 直接已知子类:
CreateFunctionResponse,GetFunctionConfigurationResponse,PublishVersionResponse,UpdateFunctionCodeResponse,UpdateFunctionConfigurationResponse
public class FunctionConfigurationResponse extends CfcResponse
Response object of the basic information of the Baidu CFC function- 另请参阅:
- 序列化表格
-
-
字段概要
-
从类继承的字段 com.baidubce.model.AbstractBceResponse
metadata
-
-
构造器概要
构造器 构造器 说明 FunctionConfigurationResponse()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetCodeSha256()Get the SHA256 hash of function code packageIntegergetCodeSize()Get the size of the function package, in bytesStringgetCommitId()Get the commitIdStringgetDescription()Get the function descriptionEnvironmentgetEnvironment()Get the environmentStringgetFunctionArn()Get the FunctionArn.StringgetFunctionBrn()Get the BRN (Baidu resource name) of the functionStringgetFunctionName()Get the function name, consisting of numbers, letters, - or _, limited to 64 characters in lengthStringgetHandler()Get the entry function of the CFC call, for the module is module-name.export eg.StringgetLastModified()Get the last modified time which is same as UpdateAt.StringgetLogBosDir()Get the log stored bucket addressStringgetLogType()Get the log type bos /noneIntegergetMemorySize()Get the memory sizeStringgetRegion()Get the region which function belong toStringgetRole()Get the function execution roleStringgetRuntime()Get the runtimeIntegergetTimeout()Get the timeoutStringgetUid()Get the user IDStringgetUpdatedAt()Get the update time of the function.StringgetVersion()Get the version, $LATEST means the latest, otherwise it consists of numbers, 1-32 charactersStringgetVersionDesc()Get the function descriptionvoidsetCodeSha256(String codeSha256)Set the SHA256 hash of function code packagevoidsetCodeSize(Integer codeSize)Set the size of the function package, in bytesvoidsetCommitId(String commitId)Set the commitIdvoidsetDescription(String description)Set the function description,0-256 charactersvoidsetEnvironment(Environment environment)Set the environmentvoidsetFunctionArn(String functionArn)Set the FunctionArn.voidsetFunctionBrn(String functionBrn)Set the BRN (Baidu resource name) of the function.voidsetFunctionName(String functionName)Set the function name, consisting of numbers, letters, - or _, limited to 64 characters in lengthvoidsetHandler(String handler)Set the entry function of the CFC call, for the module is module-name.export eg.voidsetLastModified(String lastModified)Set the last modified time which is same as UpdateAt.voidsetLogBosDir(String logBosDir)Set the log stored bucket addressvoidsetLogType(String logType)Set the log type bos /nonevoidsetMemorySize(Integer memorySize)Set the memory size, in megabytes, used by CFC to infer the amount of CPU and memory allocated to user functions.voidsetRegion(String region)Set the region which function belong to.voidsetRole(String role)Set the function execution rolevoidsetRuntime(String runtime)Set the runtimevoidsetTimeout(Integer timeout)Set the timeout, 1-300voidsetUid(String uid)Set the user ID (consisting of numbers, letters, underscores), length limited to 128 charactersvoidsetUpdatedAt(String updatedAt)Set the update time of the function.voidsetVersion(String version)Set the version, $LATEST means the latest, otherwise it consists of numbers, 1-32 charactersvoidsetVersionDesc(String versionDesc)Set the function description.-
从类继承的方法 com.baidubce.services.cfc.model.CfcResponse
setMetadata, toString
-
从类继承的方法 com.baidubce.model.AbstractBceResponse
getMetadata
-
-
-
-
方法详细资料
-
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
-
-