public ActionInvocation withErrorMessage(String errorMessage) {
        setErrorMessage(errorMessage);
        return this;
    }
<p>
The error message when an extension invocation fails.
</p>

@param errorMessage
       The error message when an extension invocation fails.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-appconfig/src/main/java/com/amazonaws/services/appconfig/model/ActionInvocation.java