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

package com.azure.resourcemanager.privatedns.models;

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

/** A PTR record. */
@Fluent
public final class PtrRecord {
    /*
     * The PTR target domain name for this PTR record.
     */
    @JsonProperty(value = "ptrdname")
    private String ptrdname;

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

    /**
     * Get the ptrdname property: The PTR target domain name for this PTR record.
     *
     * @return the ptrdname value.
     */
    public String ptrdname() {
        return this.ptrdname;
    }

    /**
     * Set the ptrdname property: The PTR target domain name for this PTR record.
     *
     * @param ptrdname the ptrdname value to set.
     * @return the PtrRecord object itself.
     */
    public PtrRecord withPtrdname(String ptrdname) {
        this.ptrdname = ptrdname;
        return this;
    }

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