Package com.uc4.api.objects
Class HostGroupItem
java.lang.Object
com.uc4.api.objects.HostGroupItem
This class represents a single filter entry in HOSTG objects.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionHostGroupItem
(String name) Constructs a newHostGroupItem
.protected
HostGroupItem
(Element row) -
Method Summary
Modifier and TypeMethodDescriptiongetName()
getRole()
void
setArchive1
(String archive1) Sets the first archive key of the host.void
setArchive2
(String archive2) Sets the second archive key of the host.void
setHardware
(String hardware) Sets the hardware text of the host.void
Sets the name of the host.void
setProductVersion
(String version) Sets the filter for the product version of the host.void
Sets the role of the host.void
setSoftware
(String software) Sets the Software filter for the host.void
setSoftwareVersion
(String softwareVersion) Sets the software version filter of the host.protected void
toString()
-
Constructor Details
-
HostGroupItem
-
HostGroupItem
Constructs a newHostGroupItem
. Every field int this filter is set to an empty string.- Parameters:
name
- Name of the host or filter expression
-
-
Method Details
-
getArchive1
- Returns:
- Text for the first archive key
-
getArchive2
- Returns:
- Text for the second archive key
-
getHardware
- Returns:
- String describing the hardware of the host
-
getName
- Returns:
- Hostname used for this filter
-
getRole
- Returns:
- Name of the role which is assiged to the host
-
getSoftware
- Returns:
- Software description of the host
-
getSoftwareVersion
- Returns:
- Software version of the host
-
getProductVersion
- Returns:
- Returns the product version of the Agent
-
setArchive1
Sets the first archive key of the host. Throws IllegalArgumentException if the parameter archive1 contains more than 512 characters.- Parameters:
archive1
- Archive Key
-
setArchive2
Sets the second archive key of the host. Throws IllegalArgumentException if the parameter archive1 contains more than 60 characters.- Parameters:
archive2
- Archive Key
-
setHardware
Sets the hardware text of the host. Throws IllegalArgumentException if the hardware has more than 32 characters.- Parameters:
hardware
- Text describing the hardware
-
setName
Sets the name of the host. Throws IllegalArgumentException if the name has more than 32 characters.- Parameters:
name
- Host name
-
setRole
Sets the role of the host. Throws IllegalArgumentException if the role name has more than 256 characters.- Parameters:
role
- Role name
-
setSoftware
Sets the Software filter for the host. Throws IllegalArgumentException if the software has more than 32 characters.- Parameters:
software
- Software filter
-
setSoftwareVersion
Sets the software version filter of the host. Throws IllegalArgumentException if the software version has more than 32 characters.- Parameters:
softwareVersion
- Filter for software version
-
setProductVersion
Sets the filter for the product version of the host. Throws IllegalArgumentException if the product version has more than 270 characters.- Parameters:
version
- Product version (for example 6.00A701-609)
-
toString
-
store
-