All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.azure.management.trafficmanager.DnsConfig Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure Traffic Manager Management SDK. A new set of management libraries are now Generally Available. For documentation on how to use the new libraries, please see https://aka.ms/azsdk/java/mgmt

There is a newer version: 1.41.4
Show newest version
/**
 * 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.
 */
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.
     */
    @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.
     */
    @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.
     */
    @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.
     *
     * @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.
     *
     * @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.
     *
     * @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.
     *
     * @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.
     *
     * @param ttl the ttl value to set
     * @return the DnsConfig object itself.
     */
    public DnsConfig withTtl(Long ttl) {
        this.ttl = ttl;
        return this;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy