public VpcEndpoint withEndpoint(String endpoint) {
        setEndpoint(endpoint);
        return this;
    }
<p>
The connection endpoint ID for connecting to the domain.
</p>

@param endpoint
       The connection endpoint ID for connecting to the domain.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-opensearch/src/main/java/com/amazonaws/services/opensearch/model/VpcEndpoint.java