public void setError(String error) {
        this.error = error;
    }
<p>
The error code of the failure.
</p>

@param error
       The error code of the failure.
aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/model/StopExecutionRequest.java