DnsConfiguration Class
- java.
lang. Object - com.
azure. resourcemanager. containerinstance. models. DnsConfiguration
- com.
public final class DnsConfiguration
DNS configuration for the container group.
Constructor Summary
Constructor | Description |
---|---|
DnsConfiguration() |
Creates an instance of Dns |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<String> |
nameServers()
Get the name |
String |
options()
Get the options property: The DNS options for the container group. |
String |
searchDomains()
Get the search |
void |
validate()
Validates the instance. |
Dns |
withNameServers(List<String> nameServers)
Set the name |
Dns |
withOptions(String options)
Set the options property: The DNS options for the container group. |
Dns |
withSearchDomains(String searchDomains)
Set the search |
Methods inherited from java.lang.Object
Constructor Details
DnsConfiguration
public DnsConfiguration()
Creates an instance of DnsConfiguration class.
Method Details
nameServers
public List
Get the nameServers property: The DNS servers for the container group.
Returns:
options
public String options()
Get the options property: The DNS options for the container group.
Returns:
searchDomains
public String searchDomains()
Get the searchDomains property: The DNS search domains for hostname lookup in the container group.
Returns:
validate
public void validate()
Validates the instance.
withNameServers
public DnsConfiguration withNameServers(List
Set the nameServers property: The DNS servers for the container group.
Parameters:
Returns:
withOptions
public DnsConfiguration withOptions(String options)
Set the options property: The DNS options for the container group.
Parameters:
Returns:
withSearchDomains
public DnsConfiguration withSearchDomains(String searchDomains)
Set the searchDomains property: The DNS search domains for hostname lookup in the container group.
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