Class CheckNameAvailabilityOutput
java.lang.Object
com.azure.resourcemanager.search.models.CheckNameAvailabilityOutput
Output of check name availability API.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CheckNameAvailabilityOutput class. -
Method Summary
Modifier and TypeMethodDescriptionGet the isNameAvailable property: A value indicating whether the name is available.message()Get the message property: A message that explains why the name is invalid and provides resource naming requirements.reason()Get the reason property: The reason why the name is not available.voidvalidate()Validates the instance.
-
Constructor Details
-
CheckNameAvailabilityOutput
public CheckNameAvailabilityOutput()Creates an instance of CheckNameAvailabilityOutput class.
-
-
Method Details
-
isNameAvailable
Get the isNameAvailable property: A value indicating whether the name is available.- Returns:
- the isNameAvailable value.
-
reason
Get the reason property: The reason why the name is not available. 'Invalid' indicates the name provided does not match the naming requirements (incorrect length, unsupported characters, etc.). 'AlreadyExists' indicates that the name is already in use and is therefore unavailable.- Returns:
- the reason value.
-
message
Get the message property: A message that explains why the name is invalid and provides resource naming requirements. Available only if 'Invalid' is returned in the 'reason' property.- Returns:
- the message value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-