public DocumentAttributeTarget withKey(String key) {
        setKey(key);
        return this;
    }
<p>
The identifier of the target document attribute or metadata field. For example, 'Department' could be an
identifier for the target attribute or metadata field that includes the department names associated with the
documents.
</p>

@param key
       The identifier of the target document attribute or metadata field. For example, 'Department' could be an
       identifier for the target attribute or metadata field that includes the department names associated with
       the documents.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-qbusiness/src/main/java/com/amazonaws/services/qbusiness/model/DocumentAttributeTarget.java