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

package com.azure.resourcemanager.resources.generated;

/** Samples for ResourceName CheckResourceName. */
public final class ResourceNameCheckResourceNameSamples {
    /*
     * x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2022-12-01/examples/CheckResourceName.json
     */
    /**
     * Sample code: CheckValidityForAResourceName.
     *
     * @param azure The entry point for accessing resource management APIs in Azure.
     */
    public static void checkValidityForAResourceName(com.azure.resourcemanager.AzureResourceManager azure) {
        azure
            .genericResources()
            .manager()
            .subscriptionClient()
            .getResourceNames()
            .checkResourceNameWithResponse(null, com.azure.core.util.Context.NONE);
    }
}
