// 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;

/** A CNAME record. */
@Fluent
public final class CnameRecord {
    /*
     * The canonical name for this CNAME record.
     */
    @JsonProperty(value = "cname")
    private String cname;

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

    /**
     * Get the cname property: The canonical name for this CNAME record.
     *
     * @return the cname value.
     */
    public String cname() {
        return this.cname;
    }

    /**
     * Set the cname property: The canonical name for this CNAME record.
     *
     * @param cname the cname value to set.
     * @return the CnameRecord object itself.
     */
    public CnameRecord withCname(String cname) {
        this.cname = cname;
        return this;
    }

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