code: public ListLocationsResult withLocations(LocationListEntry... locations) {
          if (this.locations == null) {
              setLocations(new java.util.ArrayList<LocationListEntry>(locations.length));
          }
          for (LocationListEntry ele : locations) {
              this.locations.add(ele);
          }
          return this;
      }
docs: <p>
  An array that contains a list of locations.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setLocations(java.util.Collection)} or {@link #withLocations(java.util.Collection)} if you want to
  override the existing values.
  </p>
  
  @param locations
  An array that contains a list of locations.
  @return Returns a reference to this object so that method calls can be chained together.