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 Details

    • CheckNameAvailabilityResponseInner

      public CheckNameAvailabilityResponseInner()
      Creates an instance of CheckNameAvailabilityResponseInner class.
  • Method Details

    • name

      public String name()
      Get the name property: The name whose availability was checked.
      Returns:
      the name value.
    • available

      public Boolean available()
      Get the available property: True if the name is available, otherwise false.
      Returns:
      the available value.
    • reason

      public CheckNameAvailabilityReason 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

      public String 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.