Class NameAvailabilityParameters
java.lang.Object
com.azure.resourcemanager.communication.models.CheckNameAvailabilityRequest
com.azure.resourcemanager.communication.models.NameAvailabilityParameters
Data POST-ed to the nameAvailability action.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
validate()
Validates the instance.Set the name property: The name of the resource for which availability needs to be checked.Set the type property: The resource type.Methods inherited from class com.azure.resourcemanager.communication.models.CheckNameAvailabilityRequest
name, type
-
Constructor Details
-
NameAvailabilityParameters
public NameAvailabilityParameters()
-
-
Method Details
-
withName
Set the name property: The name of the resource for which availability needs to be checked.- Overrides:
withName
in classCheckNameAvailabilityRequest
- Parameters:
name
- the name value to set.- Returns:
- the CheckNameAvailabilityRequest object itself.
-
withType
Set the type property: The resource type.- Overrides:
withType
in classCheckNameAvailabilityRequest
- Parameters:
type
- the type value to set.- Returns:
- the CheckNameAvailabilityRequest object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classCheckNameAvailabilityRequest
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-