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

com.heanbian.block.zabbix.api.ZabbixHostUpdateRequest 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.List;
import java.util.Map;

public class ZabbixHostUpdateRequest {

	private Map params = new HashMap<>();

	public Map getParams() {
		return params;
	}

	public ZabbixHostUpdateRequest setHostid(String hostid) {
		this.params.put("hostid", hostid);
		return this;
	}

	public ZabbixHostUpdateRequest setStatus(int status) {
		this.params.put("status", status);
		return this;
	}

	public ZabbixHostUpdateRequest setInventoryMode(int inventoryMode) {
		this.params.put("inventory_mode", inventoryMode);
		return this;
	}

	public ZabbixHostUpdateRequest setInventoryLocation(String location) {
		Map inventory = new HashMap<>(1);
		inventory.put("location", location);

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

	public ZabbixHostUpdateRequest setTemplates(List templates) {
		this.params.put("templates_clear", templates);
		return this;
	}

	public ZabbixHostUpdateRequest setMacros(List macros) {
		this.params.put("macros", macros);
		return this;
	}

	public ZabbixHostUpdateRequest setTags(ZabbixTag tags) {
		this.params.put("tags", tags);
		return this;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy