All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.heanbian.block.zabbix.api.ZabbixHostGroupGetRequest Maven / Gradle / Ivy

There is a newer version: 1.0.8
Show newest version
package com.heanbian.block.zabbix.api;

import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class ZabbixHostGroupGetRequest {

	private Map params = new HashMap<>();

	public Map getParams() {
		return params;
	}

	/**
	 * 
	 * @param output "extend"
	 * @return ZabbixHostGroupGetRequest
	 */
	public ZabbixHostGroupGetRequest setOutput(String output) {
		this.params.put("output", output);
		return this;
	}

	public ZabbixHostGroupGetRequest setFilterNames(String... names) {
		return this.setFilterNames(Arrays.asList(names));
	}

	public ZabbixHostGroupGetRequest setFilterNames(List names) {
		Map filter = new HashMap<>(1);
		filter.put("name", names);

		this.params.put("filter", filter);
		return this;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy