code: public GetInventoryResult withEntities(InventoryResultEntity... entities) {
          if (this.entities == null) {
              setEntities(new com.amazonaws.internal.SdkInternalList<InventoryResultEntity>(entities.length));
          }
          for (InventoryResultEntity ele : entities) {
              this.entities.add(ele);
          }
          return this;
      }
docs: <p>
  Collection of inventory entities such as a collection of instance inventory.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setEntities(java.util.Collection)} or {@link #withEntities(java.util.Collection)} if you want to override
  the existing values.
  </p>
  
  @param entities
  Collection of inventory entities such as a collection of instance inventory.
  @return Returns a reference to this object so that method calls can be chained together.