public State withErrorCode(ErrorCode errorCode) {
        this.errorCode = errorCode.toString();
        return this;
    }
<p>
The error code explaining why the account failed to enable Amazon Inspector.
</p>

@param errorCode
       The error code explaining why the account failed to enable Amazon Inspector.
@return Returns a reference to this object so that method calls can be chained together.
@see ErrorCode
aws-java-sdk-inspector2/src/main/java/com/amazonaws/services/inspector2/model/State.java