code: public GetResourceShareInvitationsResult withResourceShareInvitations(ResourceShareInvitation... resourceShareInvitations) {
          if (this.resourceShareInvitations == null) {
              setResourceShareInvitations(new java.util.ArrayList<ResourceShareInvitation>(resourceShareInvitations.length));
          }
          for (ResourceShareInvitation ele : resourceShareInvitations) {
              this.resourceShareInvitations.add(ele);
          }
          return this;
      }
docs: <p>
  Information about the invitations.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setResourceShareInvitations(java.util.Collection)} or
  {@link #withResourceShareInvitations(java.util.Collection)} if you want to override the existing values.
  </p>
  
  @param resourceShareInvitations
  Information about the invitations.
  @return Returns a reference to this object so that method calls can be chained together.