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

package com.azure.resourcemanager.mysqlflexibleserver.generated;

import com.azure.resourcemanager.mysqlflexibleserver.models.VirtualNetworkSubnetUsageParameter;

/** Samples for CheckVirtualNetworkSubnetUsage Execute. */
public final class CheckVirtualNetworkSubnetUsageExecuteSamples {
    /*
     * x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2021-12-01-preview/examples/CheckVirtualNetworkSubnetUsage.json
     */
    /**
     * Sample code: CheckVirtualNetworkSubnetUsage.
     *
     * @param manager Entry point to MySqlManager.
     */
    public static void checkVirtualNetworkSubnetUsage(
        com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
        manager
            .checkVirtualNetworkSubnetUsages()
            .executeWithResponse(
                "WestUS",
                new VirtualNetworkSubnetUsageParameter()
                    .withVirtualNetworkResourceId(
                        "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/testvnet"),
                com.azure.core.util.Context.NONE);
    }
}
