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

com.heanbian.block.zabbix.api.ZabbixHostGetRequest 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 ZabbixHostGetRequest {

	private Map params = new HashMap<>();

	public Map getParams() {
		return params;
	}

	public ZabbixHostGetRequest setSelectGroups(String selectGroups) {
		this.params.put("selectGroups", selectGroups);
		return this;
	}

	public ZabbixHostGetRequest setOutput(String... output) {
		return this.setOutput(Arrays.asList(output));
	}

	public ZabbixHostGetRequest setOutput(List output) {
		this.params.put("output", output);
		return this;
	}

	public ZabbixHostGetRequest setFilterHosts(String... hosts) {
		return this.setFilterHosts(Arrays.asList(hosts));
	}

	public ZabbixHostGetRequest setFilterHosts(List hosts) {
		Map filter = new HashMap<>(1);
		filter.put("host", hosts);

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy