DhcpOptions Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. DhcpOptions
- com.
public final class 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 |
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:
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for