public CreateFunctionRequest withMemorySize(Integer memorySize) {
        setMemorySize(memorySize);
        return this;
    }
<p>
The amount of <a href=
"https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-memory-console"
>memory available to the function</a> at runtime. Increasing the function memory also increases its CPU
allocation. The default value is 128 MB. The value can be any multiple of 1 MB.
</p>

@param memorySize
       The amount of <a href=
       "https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-memory-console"
       >memory available to the function</a> at runtime. Increasing the function memory also increases its CPU
       allocation. The default value is 128 MB. The value can be any multiple of 1 MB.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-lambda/src/main/java/com/amazonaws/services/lambda/model/CreateFunctionRequest.java