Reason Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. digitaltwins. models. Reason
- com.
- com.
public final class Reason
extends ExpandableStringEnum<Reason>
Message providing the reason why the given name is invalid.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
| static final Reason |
ALREADY_EXISTS
Static value Already |
| static final Reason |
INVALID
Static value Invalid for Reason. |
Constructor Summary
| Constructor | Description |
|---|---|
| Reason() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Reason value. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| static Reason |
fromString(String name)
Creates or finds a Reason from its string representation. |
| static Collection<Reason> |
values()
Gets known Reason values. |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
ALREADY_EXISTS
public static final Reason ALREADY_EXISTS
Static value AlreadyExists for Reason.
INVALID
public static final Reason INVALID
Static value Invalid for Reason.
Constructor Details
Reason
@Deprecated
public Reason()
Deprecated
Creates a new instance of Reason value.
Method Details
fromString
public static Reason fromString(String name)
Creates or finds a Reason from its string representation.
Parameters:
Returns:
values
public static Collection<Reason> values()
Gets known Reason values.
Returns: