
com.zabbix4j.proxy.ProxyUpdateRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Zabbix4j Show documentation
Show all versions of Zabbix4j Show documentation
Zabbix API library for the Java language.
The newest version!
package com.zabbix4j.proxy;
import com.google.gson.annotations.SerializedName;
import com.zabbix4j.ZabbixApiRequest;
import com.zabbix4j.utils.ZbxListUtils;
import java.util.List;
/**
* @author Suguru Yajima
*/
public class ProxyUpdateRequest extends ZabbixApiRequest {
private Params params = new Params();
public ProxyUpdateRequest() {
setMethod("proxy.update");
}
/**
* Gets params.
*
* @return Value of params.
*/
public Params getParams() {
return params;
}
/**
* Sets new params.
*
* @param params New value of params.
*/
public void setParams(Params params) {
this.params = params;
}
public class Params extends ProxyObject {
private List hosts;
@SerializedName("interface")
private ProxyInterfaceObject proxyInterface;
public void addHostId(Integer id) {
hosts = ZbxListUtils.add(hosts, id);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy