com.baidubce.services.cfc.model
Class FunctionConfigurationResponse

java.lang.Object
  extended by com.baidubce.model.AbstractBceResponse
      extended by com.baidubce.services.cfc.model.CfcResponse
          extended by com.baidubce.services.cfc.model.FunctionConfigurationResponse
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CreateFunctionResponse, GetFunctionConfigurationResponse, PublishVersionResponse, UpdateFunctionCodeResponse, UpdateFunctionConfigurationResponse

public class FunctionConfigurationResponse
extends CfcResponse

Response object of the basic information of the Baidu CFC function

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.baidubce.model.AbstractBceResponse
metadata
 
Constructor Summary
FunctionConfigurationResponse()
           
 
Method Summary
 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.
 
Methods inherited from class com.baidubce.services.cfc.model.CfcResponse
setMetadata, toString
 
Methods inherited from class com.baidubce.model.AbstractBceResponse
getMetadata
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FunctionConfigurationResponse

public FunctionConfigurationResponse()
Method Detail

getUid

public String getUid()
Get the user ID

Returns:
The user ID

setUid

public void setUid(String uid)
Set the user ID (consisting of numbers, letters, underscores), length limited to 128 characters

Parameters:
uid - The user ID (consisting of numbers, letters, underscores), length limited to 128 characters

getDescription

public String getDescription()
Get the function description

Returns:
The function description

setDescription

public void setDescription(String description)
Set the function description,0-256 characters

Parameters:
description - The function description,0-256 characters

getFunctionBrn

public String getFunctionBrn()
Get the BRN (Baidu resource name) of the function

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

Parameters:
functionBrn - The BRN (Baidu resource name) of the function. 1-170 characters

getRegion

public String getRegion()
Get the region which function belong to

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

Parameters:
region - The region which function belong to

getTimeout

public Integer getTimeout()
Get the timeout

Returns:
The timeout

setTimeout

public void setTimeout(Integer timeout)
Set the timeout, 1-300

Parameters:
timeout - The timeout

getVersionDesc

public String getVersionDesc()
Get the function description

Returns:
The function description

setVersionDesc

public void setVersionDesc(String versionDesc)
Set the function description. 0-256 characters

Parameters:
versionDesc - The function description

getUpdatedAt

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

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

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

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

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

Parameters:
codeSha256 - The SHA256 hash of function code package

getCodeSize

public Integer getCodeSize()
Get the size of the function package, in bytes

Returns:
The size of the function package, in bytes

setCodeSize

public void setCodeSize(Integer codeSize)
Set the size of the function package, in bytes

Parameters:
codeSize - The size of the function package, in bytes

getFunctionArn

public String getFunctionArn()
Get the FunctionArn. Compatible with AWS Lambda with FunctionBrn

Returns:
The FunctionArn. Compatible with AWS Lambda with FunctionBrn

setFunctionArn

public void setFunctionArn(String functionArn)
Set the FunctionArn. Compatible with AWS Lambda with FunctionBrn

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

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

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

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

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

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

Parameters:
version - The version, $LATEST means the latest, otherwise it consists of numbers, 1-32 characters

getRuntime

public String getRuntime()
Get the runtime

Returns:
The runtime

setRuntime

public void setRuntime(String runtime)
Set the runtime

Parameters:
runtime - The runtime

getMemorySize

public Integer getMemorySize()
Get the memory size

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

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

Returns:
The environment

setEnvironment

public void setEnvironment(Environment environment)
Set the environment

Parameters:
environment - The environment

getCommitId

public String getCommitId()
Get the commitId

Returns:
The commitId

setCommitId

public void setCommitId(String commitId)
Set the commitId

Parameters:
commitId - The commitId

getRole

public String getRole()
Get the function execution role

Returns:
The function execution role

setRole

public void setRole(String role)
Set the function execution role

Parameters:
role - The function execution role

getLogType

public String getLogType()
Get the log type bos /none

Returns:
The log type

setLogType

public void setLogType(String logType)
Set the log type bos /none

Parameters:
logType - The log type bos /none

getLogBosDir

public String getLogBosDir()
Get the log stored bucket address

Returns:
The log stored bucket address

setLogBosDir

public void setLogBosDir(String logBosDir)
Set the log stored bucket address

Parameters:
logBosDir - The log stored bucket address


Copyright © 2020. All rights reserved.