code: public static base_response add(nitro_service client, streamidentifier resource) throws Exception {
  		streamidentifier addresource = new streamidentifier();
  		addresource.name = resource.name;
  		addresource.selectorname = resource.selectorname;
  		addresource.interval = resource.interval;
  		addresource.samplecount = resource.samplecount;
  		addresource.sort = resource.sort;
  		return addresource.add_resource(client);
  	}
docs: Use this API to add streamidentifier.