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 {
    /**
     * Gets or sets 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;

    /**
     * Gets or sets 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")
    private String fqdn;

    /**
     * Gets or sets the DNS Ttime-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 relativeName value.
     *
     * @return the relativeName value
     */
    public String relativeName() {
        return this.relativeName;
    }

    /**
     * Set the relativeName value.
     *
     * @param relativeName the relativeName value to set
     * @return the DnsConfig object itself.
     */
    public DnsConfig withRelativeName(String relativeName) {
        this.relativeName = relativeName;
        return this;
    }

    /**
     * Get the fqdn value.
     *
     * @return the fqdn value
     */
    public String fqdn() {
        return this.fqdn;
    }

    /**
     * Set the fqdn value.
     *
     * @param fqdn the fqdn value to set
     * @return the DnsConfig object itself.
     */
    public DnsConfig withFqdn(String fqdn) {
        this.fqdn = fqdn;
        return this;
    }

    /**
     * Get the ttl value.
     *
     * @return the ttl value
     */
    public Long ttl() {
        return this.ttl;
    }

    /**
     * Set the ttl value.
     *
     * @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