|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.baidubce.model.AbstractBceRequest
com.baidubce.services.cfc.model.GenericFunctionRequest
com.baidubce.services.cfc.model.UpdateFunctionConfigurationRequest
public class UpdateFunctionConfigurationRequest
Request object for updating the CFC function configuration
| Constructor Summary | |
|---|---|
UpdateFunctionConfigurationRequest(String functionName,
String description)
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class com.baidubce.services.cfc.model.GenericFunctionRequest |
|---|
getDescription, getFunctionName, setDescription, setFunctionName |
| Methods inherited from class com.baidubce.model.AbstractBceRequest |
|---|
getRequestCredentials, setRequestCredentials |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UpdateFunctionConfigurationRequest(String functionName,
String description)
| Method Detail |
|---|
public 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||