public PublishVersionResult withLayers(java.util.Collection<Layer> layers) {
        setLayers(layers);
        return this;
    }
<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>.
@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/PublishVersionResult.java