Class UnavailableNameReason

java.lang.Object
com.azure.core.util.ExpandableStringEnum<UnavailableNameReason>
com.azure.resourcemanager.search.models.UnavailableNameReason

public final class UnavailableNameReason extends com.azure.core.util.ExpandableStringEnum<UnavailableNameReason>
The reason why the name is not available. 'Invalid' indicates the name provided does not match the naming requirements (incorrect length, unsupported characters, etc.). 'AlreadyExists' indicates that the name is already in use and is therefore unavailable.
  • Field Details

    • INVALID

      public static final UnavailableNameReason INVALID
      Static value Invalid for UnavailableNameReason.
    • ALREADY_EXISTS

      public static final UnavailableNameReason ALREADY_EXISTS
      Static value AlreadyExists for UnavailableNameReason.
  • Constructor Details

    • UnavailableNameReason

      @Deprecated public UnavailableNameReason()
      Deprecated.
      Use the fromString(String) factory method.
      Creates a new instance of UnavailableNameReason value.
  • Method Details

    • fromString

      public static UnavailableNameReason fromString(String name)
      Creates or finds a UnavailableNameReason from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding UnavailableNameReason.
    • values

      public static Collection<UnavailableNameReason> values()
      Gets known UnavailableNameReason values.
      Returns:
      known UnavailableNameReason values.