Class LocalDnsOverride
java.lang.Object
com.azure.resourcemanager.containerservice.models.LocalDnsOverride
- All Implemented Interfaces:
com.azure.json.JsonSerializable<LocalDnsOverride>
public final class LocalDnsOverride
extends Object
implements com.azure.json.JsonSerializable<LocalDnsOverride>
Overrides for localDNS profile.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the cacheDurationInSeconds property: Cache max TTL in seconds.Get the forwardDestination property: Destination server for DNS queries to be forwarded from localDNS.Get the forwardPolicy property: Forward policy for selecting upstream DNS server.static LocalDnsOverridefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of LocalDnsOverride from the JsonReader.Get the maxConcurrent property: Maximum number of concurrent queries.protocol()Get the protocol property: Enforce TCP or prefer UDP protocol for connections from localDNS to upstream DNS server.Get the queryLogging property: Log level for DNS queries in localDNS.Get the serveStale property: Policy for serving stale data.Get the serveStaleDurationInSeconds property: Serve stale duration in seconds.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCacheDurationInSeconds(Integer cacheDurationInSeconds) Set the cacheDurationInSeconds property: Cache max TTL in seconds.withForwardDestination(LocalDnsForwardDestination forwardDestination) Set the forwardDestination property: Destination server for DNS queries to be forwarded from localDNS.withForwardPolicy(LocalDnsForwardPolicy forwardPolicy) Set the forwardPolicy property: Forward policy for selecting upstream DNS server.withMaxConcurrent(Integer maxConcurrent) Set the maxConcurrent property: Maximum number of concurrent queries.withProtocol(LocalDnsProtocol protocol) Set the protocol property: Enforce TCP or prefer UDP protocol for connections from localDNS to upstream DNS server.withQueryLogging(LocalDnsQueryLogging queryLogging) Set the queryLogging property: Log level for DNS queries in localDNS.withServeStale(LocalDnsServeStale serveStale) Set the serveStale property: Policy for serving stale data.withServeStaleDurationInSeconds(Integer serveStaleDurationInSeconds) Set the serveStaleDurationInSeconds property: Serve stale duration in seconds.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
LocalDnsOverride
public LocalDnsOverride()Creates an instance of LocalDnsOverride class.
-
-
Method Details
-
queryLogging
Get the queryLogging property: Log level for DNS queries in localDNS.- Returns:
- the queryLogging value.
-
withQueryLogging
Set the queryLogging property: Log level for DNS queries in localDNS.- Parameters:
queryLogging- the queryLogging value to set.- Returns:
- the LocalDnsOverride object itself.
-
protocol
Get the protocol property: Enforce TCP or prefer UDP protocol for connections from localDNS to upstream DNS server.- Returns:
- the protocol value.
-
withProtocol
Set the protocol property: Enforce TCP or prefer UDP protocol for connections from localDNS to upstream DNS server.- Parameters:
protocol- the protocol value to set.- Returns:
- the LocalDnsOverride object itself.
-
forwardDestination
Get the forwardDestination property: Destination server for DNS queries to be forwarded from localDNS.- Returns:
- the forwardDestination value.
-
withForwardDestination
Set the forwardDestination property: Destination server for DNS queries to be forwarded from localDNS.- Parameters:
forwardDestination- the forwardDestination value to set.- Returns:
- the LocalDnsOverride object itself.
-
forwardPolicy
Get the forwardPolicy property: Forward policy for selecting upstream DNS server. See [forward plugin](https://coredns.io/plugins/forward) for more information.- Returns:
- the forwardPolicy value.
-
withForwardPolicy
Set the forwardPolicy property: Forward policy for selecting upstream DNS server. See [forward plugin](https://coredns.io/plugins/forward) for more information.- Parameters:
forwardPolicy- the forwardPolicy value to set.- Returns:
- the LocalDnsOverride object itself.
-
maxConcurrent
Get the maxConcurrent property: Maximum number of concurrent queries. See [forward plugin](https://coredns.io/plugins/forward) for more information.- Returns:
- the maxConcurrent value.
-
withMaxConcurrent
Set the maxConcurrent property: Maximum number of concurrent queries. See [forward plugin](https://coredns.io/plugins/forward) for more information.- Parameters:
maxConcurrent- the maxConcurrent value to set.- Returns:
- the LocalDnsOverride object itself.
-
cacheDurationInSeconds
Get the cacheDurationInSeconds property: Cache max TTL in seconds. See [cache plugin](https://coredns.io/plugins/cache) for more information.- Returns:
- the cacheDurationInSeconds value.
-
withCacheDurationInSeconds
Set the cacheDurationInSeconds property: Cache max TTL in seconds. See [cache plugin](https://coredns.io/plugins/cache) for more information.- Parameters:
cacheDurationInSeconds- the cacheDurationInSeconds value to set.- Returns:
- the LocalDnsOverride object itself.
-
serveStaleDurationInSeconds
Get the serveStaleDurationInSeconds property: Serve stale duration in seconds. See [cache plugin](https://coredns.io/plugins/cache) for more information.- Returns:
- the serveStaleDurationInSeconds value.
-
withServeStaleDurationInSeconds
Set the serveStaleDurationInSeconds property: Serve stale duration in seconds. See [cache plugin](https://coredns.io/plugins/cache) for more information.- Parameters:
serveStaleDurationInSeconds- the serveStaleDurationInSeconds value to set.- Returns:
- the LocalDnsOverride object itself.
-
serveStale
Get the serveStale property: Policy for serving stale data. See [cache plugin](https://coredns.io/plugins/cache) for more information.- Returns:
- the serveStale value.
-
withServeStale
Set the serveStale property: Policy for serving stale data. See [cache plugin](https://coredns.io/plugins/cache) for more information.- Parameters:
serveStale- the serveStale value to set.- Returns:
- the LocalDnsOverride object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<LocalDnsOverride>- Throws:
IOException
-
fromJson
Reads an instance of LocalDnsOverride from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of LocalDnsOverride if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the LocalDnsOverride.
-