public DocumentInfo withAttributes(java.util.Collection<DocumentAttribute> attributes) {
        setAttributes(attributes);
        return this;
    }
<p>
Attributes that identify a specific version of a document to check.
</p>
<p>
The only valid attributes are:
</p>
<ul>
<li>
<p>
version
</p>
</li>
<li>
<p>
datasourceId
</p>
</li>
<li>
<p>
jobExecutionId
</p>
</li>
</ul>
<p>
The attributes follow these rules:
</p>
<ul>
<li>
<p>
<code>dataSourceId</code> and <code>jobExecutionId</code> must be used together.
</p>
</li>
<li>
<p>
<code>version</code> is ignored if <code>dataSourceId</code> and <code>jobExecutionId</code> are not provided.
</p>
</li>
<li>
<p>
If <code>dataSourceId</code> and <code>jobExecutionId</code> are provided, but <code>version</code> is not, the
version defaults to "0".
</p>
</li>
</ul>

@param attributes
       Attributes that identify a specific version of a document to check.</p>
       <p>
       The only valid attributes are:
       </p>
       <ul>
       <li>
       <p>
       version
       </p>
       </li>
       <li>
       <p>
       datasourceId
       </p>
       </li>
       <li>
       <p>
       jobExecutionId
       </p>
       </li>
       </ul>
       <p>
       The attributes follow these rules:
       </p>
       <ul>
       <li>
       <p>
       <code>dataSourceId</code> and <code>jobExecutionId</code> must be used together.
       </p>
       </li>
       <li>
       <p>
       <code>version</code> is ignored if <code>dataSourceId</code> and <code>jobExecutionId</code> are not
       provided.
       </p>
       </li>
       <li>
       <p>
       If <code>dataSourceId</code> and <code>jobExecutionId</code> are provided, but <code>version</code> is
       not, the version defaults to "0".
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-kendra/src/main/java/com/amazonaws/services/kendra/model/DocumentInfo.java