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

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

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

/** Managed integration runtime managed virtual network reference. */
@Fluent
public final class ManagedIntegrationRuntimeManagedVirtualNetworkReference {
    /*
     * The reference name of the managed virtual network.
     */
    @JsonProperty(value = "referenceName")
    private String referenceName;

    /*
     * The type of the managed virtual network.
     */
    @JsonProperty(value = "type")
    private String type;

    /*
     * The id of the managed virtual network.
     */
    @JsonProperty(value = "id")
    private String id;

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

    /**
     * Get the referenceName property: The reference name of the managed virtual network.
     *
     * @return the referenceName value.
     */
    public String referenceName() {
        return this.referenceName;
    }

    /**
     * Set the referenceName property: The reference name of the managed virtual network.
     *
     * @param referenceName the referenceName value to set.
     * @return the ManagedIntegrationRuntimeManagedVirtualNetworkReference object itself.
     */
    public ManagedIntegrationRuntimeManagedVirtualNetworkReference withReferenceName(String referenceName) {
        this.referenceName = referenceName;
        return this;
    }

    /**
     * Get the type property: The type of the managed virtual network.
     *
     * @return the type value.
     */
    public String type() {
        return this.type;
    }

    /**
     * Set the type property: The type of the managed virtual network.
     *
     * @param type the type value to set.
     * @return the ManagedIntegrationRuntimeManagedVirtualNetworkReference object itself.
     */
    public ManagedIntegrationRuntimeManagedVirtualNetworkReference withType(String type) {
        this.type = type;
        return this;
    }

    /**
     * Get the id property: The id of the managed virtual network.
     *
     * @return the id value.
     */
    public String id() {
        return this.id;
    }

    /**
     * Set the id property: The id of the managed virtual network.
     *
     * @param id the id value to set.
     * @return the ManagedIntegrationRuntimeManagedVirtualNetworkReference object itself.
     */
    public ManagedIntegrationRuntimeManagedVirtualNetworkReference withId(String id) {
        this.id = id;
        return this;
    }

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