java.lang.Object
com.azure.core.util.ExpandableStringEnum<Modes>
com.azure.resourcemanager.compute.models.Modes
All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>

public final class Modes extends com.azure.core.util.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

    Fields
    Modifier and Type
    Field
    Description
    static final Modes
    Static value Audit for Modes.
    static final Modes
    Static value Disabled for Modes.
    static final Modes
    Static value Enforce for Modes.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Use the fromString(String) factory method.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Modes
    Creates or finds a Modes from its string representation.
    Gets known Modes values.

    Methods inherited from class com.azure.core.util.ExpandableStringEnum

    equals, fromString, getValue, hashCode, toString, values

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • AUDIT

      public static final Modes AUDIT
      Static value Audit for Modes.
    • ENFORCE

      public static final Modes ENFORCE
      Static value Enforce for Modes.
    • DISABLED

      public static final Modes DISABLED
      Static value Disabled for Modes.
  • Constructor Details

  • Method Details

    • fromString

      public static Modes fromString(String name)
      Creates or finds a Modes from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding Modes.
    • values

      public static Collection<Modes> values()
      Gets known Modes values.
      Returns:
      known Modes values.