code: public GetResourceShareInvitationsRequest withResourceShareArns(String... resourceShareArns) {
          if (this.resourceShareArns == null) {
              setResourceShareArns(new java.util.ArrayList<String>(resourceShareArns.length));
          }
          for (String ele : resourceShareArns) {
              this.resourceShareArns.add(ele);
          }
          return this;
      }
docs: <p>
  The Amazon Resource Names (ARN) of the resource shares.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setResourceShareArns(java.util.Collection)} or {@link #withResourceShareArns(java.util.Collection)} if
  you want to override the existing values.
  </p>
  
  @param resourceShareArns
  The Amazon Resource Names (ARN) of the resource shares.
  @return Returns a reference to this object so that method calls can be chained together.