public void setLayerVersions(java.util.Collection<LayerVersionsListItem> layerVersions) {
        if (layerVersions == null) {
            this.layerVersions = null;
            return;
        }

        this.layerVersions = new com.amazonaws.internal.SdkInternalList<LayerVersionsListItem>(layerVersions);
    }
<p>
A list of versions.
</p>

@param layerVersions
       A list of versions.
aws-java-sdk-lambda/src/main/java/com/amazonaws/services/lambda/model/ListLayerVersionsResult.java