Class ResourceNameAvailabilityInner

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

public final class ResourceNameAvailabilityInner extends Object implements com.azure.json.JsonSerializable<ResourceNameAvailabilityInner>
Information regarding availability of a resource name.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of ResourceNameAvailabilityInner from the JsonReader.
    Get the message property: If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name.
    Get the nameAvailable property: <code>true</code> indicates name is valid and available.
    Get the reason property: <code>Invalid</code> indicates the name provided does not match Azure App Service naming requirements.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Method Details

    • nameAvailable

      public Boolean nameAvailable()
      Get the nameAvailable property: <code>true</code> indicates name is valid and available. <code>false</code> indicates the name is invalid, unavailable, or both.
      Returns:
      the nameAvailable value.
    • reason

      public InAvailabilityReasonType reason()
      Get the reason property: <code>Invalid</code> indicates the name provided does not match Azure App Service naming requirements. <code>AlreadyExists</code> indicates that the name is already in use and is therefore unavailable.
      Returns:
      the reason value.
    • message

      public String message()
      Get the message property: If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name. If reason == AlreadyExists, explain that resource name is already in use, and direct them to select a different name.
      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<ResourceNameAvailabilityInner>
      Throws:
      IOException
    • fromJson

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