public CreateFunctionRequest withLayers(java.util.Collection<String> layers) {
        setLayers(layers);
        return this;
    }
<p>
A list of <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html">function layers</a> to
add to the function's execution environment. Specify each layer by its ARN, including the version.
</p>

@param layers
       A list of <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html">function
       layers</a> to add to the function's execution environment. Specify each layer by its ARN, including the
       version.
@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