public ExecutionStepResult withError(ExecutionError error) {
        setError(error);
        return this;
    }
<p>
Specifies the details for an error, if it occurred during execution of the specified workflow step.
</p>

@param error
       Specifies the details for an error, if it occurred during execution of the specified workflow step.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-transfer/src/main/java/com/amazonaws/services/transfer/model/ExecutionStepResult.java