public PutOrganizationConfigRuleRequest withExcludedAccounts(String... excludedAccounts) {
        if (this.excludedAccounts == null) {
            setExcludedAccounts(new com.amazonaws.internal.SdkInternalList<String>(excludedAccounts.length));
        }
        for (String ele : excludedAccounts) {
            this.excludedAccounts.add(ele);
        }
        return this;
    }
<p>
A comma-separated list of accounts that you want to exclude from an organization Config rule.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setExcludedAccounts(java.util.Collection)} or {@link #withExcludedAccounts(java.util.Collection)} if you
want to override the existing values.
</p>

@param excludedAccounts
       A comma-separated list of accounts that you want to exclude from an organization Config rule.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-config/src/main/java/com/amazonaws/services/config/model/PutOrganizationConfigRuleRequest.java