public DeleteCollectionRequest withId(String id) {
        setId(id);
        return this;
    }
<p>
The unique identifier of the collection. For example, <code>1iu5usc406kd</code>. The ID is part of the collection
endpoint. You can also retrieve it using the <a
href="https://docs.aws.amazon.com/opensearch-service/latest/ServerlessAPIReference/API_ListCollections.html"
>ListCollections</a> API.
</p>

@param id
       The unique identifier of the collection. For example, <code>1iu5usc406kd</code>. The ID is part of the
       collection endpoint. You can also retrieve it using the <a href=
       "https://docs.aws.amazon.com/opensearch-service/latest/ServerlessAPIReference/API_ListCollections.html"
       >ListCollections</a> API.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-opensearchserverless/src/main/java/com/amazonaws/services/opensearchserverless/model/DeleteCollectionRequest.java