Class CheckNameAvailabilityResponseBodyInner

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

public final class CheckNameAvailabilityResponseBodyInner extends Object implements com.azure.json.JsonSerializable<CheckNameAvailabilityResponseBodyInner>
The response body returned for a request to Bot Service Management to check availability of a bot name.
  • Constructor Details

    • CheckNameAvailabilityResponseBodyInner

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

    • valid

      public Boolean valid()
      Get the valid property: indicates if the bot name is valid.
      Returns:
      the valid value.
    • withValid

      Set the valid property: indicates if the bot name is valid.
      Parameters:
      valid - the valid value to set.
      Returns:
      the CheckNameAvailabilityResponseBodyInner object itself.
    • message

      public String message()
      Get the message property: additional message from the bot management api showing why a bot name is not available.
      Returns:
      the message value.
    • withMessage

      public CheckNameAvailabilityResponseBodyInner withMessage(String message)
      Set the message property: additional message from the bot management api showing why a bot name is not available.
      Parameters:
      message - the message value to set.
      Returns:
      the CheckNameAvailabilityResponseBodyInner object itself.
    • absCode

      public String absCode()
      Get the absCode property: response code from ABS.
      Returns:
      the absCode value.
    • withAbsCode

      public CheckNameAvailabilityResponseBodyInner withAbsCode(String absCode)
      Set the absCode property: response code from ABS.
      Parameters:
      absCode - the absCode value to set.
      Returns:
      the CheckNameAvailabilityResponseBodyInner 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<CheckNameAvailabilityResponseBodyInner>
      Throws:
      IOException
    • fromJson

      public static CheckNameAvailabilityResponseBodyInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of CheckNameAvailabilityResponseBodyInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of CheckNameAvailabilityResponseBodyInner 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 CheckNameAvailabilityResponseBodyInner.