code: public Instance withLicenses(LicenseConfiguration... licenses) {
          if (this.licenses == null) {
              setLicenses(new com.amazonaws.internal.SdkInternalList<LicenseConfiguration>(licenses.length));
          }
          for (LicenseConfiguration ele : licenses) {
              this.licenses.add(ele);
          }
          return this;
      }
docs: <p>
  The license configurations.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setLicenses(java.util.Collection)} or {@link #withLicenses(java.util.Collection)} if you want to override
  the existing values.
  </p>
  
  @param licenses
  The license configurations.
  @return Returns a reference to this object so that method calls can be chained together.