public FeaturedDocumentWithMetadata withId(String id) {
        setId(id);
        return this;
    }
<p>
The identifier of the featured document with its metadata. You can use the <a
href="https://docs.aws.amazon.com/kendra/latest/dg/API_Query.html">Query</a> API to search for specific documents
with their document IDs included in the result items, or you can use the console.
</p>

@param id
       The identifier of the featured document with its metadata. You can use the <a
       href="https://docs.aws.amazon.com/kendra/latest/dg/API_Query.html">Query</a> API to search for specific
       documents with their document IDs included in the result items, or you can use the console.
@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/FeaturedDocumentWithMetadata.java