com.baidubce.services.cfc.model
Class UpdateFunctionConfigurationRequest

java.lang.Object
  extended by com.baidubce.model.AbstractBceRequest
      extended by com.baidubce.services.cfc.model.GenericFunctionRequest
          extended by com.baidubce.services.cfc.model.UpdateFunctionConfigurationRequest

public class UpdateFunctionConfigurationRequest
extends GenericFunctionRequest

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

UpdateFunctionConfigurationRequest

public UpdateFunctionConfigurationRequest(String functionName,
                                          String description)
Method Detail

getCode

public Code getCode()
Get the function code

Returns:
The function code

setCode

public void setCode(Code code)
Set the function code

Parameters:
code - The function code

getEnvironment

public Environment getEnvironment()
Get the environment

Returns:
The environment

setEnvironment

public void setEnvironment(Environment environment)
Set the environment

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

Returns:

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

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

Returns:

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)

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

Returns:
The runtime

setRuntime

public void setRuntime(String runtime)
Set the runtime

Parameters:
runtime - The runtime

getTimeout

public Integer getTimeout()
Get the timeout

Returns:
The timeout

setTimeout

public void setTimeout(Integer timeout)
Set the timeout

Parameters:
timeout - The timeout

withFunctionName

public UpdateFunctionConfigurationRequest withFunctionName(String functionName)
Specified by:
withFunctionName in class GenericFunctionRequest

withDescription

public UpdateFunctionConfigurationRequest withDescription(String description)
Specified by:
withDescription in class 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)
Specified by:
withRequestCredentials in class AbstractBceRequest

toString

public String toString()
(non-Javadoc)

Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2020. All rights reserved.