UnavailableNameReason Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. search. models. UnavailableNameReason
- com.
- com.
public final class UnavailableNameReason
extends 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
Modifier and Type | Field and Description |
---|---|
static final
Unavailable |
ALREADY_EXISTS
Static value Already |
static final
Unavailable |
INVALID
Static value Invalid for Unavailable |
Constructor Summary
Constructor | Description |
---|---|
UnavailableNameReason() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Unavailable |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Unavailable |
fromString(String name)
Creates or finds a Unavailable |
static
Collection<Unavailable |
values()
Gets known Unavailable |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
ALREADY_EXISTS
public static final UnavailableNameReason ALREADY_EXISTS
Static value AlreadyExists for UnavailableNameReason.
INVALID
public static final UnavailableNameReason INVALID
Static value Invalid for UnavailableNameReason.
Constructor Details
UnavailableNameReason
@Deprecated
public UnavailableNameReason()
Deprecated
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:
Returns:
values
public static Collection
Gets known UnavailableNameReason values.
Returns:
Applies to
Azure SDK for Java