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

com.microsoft.azure.management.network.NetworkInterfaceDnsSettings Maven / Gradle / Ivy

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.network;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * DNS settings of a network interface.
 */
public class NetworkInterfaceDnsSettings {
    /**
     * List of DNS servers IP addresses. Use 'AzureProvidedDNS' to switch to
     * azure provided DNS resolution. 'AzureProvidedDNS' value cannot be
     * combined with other IPs, it must be the only value in dnsServers
     * collection.
     */
    @JsonProperty(value = "dnsServers")
    private List dnsServers;

    /**
     * If the VM that uses this NIC is part of an Availability Set, then this
     * list will have the union of all DNS servers from all NICs that are part
     * of the Availability Set. This property is what is configured on each of
     * those VMs.
     */
    @JsonProperty(value = "appliedDnsServers")
    private List appliedDnsServers;

    /**
     * Relative DNS name for this NIC used for internal communications between
     * VMs in the same virtual network.
     */
    @JsonProperty(value = "internalDnsNameLabel")
    private String internalDnsNameLabel;

    /**
     * Fully qualified DNS name supporting internal communications between VMs
     * in the same virtual network.
     */
    @JsonProperty(value = "internalFqdn")
    private String internalFqdn;

    /**
     * Even if internalDnsNameLabel is not specified, a DNS entry is created
     * for the primary NIC of the VM. This DNS name can be constructed by
     * concatenating the VM name with the value of internalDomainNameSuffix.
     */
    @JsonProperty(value = "internalDomainNameSuffix")
    private String internalDomainNameSuffix;

    /**
     * Get the dnsServers value.
     *
     * @return the dnsServers value
     */
    public List dnsServers() {
        return this.dnsServers;
    }

    /**
     * Set the dnsServers value.
     *
     * @param dnsServers the dnsServers value to set
     * @return the NetworkInterfaceDnsSettings object itself.
     */
    public NetworkInterfaceDnsSettings withDnsServers(List dnsServers) {
        this.dnsServers = dnsServers;
        return this;
    }

    /**
     * Get the appliedDnsServers value.
     *
     * @return the appliedDnsServers value
     */
    public List appliedDnsServers() {
        return this.appliedDnsServers;
    }

    /**
     * Set the appliedDnsServers value.
     *
     * @param appliedDnsServers the appliedDnsServers value to set
     * @return the NetworkInterfaceDnsSettings object itself.
     */
    public NetworkInterfaceDnsSettings withAppliedDnsServers(List appliedDnsServers) {
        this.appliedDnsServers = appliedDnsServers;
        return this;
    }

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

    /**
     * Set the internalDnsNameLabel value.
     *
     * @param internalDnsNameLabel the internalDnsNameLabel value to set
     * @return the NetworkInterfaceDnsSettings object itself.
     */
    public NetworkInterfaceDnsSettings withInternalDnsNameLabel(String internalDnsNameLabel) {
        this.internalDnsNameLabel = internalDnsNameLabel;
        return this;
    }

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

    /**
     * Set the internalFqdn value.
     *
     * @param internalFqdn the internalFqdn value to set
     * @return the NetworkInterfaceDnsSettings object itself.
     */
    public NetworkInterfaceDnsSettings withInternalFqdn(String internalFqdn) {
        this.internalFqdn = internalFqdn;
        return this;
    }

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

    /**
     * Set the internalDomainNameSuffix value.
     *
     * @param internalDomainNameSuffix the internalDomainNameSuffix value to set
     * @return the NetworkInterfaceDnsSettings object itself.
     */
    public NetworkInterfaceDnsSettings withInternalDomainNameSuffix(String internalDomainNameSuffix) {
        this.internalDomainNameSuffix = internalDomainNameSuffix;
        return this;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy