com.vmware.vim25.NetDnsConfigInfo Maven / Gradle / Ivy
package com.vmware.vim25;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for NetDnsConfigInfo complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="NetDnsConfigInfo">
* <complexContent>
* <extension base="{urn:vim25}DynamicData">
* <sequence>
* <element name="dhcp" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
* <element name="hostName" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="domainName" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="ipAddress" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
* <element name="searchDomain" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "NetDnsConfigInfo", propOrder = {
"dhcp",
"hostName",
"domainName",
"ipAddress",
"searchDomain"
})
public class NetDnsConfigInfo
extends DynamicData
{
protected boolean dhcp;
@XmlElement(required = true)
protected String hostName;
@XmlElement(required = true)
protected String domainName;
protected List ipAddress;
protected List searchDomain;
/**
* Gets the value of the dhcp property.
*
*/
public boolean isDhcp() {
return dhcp;
}
/**
* Sets the value of the dhcp property.
*
*/
public void setDhcp(boolean value) {
this.dhcp = value;
}
/**
* Gets the value of the hostName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getHostName() {
return hostName;
}
/**
* Sets the value of the hostName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setHostName(String value) {
this.hostName = value;
}
/**
* Gets the value of the domainName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDomainName() {
return domainName;
}
/**
* Sets the value of the domainName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDomainName(String value) {
this.domainName = value;
}
/**
* Gets the value of the ipAddress property.
*
*
* 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 ipAddress property.
*
*
* For example, to add a new item, do as follows:
*
* getIpAddress().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List getIpAddress() {
if (ipAddress == null) {
ipAddress = new ArrayList();
}
return this.ipAddress;
}
/**
* Gets the value of the searchDomain property.
*
*
* 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 searchDomain property.
*
*
* For example, to add a new item, do as follows:
*
* getSearchDomain().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List getSearchDomain() {
if (searchDomain == null) {
searchDomain = new ArrayList();
}
return this.searchDomain;
}
}