Class CheckNameAvailabilityResponseInner

java.lang.Object
com.azure.resourcemanager.appcontainers.fluent.models.CheckNameAvailabilityResponseInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<CheckNameAvailabilityResponseInner>

public final class CheckNameAvailabilityResponseInner extends Object implements com.azure.json.JsonSerializable<CheckNameAvailabilityResponseInner>
The check availability result.
  • Constructor Details

    • CheckNameAvailabilityResponseInner

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

    • nameAvailable

      public Boolean nameAvailable()
      Get the nameAvailable property: Indicates if the resource name is available.
      Returns:
      the nameAvailable value.
    • withNameAvailable

      public CheckNameAvailabilityResponseInner withNameAvailable(Boolean nameAvailable)
      Set the nameAvailable property: Indicates if the resource name is available.
      Parameters:
      nameAvailable - the nameAvailable value to set.
      Returns:
      the CheckNameAvailabilityResponseInner object itself.
    • reason

      public CheckNameAvailabilityReason reason()
      Get the reason property: The reason why the given name is not available.
      Returns:
      the reason value.
    • withReason

      Set the reason property: The reason why the given name is not available.
      Parameters:
      reason - the reason value to set.
      Returns:
      the CheckNameAvailabilityResponseInner object itself.
    • message

      public String message()
      Get the message property: Detailed reason why the given name is available.
      Returns:
      the message value.
    • withMessage

      public CheckNameAvailabilityResponseInner withMessage(String message)
      Set the message property: Detailed reason why the given name is available.
      Parameters:
      message - the message value to set.
      Returns:
      the CheckNameAvailabilityResponseInner object itself.
    • 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.