Class Mode

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

public final class Mode extends com.azure.core.util.ExpandableStringEnum<Mode>
Specifies the mode that ProxyAgent will execute on if the feature is enabled. ProxyAgent will start to audit or monitor but not enforce access control over requests to host endpoints in Audit mode, while in Enforce mode it will enforce access control. The default value is Enforce mode.
  • Field Summary

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

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

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

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

    equals, fromString, getValue, hashCode, toString, values

    Methods inherited from class Object

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

    • AUDIT

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

      public static final Mode ENFORCE
      Static value Enforce for Mode.
  • Constructor Details

  • Method Details

    • fromString

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

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