CheckNameAvailabilityOutput Class
- java.
lang. Object - com.
azure. resourcemanager. search. models. CheckNameAvailabilityOutput
- com.
Implements
public final class CheckNameAvailabilityOutput
implements JsonSerializable<CheckNameAvailabilityOutput>
Output of check name availability API.
Constructor Summary
Constructor | Description |
---|---|
CheckNameAvailabilityOutput() |
Creates an instance of Check |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Check |
fromJson(JsonReader jsonReader)
Reads an instance of Check |
Boolean |
isNameAvailable()
Get the is |
String |
message()
Get the message property: A message that explains why the name is invalid and provides resource naming requirements. |
Unavailable |
reason()
Get the reason property: The reason why the name is not available. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Methods inherited from java.lang.Object
Constructor Details
CheckNameAvailabilityOutput
public CheckNameAvailabilityOutput()
Creates an instance of CheckNameAvailabilityOutput class.
Method Details
fromJson
public static CheckNameAvailabilityOutput fromJson(JsonReader jsonReader)
Reads an instance of CheckNameAvailabilityOutput from the JsonReader.
Parameters:
Returns:
Throws:
isNameAvailable
public Boolean isNameAvailable()
Get the isNameAvailable property: A value indicating whether the name is available.
Returns:
message
public String message()
Get the message property: A message that explains why the name is invalid and provides resource naming requirements. Available only if 'Invalid' is returned in the 'reason' property.
Returns:
reason
public UnavailableNameReason reason()
Get the reason property: The reason why the name is not available. 'Invalid' indicates the name provided does not match the naming requirements (incorrect length, unsupported characters, etc.). 'AlreadyExists' indicates that the name is already in use and is therefore unavailable.
Returns:
toJson
validate
public void validate()
Validates the instance.
Applies to
Azure SDK for Java