public MapRunFailedEventDetails withError(String error) {
        setError(error);
        return this;
    }
<p>
The error code of the Map Run failure.
</p>

@param error
       The error code of the Map Run failure.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/model/MapRunFailedEventDetails.java