public UpdateLayerRequest withPackages(java.util.Collection<String> packages) {
        setPackages(packages);
        return this;
    }
<p>
An array of <code>Package</code> objects that describe the layer's packages.
</p>

@param packages
       An array of <code>Package</code> objects that describe the layer's packages.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-opsworks/src/main/java/com/amazonaws/services/opsworks/model/UpdateLayerRequest.java