public void setPackages(java.util.Collection<String> packages) {
        if (packages == null) {
            this.packages = null;
            return;
        }

        this.packages = new com.amazonaws.internal.SdkInternalList<String>(packages);
    }
<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.
aws-java-sdk-opsworks/src/main/java/com/amazonaws/services/opsworks/model/UpdateLayerRequest.java