public VpcEndpointErrorDetail withErrorMessage(String errorMessage) {
        setErrorMessage(errorMessage);
        return this;
    }
<p>
An error message describing the reason for the failure.
</p>

@param errorMessage
       An error message describing the reason for the failure.
@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