public ConfigRuleEvaluationStatus withLastErrorCode(String lastErrorCode) {
        setLastErrorCode(lastErrorCode);
        return this;
    }
<p>
The error code that Config returned when the rule last failed.
</p>

@param lastErrorCode
       The error code that Config returned when the rule last failed.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-config/src/main/java/com/amazonaws/services/config/model/ConfigRuleEvaluationStatus.java