public VpcEndpoint withStatus(String status) {
        setStatus(status);
        return this;
    }
<p>
The current status of the endpoint.
</p>

@param status
       The current status of the endpoint.
@return Returns a reference to this object so that method calls can be chained together.
@see VpcEndpointStatus
aws-java-sdk-opensearch/src/main/java/com/amazonaws/services/opensearch/model/VpcEndpoint.java