CheckNameAvailabilityResultInner Class
- java.
lang. Object - com.
microsoft. azure. management. batch. implementation. CheckNameAvailabilityResultInner
- com.
public class CheckNameAvailabilityResultInner
The CheckNameAvailability operation response.
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
message()
Get gets an error message explaining the Reason value in more detail. |
Boolean |
nameAvailable()
Get 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. |
Name |
reason()
Get gets the reason that a Batch account name could not be used. The Reason element is only returned if NameAvailable is false. Possible values include: 'Invalid', 'AlreadyExists'. |
Method Details
message
public String message()
Get gets an error message explaining the Reason value in more detail.
Returns:
nameAvailable
public Boolean nameAvailable()
Get 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:
reason
public NameAvailabilityReason reason()
Get gets the reason that a Batch account name could not be used. The Reason element is only returned if NameAvailable is false. Possible values include: 'Invalid', 'AlreadyExists'.
Returns:
Applies to
Azure SDK for Java