public SalesforceKnowledgeArticleConfiguration withIncludedStates(String... includedStates) {
        if (this.includedStates == null) {
            setIncludedStates(new java.util.ArrayList<String>(includedStates.length));
        }
        for (String ele : includedStates) {
            this.includedStates.add(ele);
        }
        return this;
    }
<p>
Specifies the document states that should be included when Amazon Kendra indexes knowledge articles. You must
specify at least one state.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setIncludedStates(java.util.Collection)} or {@link #withIncludedStates(java.util.Collection)} if you want
to override the existing values.
</p>

@param includedStates
       Specifies the document states that should be included when Amazon Kendra indexes knowledge articles. You
       must specify at least one state.
@return Returns a reference to this object so that method calls can be chained together.
@see SalesforceKnowledgeArticleState
aws-java-sdk-kendra/src/main/java/com/amazonaws/services/kendra/model/SalesforceKnowledgeArticleConfiguration.java