Class CheckNameAvailabilityResult
- java.lang.Object
-
- com.azure.resourcemanager.storage.models.CheckNameAvailabilityResult
-
public class CheckNameAvailabilityResult extends Object
TheStorageAccounts.checkNameAvailability(java.lang.String)action result.
-
-
Constructor Summary
Constructors Constructor Description CheckNameAvailabilityResult(CheckNameAvailabilityResultInner inner)Creates an instance of the check name availability result object.
-
-
-
Constructor Detail
-
CheckNameAvailabilityResult
public CheckNameAvailabilityResult(CheckNameAvailabilityResultInner inner)
Creates an instance of the check name availability result object.- Parameters:
inner- the inner object
-
-
Method Detail
-
isAvailable
public boolean isAvailable()
- 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
public Reason reason()
- 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
public String message()
- Returns:
- an error message explaining the Reason value in more detail
-
-