DnsConfig Class
- java.
lang. Object - com.
azure. resourcemanager. trafficmanager. models. DnsConfig
- com.
Implements
public final class DnsConfig
implements JsonSerializable<DnsConfig>
Class containing DNS settings in a Traffic Manager profile.
Constructor Summary
Constructor | Description |
---|---|
DnsConfig() |
Creates an instance of Dns |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
fqdn()
Get the fqdn property: The fully-qualified domain name (FQDN) of the Traffic Manager profile. |
static
Dns |
fromJson(JsonReader jsonReader)
Reads an instance of Dns |
String |
relativeName()
Get the relative |
Json |
toJson(JsonWriter jsonWriter) |
Long |
ttl()
Get the ttl property: The DNS Time-To-Live (TTL), in seconds. |
void |
validate()
Validates the instance. |
Dns |
withRelativeName(String relativeName)
Set the relative |
Dns |
withTtl(Long ttl)
Set the ttl property: The DNS Time-To-Live (TTL), in seconds. |
Methods inherited from java.lang.Object
Constructor Details
DnsConfig
public DnsConfig()
Creates an instance of DnsConfig class.
Method Details
fqdn
public String fqdn()
Get the fqdn property: The fully-qualified domain name (FQDN) of the Traffic Manager profile. This is formed from the concatenation of the RelativeName with the DNS domain used by Azure Traffic Manager.
Returns:
fromJson
public static DnsConfig fromJson(JsonReader jsonReader)
Reads an instance of DnsConfig from the JsonReader.
Parameters:
Returns:
Throws:
relativeName
public String relativeName()
Get the relativeName property: The relative DNS name provided by this Traffic Manager profile. This value is combined with the DNS domain name used by Azure Traffic Manager to form the fully-qualified domain name (FQDN) of the profile.
Returns:
toJson
ttl
public Long ttl()
Get the ttl property: The DNS Time-To-Live (TTL), in seconds. This informs the local DNS resolvers and DNS clients how long to cache DNS responses provided by this Traffic Manager profile.
Returns:
validate
public void validate()
Validates the instance.
withRelativeName
public DnsConfig withRelativeName(String relativeName)
Set the relativeName property: The relative DNS name provided by this Traffic Manager profile. This value is combined with the DNS domain name used by Azure Traffic Manager to form the fully-qualified domain name (FQDN) of the profile.
Parameters:
Returns:
withTtl
public DnsConfig withTtl(Long ttl)
Set the ttl property: The DNS Time-To-Live (TTL), in seconds. This informs the local DNS resolvers and DNS clients how long to cache DNS responses provided by this Traffic Manager profile.
Parameters:
Returns:
Applies to
Azure SDK for Java