
com.zabbix4j.proxy.ProxyGetRequest 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.zabbix4j.GetRequestCommonParams;
import com.zabbix4j.ZabbixApiRequest;
import com.zabbix4j.utils.ZbxListUtils;
import java.util.List;
/**
* @author Suguru Yajima
*/
public class ProxyGetRequest extends ZabbixApiRequest {
private Params params = new Params();
public ProxyGetRequest() {
setMethod("proxy.get");
}
/**
* 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 GetRequestCommonParams {
private List proxyids;
private String selectHosts;
private String selectInterface;
public void addProxyId(Integer id) {
proxyids = ZbxListUtils.add(proxyids, id);
}
/**
* Gets selectInterface.
*
* @return Value of selectInterface.
*/
public String getSelectInterface() {
return selectInterface;
}
/**
* Sets new selectInterface.
*
* @param selectInterface New value of selectInterface.
*/
public void setSelectInterface(String selectInterface) {
this.selectInterface = selectInterface;
}
/**
* Gets selectHosts.
*
* @return Value of selectHosts.
*/
public String getSelectHosts() {
return selectHosts;
}
/**
* Sets new selectHosts.
*
* @param selectHosts New value of selectHosts.
*/
public void setSelectHosts(String selectHosts) {
this.selectHosts = selectHosts;
}
/**
* Gets proxyids.
*
* @return Value of proxyids.
*/
public List getProxyids() {
return proxyids;
}
/**
* Sets new proxyids.
*
* @param proxyids New value of proxyids.
*/
public void setProxyids(List proxyids) {
this.proxyids = proxyids;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy