Class DnsConfig
- java.lang.Object
-
- com.microsoft.azure.management.trafficmanager.DnsConfig
-
public class DnsConfig extends Object
Class containing DNS settings in a Traffic Manager profile.
-
-
Constructor Summary
Constructors Constructor Description DnsConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringfqdn()Get the fully-qualified domain name (FQDN) of the Traffic Manager profile.StringrelativeName()Get the relative DNS name provided by this Traffic Manager profile.Longttl()Get the DNS Time-To-Live (TTL), in seconds.DnsConfigwithRelativeName(String relativeName)Set the relative DNS name provided by this Traffic Manager profile.DnsConfigwithTtl(Long ttl)Set the DNS Time-To-Live (TTL), in seconds.
-
-
-
Method Detail
-
relativeName
public String relativeName()
Get 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:
- the relativeName value
-
withRelativeName
public DnsConfig withRelativeName(String relativeName)
Set 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:
relativeName- the relativeName value to set- Returns:
- the DnsConfig object itself.
-
fqdn
public String fqdn()
Get 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:
- the fqdn value
-
ttl
public Long ttl()
Get 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:
- the ttl value
-
-