@Override
    public ListCollectionsResult listCollections(ListCollectionsRequest request) {
        request = beforeClientExecution(request);
        return executeListCollections(request);
    }
<p>
Lists all OpenSearch Serverless collections. For more information, see <a
href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-manage.html">Creating and
managing Amazon OpenSearch Serverless collections</a>.
</p>
<note>
<p>
Make sure to include an empty request body {} if you don't include any collection filters in the request.
</p>
</note>

@param listCollectionsRequest
@return Result of the ListCollections operation returned by the service.
@throws InternalServerException
        Thrown when an error internal to the service occurs while processing a request.
@throws ValidationException
        Thrown when the HTTP request contains invalid input or is missing required input.
@sample AWSOpenSearchServerless.ListCollections
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/ListCollections"
     target="_top">AWS API Documentation</a>
aws-java-sdk-opensearchserverless/src/main/java/com/amazonaws/services/opensearchserverless/AWSOpenSearchServerlessClient.java