Share via


CheckNameAvailabilityResult Interface

public interface CheckNameAvailabilityResult

An immutable client-side representation of CheckNameAvailabilityResult.

Method Summary

Modifier and Type Method and Description
abstract CheckNameAvailabilityResultInner innerModel()

Gets the inner com.azure.resourcemanager.batch.fluent.models.CheckNameAvailabilityResultInner object.

abstract String message()

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

abstract Boolean nameAvailable()

Gets the nameAvailable property: Gets a boolean value that indicates whether the name is available for you to use.

abstract NameAvailabilityReason reason()

Gets the reason property: Gets the reason that a Batch account name could not be used.

Method Details

innerModel

public abstract CheckNameAvailabilityResultInner innerModel()

Gets the inner com.azure.resourcemanager.batch.fluent.models.CheckNameAvailabilityResultInner object.

Returns:

the inner object.

message

public abstract String message()

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

Returns:

the message value.

nameAvailable

public abstract Boolean nameAvailable()

Gets the nameAvailable property: Gets 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.

Returns:

the nameAvailable value.

reason

public abstract NameAvailabilityReason reason()

Gets the reason property: Gets the reason that a Batch account name could not be used. The Reason element is only returned if NameAvailable is false.

Returns:

the reason value.

Applies to