Enum Class Effect

java.lang.Object
java.lang.Enum<Effect>
com.salesforce.multicloudj.iam.model.Effect
All Implemented Interfaces:
Serializable, Comparable<Effect>, Constable

public enum Effect extends Enum<Effect>
Represents the effect of a policy statement.

Effect determines whether the statement allows or denies access.

  • Enum Constant Details

    • ALLOW

      public static final Effect ALLOW
      Grants access to the specified actions
    • DENY

      public static final Effect DENY
      Explicitly denies access to the specified actions
  • Method Details

    • values

      public static Effect[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Effect valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
      Returns the string representation used in policy documents.
      Returns:
      the effect value
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Effect>