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

package com.azure.resourcemanager.botservice.generated;

import com.azure.core.util.Context;
import com.azure.resourcemanager.botservice.models.CheckNameAvailabilityRequestBody;

/** Samples for Bots GetCheckNameAvailability. */
public final class BotsGetCheckNameAvailabilitySamples {
    /*
     * x-ms-original-file: specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/CheckNameAvailability.json
     */
    /**
     * Sample code: check Name Availability.
     *
     * @param manager Entry point to BotServiceManager.
     */
    public static void checkNameAvailability(com.azure.resourcemanager.botservice.BotServiceManager manager) {
        manager
            .bots()
            .getCheckNameAvailabilityWithResponse(
                new CheckNameAvailabilityRequestBody().withName("testbotname").withType("string"), Context.NONE);
    }
}
