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

package com.azure.resourcemanager.network.generated;

import com.azure.resourcemanager.network.fluent.models.NetworkInterfaceTapConfigurationInner;
import com.azure.resourcemanager.network.fluent.models.VirtualNetworkTapInner;

/** Samples for NetworkInterfaceTapConfigurations CreateOrUpdate. */
public final class NetworkInterfaceTapConfigurationsCreateOrUpdateSamples {
    /*
     * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-11-01/examples/NetworkInterfaceTapConfigurationCreate.json
     */
    /**
     * Sample code: Create Network Interface Tap Configurations.
     *
     * @param azure The entry point for accessing resource management APIs in Azure.
     */
    public static void createNetworkInterfaceTapConfigurations(com.azure.resourcemanager.AzureResourceManager azure) {
        azure
            .networks()
            .manager()
            .serviceClient()
            .getNetworkInterfaceTapConfigurations()
            .createOrUpdate(
                "testrg",
                "mynic",
                "tapconfiguration1",
                new NetworkInterfaceTapConfigurationInner()
                    .withVirtualNetworkTap(
                        new VirtualNetworkTapInner()
                            .withId(
                                "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworkTaps/testvtap")),
                com.azure.core.util.Context.NONE);
    }
}
