Modes Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. compute. models. Modes
- com.
- com.
public final class Modes
extends ExpandableStringEnum<Modes>
Specifies the execution mode. In Audit mode, the system acts as if it is enforcing the access control policy, including emitting access denial entries in the logs but it does not actually deny any requests to host endpoints. In Enforce mode, the system will enforce the access control and it is the recommended mode of operation.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
| static final Modes |
AUDIT
Static value Audit for Modes. |
| static final Modes |
DISABLED
Static value Disabled for Modes. |
| static final Modes |
ENFORCE
Static value Enforce for Modes. |
Constructor Summary
| Constructor | Description |
|---|---|
| Modes() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Modes value. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| static Modes |
fromString(String name)
Creates or finds a Modes from its string representation. |
| static Collection<Modes> |
values()
Gets known Modes values. |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
AUDIT
public static final Modes AUDIT
Static value Audit for Modes.
DISABLED
public static final Modes DISABLED
Static value Disabled for Modes.
ENFORCE
public static final Modes ENFORCE
Static value Enforce for Modes.
Constructor Details
Modes
@Deprecated
public Modes()
Deprecated
Creates a new instance of Modes value.
Method Details
fromString
public static Modes fromString(String name)
Creates or finds a Modes from its string representation.
Parameters:
Returns:
values
public static Collection<Modes> values()
Gets known Modes values.
Returns: