public VpcEndpointErrorDetail withErrorCode(String errorCode) {
        setErrorCode(errorCode);
        return this;
    }
<p>
The error code for the failed request.
</p>

@param errorCode
       The error code for the failed request.
@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/VpcEndpointErrorDetail.java