public BatchGetRepositoriesError withErrorCode(BatchGetRepositoriesErrorCodeEnum errorCode) {
        this.errorCode = errorCode.toString();
        return this;
    }
<p>
An error code that specifies the type of failure.
</p>

@param errorCode
       An error code that specifies the type of failure.
@return Returns a reference to this object so that method calls can be chained together.
@see BatchGetRepositoriesErrorCodeEnum
aws-java-sdk-codecommit/src/main/java/com/amazonaws/services/codecommit/model/BatchGetRepositoriesError.java