public InstanceStateEnum getState() {
        int value = getInt(INSTANCE_STATE, InstanceStateEnum.DEFAULT.ordinal());
        return InstanceStateEnum.getTaskState(value);
    }
parse json string to configuration instance.

@return job configuration
inlong-agent/agent-common/src/main/java/org/apache/inlong/agent/conf/InstanceProfile.java