public FailStepMetadata withErrorMessage(String errorMessage) {
        setErrorMessage(errorMessage);
        return this;
    }
<p>
A message that you define and then is processed and rendered by the Fail step when the error occurs.
</p>

@param errorMessage
       A message that you define and then is processed and rendered by the Fail step when the error occurs.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/FailStepMetadata.java