public class HostSnmpConfigSpec extends DynamicData
Java class for HostSnmpConfigSpec complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="HostSnmpConfigSpec">
<complexContent>
<extension base="{urn:vim25}DynamicData">
<sequence>
<element name="enabled" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
<element name="port" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
<element name="readOnlyCommunities" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
<element name="trapTargets" type="{urn:vim25}HostSnmpDestination" maxOccurs="unbounded" minOccurs="0"/>
<element name="option" type="{urn:vim25}KeyValue" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
enabled |
protected List<KeyValue> |
option |
protected Integer |
port |
protected List<String> |
readOnlyCommunities |
protected List<HostSnmpDestination> |
trapTargets |
| Constructor and Description |
|---|
HostSnmpConfigSpec() |
| Modifier and Type | Method and Description |
|---|---|
List<KeyValue> |
getOption()
Gets the value of the option property.
|
Integer |
getPort()
Gets the value of the port property.
|
List<String> |
getReadOnlyCommunities()
Gets the value of the readOnlyCommunities property.
|
List<HostSnmpDestination> |
getTrapTargets()
Gets the value of the trapTargets property.
|
Boolean |
isEnabled()
Gets the value of the enabled property.
|
void |
setEnabled(Boolean value)
Sets the value of the enabled property.
|
void |
setPort(Integer value)
Sets the value of the port property.
|
protected Boolean enabled
protected Integer port
protected List<HostSnmpDestination> trapTargets
public Boolean isEnabled()
Booleanpublic void setEnabled(Boolean value)
value - allowed object is
Booleanpublic Integer getPort()
Integerpublic void setPort(Integer value)
value - allowed object is
Integerpublic List<String> getReadOnlyCommunities()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the readOnlyCommunities property.
For example, to add a new item, do as follows:
getReadOnlyCommunities().add(newItem);
Objects of the following type(s) are allowed in the list
String
public List<HostSnmpDestination> getTrapTargets()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the trapTargets property.
For example, to add a new item, do as follows:
getTrapTargets().add(newItem);
Objects of the following type(s) are allowed in the list
HostSnmpDestination
public List<KeyValue> getOption()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the option property.
For example, to add a new item, do as follows:
getOption().add(newItem);
Objects of the following type(s) are allowed in the list
KeyValue
Copyright © 2018. All rights reserved.