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

package com.azure.resourcemanager.recoveryservices.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** DNSZone information for Microsoft.RecoveryServices. */
@Fluent
public final class DnsZoneResponse extends DnsZone {
    /*
     * The private link resource Private link DNS zone names.
     */
    @JsonProperty(value = "requiredZoneNames")
    private List<String> requiredZoneNames;

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

    /**
     * Get the requiredZoneNames property: The private link resource Private link DNS zone names.
     *
     * @return the requiredZoneNames value.
     */
    public List<String> requiredZoneNames() {
        return this.requiredZoneNames;
    }

    /**
     * Set the requiredZoneNames property: The private link resource Private link DNS zone names.
     *
     * @param requiredZoneNames the requiredZoneNames value to set.
     * @return the DnsZoneResponse object itself.
     */
    public DnsZoneResponse withRequiredZoneNames(List<String> requiredZoneNames) {
        this.requiredZoneNames = requiredZoneNames;
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public DnsZoneResponse withSubResource(VaultSubResourceType subResource) {
        super.withSubResource(subResource);
        return this;
    }

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