Interface CheckNameAvailabilitiesClient
public interface CheckNameAvailabilitiesClient
An instance of this class provides access to all the operations defined in CheckNameAvailabilitiesClient.
-
Method Summary
Modifier and TypeMethodDescriptionexecute
(String locationName, NameAvailabilityRequest nameAvailabilityRequest) Check the availability of name for server.com.azure.core.http.rest.Response<NameAvailabilityInner>
executeWithResponse
(String locationName, NameAvailabilityRequest nameAvailabilityRequest, com.azure.core.util.Context context) Check the availability of name for server.
-
Method Details
-
executeWithResponse
com.azure.core.http.rest.Response<NameAvailabilityInner> executeWithResponse(String locationName, NameAvailabilityRequest nameAvailabilityRequest, com.azure.core.util.Context context) Check the availability of name for server.- Parameters:
locationName
- The name of the location.nameAvailabilityRequest
- The required parameters for checking if server name is available.context
- The context to associate with this operation.- Returns:
- represents a resource name availability 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.
-
execute
Check the availability of name for server.- Parameters:
locationName
- The name of the location.nameAvailabilityRequest
- The required parameters for checking if server name is available.- Returns:
- represents a resource name availability.
- 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.
-