com.heanbian.block.zabbix.api.ZabbixHostUpdateRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zabbix-client Show documentation
Show all versions of zabbix-client Show documentation
heanbian zabbix client component.
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