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

/** DNSZone information. */
@Fluent
public class DnsZone {
    /*
     * Subresource type for vault AzureBackup, AzureBackup_secondary or AzureSiteRecovery
     */
    @JsonProperty(value = "subResource")
    private VaultSubResourceType subResource;

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

    /**
     * Get the subResource property: Subresource type for vault AzureBackup, AzureBackup_secondary or AzureSiteRecovery.
     *
     * @return the subResource value.
     */
    public VaultSubResourceType subResource() {
        return this.subResource;
    }

    /**
     * Set the subResource property: Subresource type for vault AzureBackup, AzureBackup_secondary or AzureSiteRecovery.
     *
     * @param subResource the subResource value to set.
     * @return the DnsZone object itself.
     */
    public DnsZone withSubResource(VaultSubResourceType subResource) {
        this.subResource = subResource;
        return this;
    }

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