public BackfillError withCode(BackfillErrorCode code) {
        this.code = code.toString();
        return this;
    }
<p>
The error code for an error that occurred when registering partition indexes for an existing table.
</p>

@param code
       The error code for an error that occurred when registering partition indexes for an existing table.
@return Returns a reference to this object so that method calls can be chained together.
@see BackfillErrorCode
aws-java-sdk-glue/src/main/java/com/amazonaws/services/glue/model/BackfillError.java