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
The search service name is already assigned to a different search service. |
|
static final
Unavailable |
INVALID
The search service name doesn't match naming requirements. |
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
The search service name is already assigned to a different search service.
INVALID
public static final UnavailableNameReason INVALID
The search service name doesn't match naming requirements.
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<UnavailableNameReason> values()
Gets known UnavailableNameReason values.
Returns: