code: public GetSlotTypeVersionsResult withSlotTypes(SlotTypeMetadata... slotTypes) {
          if (this.slotTypes == null) {
              setSlotTypes(new java.util.ArrayList<SlotTypeMetadata>(slotTypes.length));
          }
          for (SlotTypeMetadata ele : slotTypes) {
              this.slotTypes.add(ele);
          }
          return this;
      }
docs: <p>
  An array of <code>SlotTypeMetadata</code> objects, one for each numbered version of the slot type plus one for
  the <code>$LATEST</code> version.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setSlotTypes(java.util.Collection)} or {@link #withSlotTypes(java.util.Collection)} if you want to
  override the existing values.
  </p>
  
  @param slotTypes
  An array of <code>SlotTypeMetadata</code> objects, one for each numbered version of the slot type plus one
  for the <code>$LATEST</code> version.
  @return Returns a reference to this object so that method calls can be chained together.