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;
    }
<p>
The Amazon Web Services users that should no longer have access to the document. The Amazon Web Services user can
either be a group of account IDs or <i>All</i>. This action has a higher priority than
<code>AccountIdsToAdd</code>. If you specify an 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 Amazon Web Services users that should no longer have access to the document. The Amazon Web Services
       user can either be a group of account IDs or <i>All</i>. This action has a higher priority than
       <code>AccountIdsToAdd</code>. If you specify an 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.
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/ModifyDocumentPermissionRequest.java