code: public ModifyDocumentPermissionRequest withAccountIdsToRemove(String... accountIdsToRemove) {
          if (this.accountIdsToRemove == null) {
              setAccountIdsToRemove(new com.amazonaws.internal.SdkInternalList<String>(accountIdsToRemove.length));
          }
          for (String ele : accountIdsToRemove) {
              this.accountIdsToRemove.add(ele);
          }
          return this;
      }
docs: <p>
  The AWS user accounts that should no longer have access to the document. The AWS user account can either be a
  group of account IDs or <i>All</i>. This action has a higher priority than <i>AccountIdsToAdd</i>. If you specify
  an account ID to add and the same ID to remove, the system removes access to the document.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setAccountIdsToRemove(java.util.Collection)} or {@link #withAccountIdsToRemove(java.util.Collection)} if
  you want to override the existing values.
  </p>
  
  @param accountIdsToRemove
  The AWS user accounts that should no longer have access to the document. The AWS user account can either
  be a group of account IDs or <i>All</i>. This action has a higher priority than <i>AccountIdsToAdd</i>. If
  you specify an account ID to add and the same ID to remove, the system removes access to the document.
  @return Returns a reference to this object so that method calls can be chained together.