code: public GetInventoryRequest withResultAttributes(ResultAttribute... resultAttributes) {
          if (this.resultAttributes == null) {
              setResultAttributes(new com.amazonaws.internal.SdkInternalList<ResultAttribute>(resultAttributes.length));
          }
          for (ResultAttribute ele : resultAttributes) {
              this.resultAttributes.add(ele);
          }
          return this;
      }
docs: <p>
  The list of inventory item types to return.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setResultAttributes(java.util.Collection)} or {@link #withResultAttributes(java.util.Collection)} if you
  want to override the existing values.
  </p>
  
  @param resultAttributes
  The list of inventory item types to return.
  @return Returns a reference to this object so that method calls can be chained together.