
com.zabbix4j.templatescreen.TemplateScreenGetRequest Maven / Gradle / Ivy
package com.zabbix4j.templatescreen;
import com.zabbix4j.GetRequestCommonParams;
import com.zabbix4j.ZabbixApiRequest;
import com.zabbix4j.utils.ZbxListUtils;
import java.util.List;
/**
* @author Suguru Yajima
*/
public class TemplateScreenGetRequest extends ZabbixApiRequest {
private Params params = new Params();
public TemplateScreenGetRequest() {
setMethod("templatescreen.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 hostids;
private List screenids;
private List screenitemids;
private List templateids;
private Boolean noInheritance;
private String selectScreenItems;
public void addHostId(Integer id) {
hostids = ZbxListUtils.add(hostids, id);
}
public void addScreenId(Integer id) {
screenids = ZbxListUtils.add(screenids, id);
}
public void addScreenItemId(Integer id) {
screenitemids = ZbxListUtils.add(screenitemids, id);
}
public void addTemplateId(Integer id) {
templateids = ZbxListUtils.add(templateids, id);
}
/**
* Gets hostids.
*
* @return Value of hostids.
*/
public List getHostids() {
return hostids;
}
/**
* Sets new hostids.
*
* @param hostids New value of hostids.
*/
public void setHostids(List hostids) {
this.hostids = hostids;
}
/**
* Gets templateids.
*
* @return Value of templateids.
*/
public List getTemplateids() {
return templateids;
}
/**
* Sets new templateids.
*
* @param templateids New value of templateids.
*/
public void setTemplateids(List templateids) {
this.templateids = templateids;
}
/**
* Gets selectScreenItems.
*
* @return Value of selectScreenItems.
*/
public String getSelectScreenItems() {
return selectScreenItems;
}
/**
* Sets new selectScreenItems.
*
* @param selectScreenItems New value of selectScreenItems.
*/
public void setSelectScreenItems(String selectScreenItems) {
this.selectScreenItems = selectScreenItems;
}
/**
* Gets screenitemids.
*
* @return Value of screenitemids.
*/
public List getScreenitemids() {
return screenitemids;
}
/**
* Sets new screenitemids.
*
* @param screenitemids New value of screenitemids.
*/
public void setScreenitemids(List screenitemids) {
this.screenitemids = screenitemids;
}
/**
* Gets noInheritance.
*
* @return Value of noInheritance.
*/
public Boolean getNoInheritance() {
return noInheritance;
}
/**
* Sets new noInheritance.
*
* @param noInheritance New value of noInheritance.
*/
public void setNoInheritance(Boolean noInheritance) {
this.noInheritance = noInheritance;
}
/**
* Gets screenids.
*
* @return Value of screenids.
*/
public List getScreenids() {
return screenids;
}
/**
* Sets new screenids.
*
* @param screenids New value of screenids.
*/
public void setScreenids(List screenids) {
this.screenids = screenids;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy