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

package com.azure.resourcemanager.dnsresolver.fluent.models;

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

/** The reference to the virtual network link that associates between the DNS forwarding ruleset and virtual network. */
@Fluent
public final class VirtualNetworkLinkSubResourceProperties {
    /*
     * The reference to the virtual network link.
     */
    @JsonProperty(value = "virtualNetworkLink")
    private SubResource virtualNetworkLink;

    /**
     * Get the virtualNetworkLink property: The reference to the virtual network link.
     *
     * @return the virtualNetworkLink value.
     */
    public SubResource virtualNetworkLink() {
        return this.virtualNetworkLink;
    }

    /**
     * Set the virtualNetworkLink property: The reference to the virtual network link.
     *
     * @param virtualNetworkLink the virtualNetworkLink value to set.
     * @return the VirtualNetworkLinkSubResourceProperties object itself.
     */
    public VirtualNetworkLinkSubResourceProperties withVirtualNetworkLink(SubResource virtualNetworkLink) {
        this.virtualNetworkLink = virtualNetworkLink;
        return this;
    }

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