public void setLayers(java.util.Collection<Layer> layers) {
        if (layers == null) {
            this.layers = null;
            return;
        }

        this.layers = new com.amazonaws.internal.SdkInternalList<Layer>(layers);
    }
<p>
The function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html">layers</a>.
</p>

@param layers
       The function's <a
       href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html">layers</a>.
aws-java-sdk-lambda/src/main/java/com/amazonaws/services/lambda/model/FunctionConfiguration.java