类 UpdateFunctionConfigurationRequest
- java.lang.Object
-
- com.baidubce.model.AbstractBceRequest
-
- com.baidubce.services.cfc.model.GenericFunctionRequest
-
- com.baidubce.services.cfc.model.UpdateFunctionConfigurationRequest
-
public class UpdateFunctionConfigurationRequest extends GenericFunctionRequest
Request object for updating the CFC function configuration
-
-
构造器概要
构造器 构造器 说明 UpdateFunctionConfigurationRequest(String functionName, String description)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 CodegetCode()Get the function codeEnvironmentgetEnvironment()Get the environmentStringgetHandler()Get the entry function of the CFC call, for the module is module-name.export eg.IntegergetMemorySize()Get the size of the memory, in megabytes, that CFC uses to estimate the amount of CPU and memory allocated to the user function.StringgetRuntime()Get the runtimeIntegergetTimeout()Get the timeoutvoidsetCode(Code code)Set the function codevoidsetEnvironment(Environment environment)Set the environmentvoidsetHandler(String handler)Set the entry function of the CFC call, for the module is module-name.export eg.voidsetMemorySize(Integer memorySize)Set the size of the memory, in megabytes, that CFC uses to estimate the amount of CPU and memory allocated to the user function.voidsetRuntime(String runtime)Set the runtimevoidsetTimeout(Integer timeout)Set the timeoutStringtoString()(non-Javadoc)UpdateFunctionConfigurationRequestwithCode(Code code)UpdateFunctionConfigurationRequestwithDescription(String description)UpdateFunctionConfigurationRequestwithEnvironment(Environment environment)UpdateFunctionConfigurationRequestwithFunctionName(String functionName)UpdateFunctionConfigurationRequestwithHandler(String handler)UpdateFunctionConfigurationRequestwithMemorySize(Integer memorySize)UpdateFunctionConfigurationRequestwithRequestCredentials(BceCredentials credentials)UpdateFunctionConfigurationRequestwithRuntime(String runtime)UpdateFunctionConfigurationRequestwithTimeout(Integer timeout)-
从类继承的方法 com.baidubce.services.cfc.model.GenericFunctionRequest
getDescription, getFunctionName, setDescription, setFunctionName
-
从类继承的方法 com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
-
-
-
-
方法详细资料
-
getCode
public Code getCode()
Get the function code- 返回:
- The function code
-
setCode
public void setCode(Code code)
Set the function code- 参数:
code- The function code
-
getEnvironment
public Environment getEnvironment()
Get the environment- 返回:
- The environment
-
setEnvironment
public void setEnvironment(Environment environment)
Set the environment- 参数:
environment- The environment
-
getHandler
public String getHandler()
Get the entry function of the CFC call, for the module is module-name.export eg. index.handler maximum length limit is 128- 返回:
-
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 limit is 128- 参数:
handler- The entry function of the CFC call, for the module is module-name.export eg. index.handler maximum length limit is 128
-
getMemorySize
public Integer getMemorySize()
Get the size of the memory, in megabytes, that CFC uses to estimate the amount of CPU and memory allocated to the user function. The default value is 128MB, which must be a multiple of 128MB (now CFC provides 128 to 1024M of memory)- 返回:
-
setMemorySize
public void setMemorySize(Integer memorySize)
Set the size of the memory, in megabytes, that CFC uses to estimate the amount of CPU and memory allocated to the user function. The default value is 128MB, which must be a multiple of 128MB (now CFC provides 128 to 1024M of memory)- 参数:
memorySize- The size of the memory, in megabytes, that CFC uses to estimate the amount of CPU and memory allocated to the user function. The default value is 128MB, which must be a multiple of 128MB (now CFC provides 128 to 1024M of memory)
-
getRuntime
public String getRuntime()
Get the runtime- 返回:
- The runtime
-
setRuntime
public void setRuntime(String runtime)
Set the runtime- 参数:
runtime- The runtime
-
getTimeout
public Integer getTimeout()
Get the timeout- 返回:
- The timeout
-
setTimeout
public void setTimeout(Integer timeout)
Set the timeout- 参数:
timeout- The timeout
-
withFunctionName
public UpdateFunctionConfigurationRequest withFunctionName(String functionName)
- 指定者:
withFunctionName在类中GenericFunctionRequest
-
withDescription
public UpdateFunctionConfigurationRequest withDescription(String description)
- 指定者:
withDescription在类中GenericFunctionRequest
-
withCode
public UpdateFunctionConfigurationRequest withCode(Code code)
-
withEnvironment
public UpdateFunctionConfigurationRequest withEnvironment(Environment environment)
-
withHandler
public UpdateFunctionConfigurationRequest withHandler(String handler)
-
withMemorySize
public UpdateFunctionConfigurationRequest withMemorySize(Integer memorySize)
-
withRuntime
public UpdateFunctionConfigurationRequest withRuntime(String runtime)
-
withTimeout
public UpdateFunctionConfigurationRequest withTimeout(Integer timeout)
-
withRequestCredentials
public UpdateFunctionConfigurationRequest withRequestCredentials(BceCredentials credentials)
- 指定者:
withRequestCredentials在类中AbstractBceRequest
-
toString
public String toString()
(non-Javadoc)- 覆盖:
toString在类中Object- 另请参阅:
Object.toString()
-
-