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

package com.azure.resourcemanager.healthcareapis.generated;

import com.azure.core.util.Context;
import com.azure.resourcemanager.healthcareapis.models.CheckNameAvailabilityParameters;

/** Samples for Services CheckNameAvailability. */
public final class ServicesCheckNameAvailabilitySamples {
    /*
     * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/CheckNameAvailabilityPost.json
     */
    /**
     * Sample code: Check name availability.
     *
     * @param manager Entry point to HealthcareApisManager.
     */
    public static void checkNameAvailability(com.azure.resourcemanager.healthcareapis.HealthcareApisManager manager) {
        manager
            .services()
            .checkNameAvailabilityWithResponse(
                new CheckNameAvailabilityParameters()
                    .withName("serviceName")
                    .withType("Microsoft.HealthcareApis/services"),
                Context.NONE);
    }
}
