Class CheckNameAvailabilityResponseInner
java.lang.Object
com.azure.resourcemanager.sql.fluent.models.CheckNameAvailabilityResponseInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CheckNameAvailabilityResponseInner>
public final class CheckNameAvailabilityResponseInner
extends Object
implements com.azure.json.JsonSerializable<CheckNameAvailabilityResponseInner>
The result of a name availability check.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CheckNameAvailabilityResponseInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the available property: True if the name is available, otherwise false.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CheckNameAvailabilityResponseInner from the JsonReader.message()Get the message property: A message explaining why the name is unavailable.name()Get the name property: The name whose availability was checked.reason()Get the reason property: The reason code explaining why the name is unavailable.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CheckNameAvailabilityResponseInner
public CheckNameAvailabilityResponseInner()Creates an instance of CheckNameAvailabilityResponseInner class.
-
-
Method Details
-
name
Get the name property: The name whose availability was checked.- Returns:
- the name value.
-
available
Get the available property: True if the name is available, otherwise false.- Returns:
- the available value.
-
reason
Get the reason property: The reason code explaining why the name is unavailable. Will be undefined if the name is available.- Returns:
- the reason value.
-
message
Get the message property: A message explaining why the name is unavailable. Will be undefined if the name is available.- Returns:
- the message value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<CheckNameAvailabilityResponseInner>- Throws:
IOException
-
fromJson
public static CheckNameAvailabilityResponseInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CheckNameAvailabilityResponseInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CheckNameAvailabilityResponseInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the CheckNameAvailabilityResponseInner.
-