Interface NameAvailabilitiesClient
public interface NameAvailabilitiesClient
An instance of this class provides access to all the operations defined in NameAvailabilitiesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncheckLocal
(String location, CheckNameAvailabilityRequest body) Check whether the resource name is available in the given region.com.azure.core.http.rest.Response<CheckNameAvailabilityResponseInner>
checkLocalWithResponse
(String location, CheckNameAvailabilityRequest body, com.azure.core.util.Context context) Check whether the resource name is available in the given region.
-
Method Details
-
checkLocalWithResponse
com.azure.core.http.rest.Response<CheckNameAvailabilityResponseInner> checkLocalWithResponse(String location, CheckNameAvailabilityRequest body, com.azure.core.util.Context context) Check whether the resource name is available in the given region.- Parameters:
location
- The location in which uniqueness will be verified.body
- The check availability request body.context
- The context to associate with this operation.- Returns:
- the check availability result along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
checkLocal
Check whether the resource name is available in the given region.- Parameters:
location
- The location in which uniqueness will be verified.body
- The check availability request body.- Returns:
- the check availability result.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-