Class CheckNameAvailabilityResult
java.lang.Object
com.azure.resourcemanager.storage.models.CheckNameAvailabilityResult
The
StorageAccounts.checkNameAvailability(java.lang.String) action result.-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of the check name availability result object. -
Method Summary
-
Constructor Details
-
CheckNameAvailabilityResult
Creates an instance of the check name availability result object.- Parameters:
inner- the inner object
-
-
Method Details
-
isAvailable
public boolean isAvailable()Checks whether the name is available for you to use.- Returns:
- a boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or invalid and cannot be used.
-
reason
Gets the reason that a storage account name could not be used.- Returns:
- the reason that a storage account name could not be used. The Reason element is only returned if NameAvailable is false. Possible values include: 'AccountNameInvalid', 'AlreadyExists'.
-
message
Gets an error message explaining the Reason value in more detail.- Returns:
- an error message explaining the Reason value in more detail
-