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

com.zabbix4j.host.HostGetRequest Maven / Gradle / Ivy

There is a newer version: 0.1.9
Show newest version
/*
 * The MIT License (MIT)
 *
 * Copyright (c) 2014 Suguru Yajima
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

package com.zabbix4j.host;

import com.zabbix4j.GetRequestCommonParams;
import com.zabbix4j.ZabbixApiRequest;
import com.zabbix4j.utils.ZbxListUtils;

import java.util.List;

/**
 * Created by Suguru Yajima on 2014/05/02.
 */
public class HostGetRequest extends ZabbixApiRequest {

    private Params params = new Params();

    public HostGetRequest() {
        setMethod("host.get");
    }

    public Params getParams() {
        return params;
    }

    public void setParams(Params params) {
        this.params = params;
    }

    public class Params extends GetRequestCommonParams {
        private List groupids;
        private List applicationids;
        private List dserviceids;
        private List graphids;
        private List hostids;
        private List httptestids;
        private List interfaceids;
        private List itemids;
        private List maintenanceids;
        private boolean monitored_hosts;
        private boolean proxy_hosts;
        private List proxyids;
        private boolean templated_hosts;
        private List templateids;
        private List triggerids;
        private String selectGroups;
        private String selectApplications;
        private String selectDiscoveries;
        private String selectDiscoveryRule;
        private String selectGraphs;
        private String selectHostDiscovery;
        private String selectHttpTests;
        private String selectInterfaces;
        private String selectInventory;
        private String selectItems;
        private String selectMacros;
        private String selectParentTemplates;
        private String selectScreens;
        private String selectTriggers;

        public Params() {
        }

        public String getSelectGroups() {
            return selectGroups;
        }

        public void setSelectGroups(String selectGroups) {
            this.selectGroups = selectGroups;
        }

        public String getSelectApplications() {
            return selectApplications;
        }

        public void setSelectApplications(String selectApplications) {
            this.selectApplications = selectApplications;
        }

        public String getSelectDiscoveries() {
            return selectDiscoveries;
        }

        public void setSelectDiscoveries(String selectDiscoveries) {
            this.selectDiscoveries = selectDiscoveries;
        }

        public String getSelectDiscoveryRule() {
            return selectDiscoveryRule;
        }

        public void setSelectDiscoveryRule(String selectDiscoveryRule) {
            this.selectDiscoveryRule = selectDiscoveryRule;
        }

        public String getSelectGraphs() {
            return selectGraphs;
        }

        public void setSelectGraphs(String selectGraphs) {
            this.selectGraphs = selectGraphs;
        }

        public String getSelectHostDiscovery() {
            return selectHostDiscovery;
        }

        public void setSelectHostDiscovery(String selectHostDiscovery) {
            this.selectHostDiscovery = selectHostDiscovery;
        }

        public String getSelectHttpTests() {
            return selectHttpTests;
        }

        public void setSelectHttpTests(String selectHttpTests) {
            this.selectHttpTests = selectHttpTests;
        }

        public String getSelectInterfaces() {
            return selectInterfaces;
        }

        public void setSelectInterfaces(String selectInterfaces) {
            this.selectInterfaces = selectInterfaces;
        }

        public String getSelectInventory() {
            return selectInventory;
        }

        public void setSelectInventory(String selectInventory) {
            this.selectInventory = selectInventory;
        }

        public String getSelectItems() {
            return selectItems;
        }

        public void setSelectItems(String selectItems) {
            this.selectItems = selectItems;
        }

        public String getSelectMacros() {
            return selectMacros;
        }

        public void setSelectMacros(String selectMacros) {
            this.selectMacros = selectMacros;
        }

        public String getSelectParentTemplates() {
            return selectParentTemplates;
        }

        public void setSelectParentTemplates(String selectParentTemplates) {
            this.selectParentTemplates = selectParentTemplates;
        }

        public String getSelectScreens() {
            return selectScreens;
        }

        public void setSelectScreens(String selectScreens) {
            this.selectScreens = selectScreens;
        }

        public String getSelectTriggers() {
            return selectTriggers;
        }

        public void setSelectTriggers(String selectTriggers) {
            this.selectTriggers = selectTriggers;
        }

        public void setApplicationId(int id) {
            applicationids = ZbxListUtils.add(applicationids, id);
        }

        public List getGroupids() {
            return groupids;
        }

        public void setGroupids(List groupids) {
            this.groupids = groupids;
        }

        public List getApplicationids() {
            return applicationids;
        }

        public void setApplicationids(List applicationids) {
            this.applicationids = applicationids;
        }

        public List getDserviceids() {
            return dserviceids;
        }

        public void setDserviceids(List dserviceids) {
            this.dserviceids = dserviceids;
        }

        public List getGraphids() {
            return graphids;
        }

        public void setGraphids(List graphids) {
            this.graphids = graphids;
        }

        public List getHostids() {
            return hostids;
        }

        public void setHostids(List hostids) {
            this.hostids = hostids;
        }

        public List getHttptestids() {
            return httptestids;
        }

        public void setHttptestids(List httptestids) {
            this.httptestids = httptestids;
        }

        public List getInterfaceids() {
            return interfaceids;
        }

        public void setInterfaceids(List interfaceids) {
            this.interfaceids = interfaceids;
        }

        public List getItemids() {
            return itemids;
        }

        public void setItemids(List itemids) {
            this.itemids = itemids;
        }

        public List getMaintenanceids() {
            return maintenanceids;
        }

        public void setMaintenanceids(List maintenanceids) {
            this.maintenanceids = maintenanceids;
        }

        public List getProxyids() {
            return proxyids;
        }

        public void setProxyids(List proxyids) {
            this.proxyids = proxyids;
        }

        public List getTemplateids() {
            return templateids;
        }

        public void setTemplateids(List templateids) {
            this.templateids = templateids;
        }

        public List getTriggerids() {
            return triggerids;
        }

        public void setTriggerids(List triggerids) {
            this.triggerids = triggerids;
        }

        public boolean isProxy_hosts() {

            return proxy_hosts;
        }

        public void setProxy_hosts(boolean proxy_hosts) {
            this.proxy_hosts = proxy_hosts;
        }

        public boolean isMonitored_hosts() {
            return monitored_hosts;
        }

        public void setMonitored_hosts(boolean monitored_hosts) {
            this.monitored_hosts = monitored_hosts;
        }

        public boolean isTemplated_hosts() {
            return templated_hosts;
        }

        public void setTemplated_hosts(boolean templated_hosts) {
            this.templated_hosts = templated_hosts;
        }

        public void setDserviceId(int id) {
            dserviceids = ZbxListUtils.add(dserviceids, id);
        }

        public void setGraphId(int id) {
            graphids = ZbxListUtils.add(graphids, id);
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy