public LastReportGenerationExecutionError withErrorCode(UsageReportExecutionErrorCode errorCode) {
        this.errorCode = errorCode.toString();
        return this;
    }
<p>
The error code for the error that is returned when a usage report can't be generated.
</p>

@param errorCode
       The error code for the error that is returned when a usage report can't be generated.
@return Returns a reference to this object so that method calls can be chained together.
@see UsageReportExecutionErrorCode
aws-java-sdk-appstream/src/main/java/com/amazonaws/services/appstream/model/LastReportGenerationExecutionError.java