code: public CreateLayerRequest withPackages(String... packages) {
          if (this.packages == null) {
              setPackages(new com.amazonaws.internal.SdkInternalList<String>(packages.length));
          }
          for (String ele : packages) {
              this.packages.add(ele);
          }
          return this;
      }
docs: <p>
  An array of <code>Package</code> objects that describes the layer packages.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setPackages(java.util.Collection)} or {@link #withPackages(java.util.Collection)} if you want to override
  the existing values.
  </p>
  
  @param packages
  An array of <code>Package</code> objects that describes the layer packages.
  @return Returns a reference to this object so that method calls can be chained together.