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

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

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

import java.util.HashMap;
import java.util.Map;

public class ZabbixItemGetRequest {

	private Map params = new HashMap<>();

	public Map getParams() {
		return params;
	}

	public ZabbixItemGetRequest setOutput(String output) {
		this.params.put("output", output);
		return this;
	}

	public ZabbixItemGetRequest setHostids(String hostids) {
		this.params.put("hostids", hostids);
		return this;
	}

	public ZabbixItemGetRequest setSearchKey(String key_) {
		Map search = new HashMap<>(1);
		search.put("key_", key_);

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

	public ZabbixItemGetRequest setFilterType(String type) {
		Map filter = new HashMap<>(1);
		filter.put("type", type);

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

	public ZabbixItemGetRequest setSortfield(String sortfield) {
		this.params.put("sortfield", sortfield);
		return this;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy