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 Summary
FieldsModifier and TypeFieldDescriptionstatic final UnavailableNameReasonStatic value AlreadyExists for UnavailableNameReason.static final UnavailableNameReasonStatic value Invalid for UnavailableNameReason. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UnavailableNameReasonfromString(String name) Creates or finds a UnavailableNameReason from its string representation.static Collection<UnavailableNameReason>values()Gets known UnavailableNameReason values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, hashCode, toString, values
-
Field Details
-
INVALID
Static value Invalid for UnavailableNameReason. -
ALREADY_EXISTS
Static value AlreadyExists for UnavailableNameReason.
-
-
Constructor Details
-
UnavailableNameReason
Deprecated.Use thefromString(String)factory method.Creates a new instance of UnavailableNameReason value.
-
-
Method Details
-
fromString
Creates or finds a UnavailableNameReason from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding UnavailableNameReason.
-
values
Gets known UnavailableNameReason values.- Returns:
- known UnavailableNameReason values.
-
fromString(String)factory method.