public class UpdateFunctionConfigurationRequest extends GenericFunctionRequest
| Constructor and Description |
|---|
UpdateFunctionConfigurationRequest(String functionName,
String description) |
| Modifier and Type | Method and Description |
|---|---|
Code |
getCode()
Get the function code
|
Environment |
getEnvironment()
Get the environment
|
String |
getHandler()
Get the entry function of the CFC call, for the module is module-name.export eg.
|
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.
|
String |
getRuntime()
Get the runtime
|
Integer |
getTimeout()
Get the timeout
|
void |
setCode(Code code)
Set the function code
|
void |
setEnvironment(Environment environment)
Set the environment
|
void |
setHandler(String handler)
Set the entry function of the CFC call, for the module is module-name.export eg.
|
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.
|
void |
setRuntime(String runtime)
Set the runtime
|
void |
setTimeout(Integer timeout)
Set the timeout
|
String |
toString()
(non-Javadoc)
|
UpdateFunctionConfigurationRequest |
withCode(Code code) |
UpdateFunctionConfigurationRequest |
withDescription(String description) |
UpdateFunctionConfigurationRequest |
withEnvironment(Environment environment) |
UpdateFunctionConfigurationRequest |
withFunctionName(String functionName) |
UpdateFunctionConfigurationRequest |
withHandler(String handler) |
UpdateFunctionConfigurationRequest |
withMemorySize(Integer memorySize) |
UpdateFunctionConfigurationRequest |
withRequestCredentials(BceCredentials credentials) |
UpdateFunctionConfigurationRequest |
withRuntime(String runtime) |
UpdateFunctionConfigurationRequest |
withTimeout(Integer timeout) |
getDescription, getFunctionName, setDescription, setFunctionNamegetRequestCredentials, setRequestCredentialspublic Code getCode()
public void setCode(Code code)
code - The function codepublic Environment getEnvironment()
public void setEnvironment(Environment environment)
environment - The environmentpublic 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 limit is 128public Integer getMemorySize()
public void setMemorySize(Integer memorySize)
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)public String getRuntime()
public void setRuntime(String runtime)
runtime - The runtimepublic Integer getTimeout()
public void setTimeout(Integer timeout)
timeout - The timeoutpublic UpdateFunctionConfigurationRequest withFunctionName(String functionName)
withFunctionName in class GenericFunctionRequestpublic UpdateFunctionConfigurationRequest withDescription(String description)
withDescription in class GenericFunctionRequestpublic UpdateFunctionConfigurationRequest withCode(Code code)
public UpdateFunctionConfigurationRequest withEnvironment(Environment environment)
public UpdateFunctionConfigurationRequest withHandler(String handler)
public UpdateFunctionConfigurationRequest withMemorySize(Integer memorySize)
public UpdateFunctionConfigurationRequest withRuntime(String runtime)
public UpdateFunctionConfigurationRequest withTimeout(Integer timeout)
public UpdateFunctionConfigurationRequest withRequestCredentials(BceCredentials credentials)
withRequestCredentials in class AbstractBceRequestpublic String toString()
toString in class ObjectObject.toString()Copyright © 2024. All rights reserved.