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

com.softlayer.api.service.hardware.Group Maven / Gradle / Ivy

There is a newer version: 0.3.4
Show newest version
package com.softlayer.api.service.hardware;

import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.Hardware;
import com.softlayer.api.service.hardware.Chassis;
import com.softlayer.api.service.virtual.Guest;
import java.util.ArrayList;
import java.util.List;

/**
 * @see SoftLayer_Hardware_Group
 */
@ApiType("SoftLayer_Hardware_Group")
public class Group extends Entity {

    /**
     * All servers attached to a network hardware.
     */
    @ApiProperty
    protected List downlinkServers;

    public List getDownlinkServers() {
        if (downlinkServers == null) {
            downlinkServers = new ArrayList();
        }
        return downlinkServers;
    }

    /**
     * All virtual guests attached to a network hardware.
     */
    @ApiProperty
    protected List downlinkVirtualGuests;

    public List getDownlinkVirtualGuests() {
        if (downlinkVirtualGuests == null) {
            downlinkVirtualGuests = new ArrayList();
        }
        return downlinkVirtualGuests;
    }

    /**
     * All network hardware downstream from this hardware.
     */
    @ApiProperty
    protected List downstreamNetworkHardware;

    public List getDownstreamNetworkHardware() {
        if (downstreamNetworkHardware == null) {
            downstreamNetworkHardware = new ArrayList();
        }
        return downstreamNetworkHardware;
    }

    /**
     * All network hardware with monitoring warnings or errors downstream from this hardware.
     */
    @ApiProperty
    protected List downstreamNetworkHardwareWithIncidents;

    public List getDownstreamNetworkHardwareWithIncidents() {
        if (downstreamNetworkHardwareWithIncidents == null) {
            downstreamNetworkHardwareWithIncidents = new ArrayList();
        }
        return downstreamNetworkHardwareWithIncidents;
    }

    /**
     * The chassis that a piece of hardware is housed in.
     */
    @ApiProperty
    protected Chassis hardwareChassis;

    public Chassis getHardwareChassis() {
        return hardwareChassis;
    }

    public void setHardwareChassis(Chassis hardwareChassis) {
        this.hardwareChassis = hardwareChassis;
    }

    /**
     * All servers attached downstream to a hardware that have failed monitoring
     */
    @ApiProperty
    protected List networkMonitorAttachedDownHardware;

    public List getNetworkMonitorAttachedDownHardware() {
        if (networkMonitorAttachedDownHardware == null) {
            networkMonitorAttachedDownHardware = new ArrayList();
        }
        return networkMonitorAttachedDownHardware;
    }

    /**
     * Virtual guests that are attached downstream to a hardware that have failed monitoring
     */
    @ApiProperty
    protected List networkMonitorAttachedDownVirtualGuests;

    public List getNetworkMonitorAttachedDownVirtualGuests() {
        if (networkMonitorAttachedDownVirtualGuests == null) {
            networkMonitorAttachedDownVirtualGuests = new ArrayList();
        }
        return networkMonitorAttachedDownVirtualGuests;
    }

    /**
     * The value of a hardware's network status attribute.
     */
    @ApiProperty
    protected String networkStatus;

    public String getNetworkStatus() {
        return networkStatus;
    }

    public void setNetworkStatus(String networkStatus) {
        this.networkStatus = networkStatus;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected String domain;

    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        domainSpecified = true;
        this.domain = domain;
    }

    protected boolean domainSpecified;

    public boolean isDomainSpecified() {
        return domainSpecified;
    }

    public void unsetDomain() {
        domain = null;
        domainSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected String hostname;

    public String getHostname() {
        return hostname;
    }

    public void setHostname(String hostname) {
        hostnameSpecified = true;
        this.hostname = hostname;
    }

    protected boolean hostnameSpecified;

    public boolean isHostnameSpecified() {
        return hostnameSpecified;
    }

    public void unsetHostname() {
        hostname = null;
        hostnameSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected Long id;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        idSpecified = true;
        this.id = id;
    }

    protected boolean idSpecified;

    public boolean isIdSpecified() {
        return idSpecified;
    }

    public void unsetId() {
        id = null;
        idSpecified = false;
    }

    /**
     * A count of all servers attached to a network hardware.
     */
    @ApiProperty
    protected Long downlinkServerCount;

    public Long getDownlinkServerCount() {
        return downlinkServerCount;
    }

    public void setDownlinkServerCount(Long downlinkServerCount) {
        this.downlinkServerCount = downlinkServerCount;
    }

    /**
     * A count of all virtual guests attached to a network hardware.
     */
    @ApiProperty
    protected Long downlinkVirtualGuestCount;

    public Long getDownlinkVirtualGuestCount() {
        return downlinkVirtualGuestCount;
    }

    public void setDownlinkVirtualGuestCount(Long downlinkVirtualGuestCount) {
        this.downlinkVirtualGuestCount = downlinkVirtualGuestCount;
    }

    /**
     * A count of all network hardware downstream from this hardware.
     */
    @ApiProperty
    protected Long downstreamNetworkHardwareCount;

    public Long getDownstreamNetworkHardwareCount() {
        return downstreamNetworkHardwareCount;
    }

    public void setDownstreamNetworkHardwareCount(Long downstreamNetworkHardwareCount) {
        this.downstreamNetworkHardwareCount = downstreamNetworkHardwareCount;
    }

    /**
     * A count of all network hardware with monitoring warnings or errors downstream from this hardware.
     */
    @ApiProperty
    protected Long downstreamNetworkHardwareWithIncidentCount;

    public Long getDownstreamNetworkHardwareWithIncidentCount() {
        return downstreamNetworkHardwareWithIncidentCount;
    }

    public void setDownstreamNetworkHardwareWithIncidentCount(Long downstreamNetworkHardwareWithIncidentCount) {
        this.downstreamNetworkHardwareWithIncidentCount = downstreamNetworkHardwareWithIncidentCount;
    }

    /**
     * A count of all servers attached downstream to a hardware that have failed monitoring
     */
    @ApiProperty
    protected Long networkMonitorAttachedDownHardwareCount;

    public Long getNetworkMonitorAttachedDownHardwareCount() {
        return networkMonitorAttachedDownHardwareCount;
    }

    public void setNetworkMonitorAttachedDownHardwareCount(Long networkMonitorAttachedDownHardwareCount) {
        this.networkMonitorAttachedDownHardwareCount = networkMonitorAttachedDownHardwareCount;
    }

    /**
     * A count of virtual guests that are attached downstream to a hardware that have failed monitoring
     */
    @ApiProperty
    protected Long networkMonitorAttachedDownVirtualGuestCount;

    public Long getNetworkMonitorAttachedDownVirtualGuestCount() {
        return networkMonitorAttachedDownVirtualGuestCount;
    }

    public void setNetworkMonitorAttachedDownVirtualGuestCount(Long networkMonitorAttachedDownVirtualGuestCount) {
        this.networkMonitorAttachedDownVirtualGuestCount = networkMonitorAttachedDownVirtualGuestCount;
    }

    public static class Mask extends com.softlayer.api.service.Entity.Mask {

        public com.softlayer.api.service.Hardware.Mask downlinkServers() {
            return withSubMask("downlinkServers", com.softlayer.api.service.Hardware.Mask.class);
        }

        public com.softlayer.api.service.virtual.Guest.Mask downlinkVirtualGuests() {
            return withSubMask("downlinkVirtualGuests", com.softlayer.api.service.virtual.Guest.Mask.class);
        }

        public com.softlayer.api.service.Hardware.Mask downstreamNetworkHardware() {
            return withSubMask("downstreamNetworkHardware", com.softlayer.api.service.Hardware.Mask.class);
        }

        public com.softlayer.api.service.Hardware.Mask downstreamNetworkHardwareWithIncidents() {
            return withSubMask("downstreamNetworkHardwareWithIncidents", com.softlayer.api.service.Hardware.Mask.class);
        }

        public Chassis.Mask hardwareChassis() {
            return withSubMask("hardwareChassis", Chassis.Mask.class);
        }

        public com.softlayer.api.service.Hardware.Mask networkMonitorAttachedDownHardware() {
            return withSubMask("networkMonitorAttachedDownHardware", com.softlayer.api.service.Hardware.Mask.class);
        }

        public com.softlayer.api.service.virtual.Guest.Mask networkMonitorAttachedDownVirtualGuests() {
            return withSubMask("networkMonitorAttachedDownVirtualGuests", com.softlayer.api.service.virtual.Guest.Mask.class);
        }

        public Mask networkStatus() {
            withLocalProperty("networkStatus");
            return this;
        }

        public Mask domain() {
            withLocalProperty("domain");
            return this;
        }

        public Mask hostname() {
            withLocalProperty("hostname");
            return this;
        }

        public Mask id() {
            withLocalProperty("id");
            return this;
        }

        public Mask downlinkServerCount() {
            withLocalProperty("downlinkServerCount");
            return this;
        }

        public Mask downlinkVirtualGuestCount() {
            withLocalProperty("downlinkVirtualGuestCount");
            return this;
        }

        public Mask downstreamNetworkHardwareCount() {
            withLocalProperty("downstreamNetworkHardwareCount");
            return this;
        }

        public Mask downstreamNetworkHardwareWithIncidentCount() {
            withLocalProperty("downstreamNetworkHardwareWithIncidentCount");
            return this;
        }

        public Mask networkMonitorAttachedDownHardwareCount() {
            withLocalProperty("networkMonitorAttachedDownHardwareCount");
            return this;
        }

        public Mask networkMonitorAttachedDownVirtualGuestCount() {
            withLocalProperty("networkMonitorAttachedDownVirtualGuestCount");
            return this;
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy