你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CheckNameAvailabilityResult Class

  • java.lang.Object
    • com.azure.resourcemanager.storage.models.CheckNameAvailabilityResult

public class CheckNameAvailabilityResult

The StorageAccounts#checkNameAvailability action result.

Constructor Summary

Constructor Description
CheckNameAvailabilityResult(CheckNameAvailabilityResultInner inner)

Creates an instance of the check name availability result object.

Method Summary

Modifier and Type Method and Description
boolean isAvailable()

Checks whether the name is available for you to use.

String message()

Gets an error message explaining the Reason value in more detail.

Reason reason()

Gets the reason that a storage account name could not be used.

Methods inherited from java.lang.Object

Constructor Details

CheckNameAvailabilityResult

public CheckNameAvailabilityResult(CheckNameAvailabilityResultInner inner)

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.

message

public String message()

Gets an error message explaining the Reason value in more detail.

Returns:

an error message explaining the Reason value in more detail

reason

public Reason 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'.

Applies to