DhcpOptions Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. DhcpOptions
- com.
Implements
public final class DhcpOptions
implements JsonSerializable<DhcpOptions>
DhcpOptions contains an array of DNS servers available to VMs deployed in the virtual network. Standard DHCP option for a subnet overrides VNET DHCP options.
Constructor Summary
Constructor | Description |
---|---|
DhcpOptions() |
Creates an instance of Dhcp |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<String> |
dnsServers()
Get the dns |
static
Dhcp |
fromJson(JsonReader jsonReader)
Reads an instance of Dhcp |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Dhcp |
withDnsServers(List<String> dnsServers)
Set the dns |
Methods inherited from java.lang.Object
Constructor Details
DhcpOptions
public DhcpOptions()
Creates an instance of DhcpOptions class.
Method Details
dnsServers
public List
Get the dnsServers property: The list of DNS servers IP addresses.
Returns:
fromJson
public static DhcpOptions fromJson(JsonReader jsonReader)
Reads an instance of DhcpOptions from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
withDnsServers
public DhcpOptions withDnsServers(List
Set the dnsServers property: The list of DNS servers IP addresses.
Parameters:
Returns:
Applies to
Azure SDK for Java