// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.dns.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** An NS record. */
@Fluent
public final class NsRecord {
    /*
     * The name server name for this NS record.
     */
    @JsonProperty(value = "nsdname")
    private String nsdname;

    /** Creates an instance of NsRecord class. */
    public NsRecord() {
    }

    /**
     * Get the nsdname property: The name server name for this NS record.
     *
     * @return the nsdname value.
     */
    public String nsdname() {
        return this.nsdname;
    }

    /**
     * Set the nsdname property: The name server name for this NS record.
     *
     * @param nsdname the nsdname value to set.
     * @return the NsRecord object itself.
     */
    public NsRecord withNsdname(String nsdname) {
        this.nsdname = nsdname;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
