SiteDnsConfig Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. SiteDnsConfig
- com.
Implements
public final class SiteDnsConfig
implements JsonSerializable<SiteDnsConfig>
The SiteDnsConfig model.
Constructor Summary
Constructor | Description |
---|---|
SiteDnsConfig() |
Creates an instance of Site |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
dnsAltServer()
Get the dns |
Boolean |
dnsLegacySortOrder()
Get the dns |
Integer |
dnsMaxCacheTimeout()
Get the dns |
Integer |
dnsRetryAttemptCount()
Get the dns |
Integer |
dnsRetryAttemptTimeout()
Get the dns |
List<String> |
dnsServers()
Get the dns |
static
Site |
fromJson(JsonReader jsonReader)
Reads an instance of Site |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Site |
withDnsAltServer(String dnsAltServer)
Set the dns |
Site |
withDnsMaxCacheTimeout(Integer dnsMaxCacheTimeout)
Set the dns |
Site |
withDnsRetryAttemptCount(Integer dnsRetryAttemptCount)
Set the dns |
Site |
withDnsRetryAttemptTimeout(Integer dnsRetryAttemptTimeout)
Set the dns |
Site |
withDnsServers(List<String> dnsServers)
Set the dns |
Methods inherited from java.lang.Object
Constructor Details
SiteDnsConfig
public SiteDnsConfig()
Creates an instance of SiteDnsConfig class.
Method Details
dnsAltServer
public String dnsAltServer()
Get the dnsAltServer property: Alternate DNS server to be used by apps. This property replicates the WEBSITE_DNS_ALT_SERVER app setting.
Returns:
dnsLegacySortOrder
public Boolean dnsLegacySortOrder()
Get the dnsLegacySortOrder property: Indicates that sites using Virtual network custom DNS servers are still sorting the list of DNS servers. Read-Only.
Returns:
dnsMaxCacheTimeout
public Integer dnsMaxCacheTimeout()
Get the dnsMaxCacheTimeout property: Custom time for DNS to be cached in seconds. Allowed range: 0-60. Default is 30 seconds. 0 means caching disabled.
Returns:
dnsRetryAttemptCount
public Integer dnsRetryAttemptCount()
Get the dnsRetryAttemptCount property: Total number of retries for dns lookup. Allowed range: 1-5. Default is 3.
Returns:
dnsRetryAttemptTimeout
public Integer dnsRetryAttemptTimeout()
Get the dnsRetryAttemptTimeout property: Timeout for a single dns lookup in seconds. Allowed range: 1-30. Default is 3.
Returns:
dnsServers
public List
Get the dnsServers property: List of custom DNS servers to be used by an app for lookups. Maximum 5 dns servers can be set.
Returns:
fromJson
public static SiteDnsConfig fromJson(JsonReader jsonReader)
Reads an instance of SiteDnsConfig from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
withDnsAltServer
public SiteDnsConfig withDnsAltServer(String dnsAltServer)
Set the dnsAltServer property: Alternate DNS server to be used by apps. This property replicates the WEBSITE_DNS_ALT_SERVER app setting.
Parameters:
Returns:
withDnsMaxCacheTimeout
public SiteDnsConfig withDnsMaxCacheTimeout(Integer dnsMaxCacheTimeout)
Set the dnsMaxCacheTimeout property: Custom time for DNS to be cached in seconds. Allowed range: 0-60. Default is 30 seconds. 0 means caching disabled.
Parameters:
Returns:
withDnsRetryAttemptCount
public SiteDnsConfig withDnsRetryAttemptCount(Integer dnsRetryAttemptCount)
Set the dnsRetryAttemptCount property: Total number of retries for dns lookup. Allowed range: 1-5. Default is 3.
Parameters:
Returns:
withDnsRetryAttemptTimeout
public SiteDnsConfig withDnsRetryAttemptTimeout(Integer dnsRetryAttemptTimeout)
Set the dnsRetryAttemptTimeout property: Timeout for a single dns lookup in seconds. Allowed range: 1-30. Default is 3.
Parameters:
Returns:
withDnsServers
public SiteDnsConfig withDnsServers(List
Set the dnsServers property: List of custom DNS servers to be used by an app for lookups. Maximum 5 dns servers can be set.
Parameters:
Returns:
Applies to
Azure SDK for Java