Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.trafficmanager; import com.fasterxml.jackson.annotation.JsonProperty;
Class containing DNS settings in a Traffic Manager profile.
/** * Class containing DNS settings in a Traffic Manager profile. */
public class DnsConfig {
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.
/** * 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. */
@JsonProperty(value = "relativeName") private String relativeName;
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.
/** * 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. */
@JsonProperty(value = "fqdn", access = JsonProperty.Access.WRITE_ONLY) private String fqdn;
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.
/** * 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. */
@JsonProperty(value = "ttl") private Long ttl;
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
/** * 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. * * @return the relativeName value */
public String relativeName() { return this.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.
Params:
  • relativeName – the relativeName value to set
Returns:the DnsConfig object itself.
/** * 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. * * @param relativeName the relativeName value to set * @return the DnsConfig object itself. */
public DnsConfig withRelativeName(String relativeName) { this.relativeName = relativeName; return this; }
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
/** * 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. * * @return the fqdn value */
public String fqdn() { return this.fqdn; }
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
/** * 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. * * @return the ttl value */
public Long ttl() { return this.ttl; }
Set 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.
Params:
  • ttl – the ttl value to set
Returns:the DnsConfig object itself.
/** * Set 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. * * @param ttl the ttl value to set * @return the DnsConfig object itself. */
public DnsConfig withTtl(Long ttl) { this.ttl = ttl; return this; } }