/**
 * 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.v2020_04_01;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;

/**
 * PrivateDnsZoneConfig resource.
 */
@JsonFlatten
public class PrivateDnsZoneConfig {
    /**
     * Name of the resource that is unique within a resource group. This name
     * can be used to access the resource.
     */
    @JsonProperty(value = "name")
    private String name;

    /**
     * The resource id of the private dns zone.
     */
    @JsonProperty(value = "properties.privateDnsZoneId")
    private String privateDnsZoneId;

    /**
     * A collection of information regarding a recordSet, holding information
     * to identify private resources.
     */
    @JsonProperty(value = "properties.recordSets", access = JsonProperty.Access.WRITE_ONLY)
    private List<RecordSet> recordSets;

    /**
     * Get name of the resource that is unique within a resource group. This name can be used to access the resource.
     *
     * @return the name value
     */
    public String name() {
        return this.name;
    }

    /**
     * Set name of the resource that is unique within a resource group. This name can be used to access the resource.
     *
     * @param name the name value to set
     * @return the PrivateDnsZoneConfig object itself.
     */
    public PrivateDnsZoneConfig withName(String name) {
        this.name = name;
        return this;
    }

    /**
     * Get the resource id of the private dns zone.
     *
     * @return the privateDnsZoneId value
     */
    public String privateDnsZoneId() {
        return this.privateDnsZoneId;
    }

    /**
     * Set the resource id of the private dns zone.
     *
     * @param privateDnsZoneId the privateDnsZoneId value to set
     * @return the PrivateDnsZoneConfig object itself.
     */
    public PrivateDnsZoneConfig withPrivateDnsZoneId(String privateDnsZoneId) {
        this.privateDnsZoneId = privateDnsZoneId;
        return this;
    }

    /**
     * Get a collection of information regarding a recordSet, holding information to identify private resources.
     *
     * @return the recordSets value
     */
    public List<RecordSet> recordSets() {
        return this.recordSets;
    }

}
