public void setState(InstanceStateEnum state) {
        setInt(INSTANCE_STATE, state.ordinal());
    }
parse json string to configuration instance.

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