public ModifyDocumentPermissionRequest withAccountIdsToAdd(String... accountIdsToAdd) {
        if (this.accountIdsToAdd == null) {
            setAccountIdsToAdd(new com.amazonaws.internal.SdkInternalList<String>(accountIdsToAdd.length));
        }
        for (String ele : accountIdsToAdd) {
            this.accountIdsToAdd.add(ele);
        }
        return this;
    }
<p>
The Amazon Web Services users that should have access to the document. The account IDs can either be a group of
account IDs or <i>All</i>.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAccountIdsToAdd(java.util.Collection)} or {@link #withAccountIdsToAdd(java.util.Collection)} if you
want to override the existing values.
</p>

@param accountIdsToAdd
       The Amazon Web Services users that should have access to the document. The account IDs can either be a
       group of account IDs or <i>All</i>.
@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