Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for
license information.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.azure.management.storage;
import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.storage.implementation.CheckNameAvailabilityResultInner;
The StorageAccounts.checkNameAvailability
action result. /**
* The {@link com.microsoft.azure.management.storage.StorageAccounts#checkNameAvailability} action result.
*/
@LangDefinition
public class CheckNameAvailabilityResult {
private CheckNameAvailabilityResultInner inner;
Creates an instance of the check name availability result object.
Params: - inner – the inner object
/**
* Creates an instance of the check name availability result object.
*
* @param inner the inner object
*/
public CheckNameAvailabilityResult(CheckNameAvailabilityResultInner inner) {
this.inner = inner;
}
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.
/**
* @return 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.
*/
public boolean isAvailable() {
return inner.nameAvailable();
}
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'.
/**
* @return 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'.
*/
public Reason reason() {
return inner.reason();
}
Returns: an error message explaining the Reason value in more detail
/**
* @return an error message explaining the Reason value in more detail
*/
public String message() {
return inner.message();
}
}