Enum Class ConditionOperator
- All Implemented Interfaces:
Serializable,Comparable<ConditionOperator>,Constable
Condition operators for IAM policy conditions.
These operators are used to define conditions under which a policy statement applies. They follow substrate-neutral naming conventions and are translated to provider-specific formats (e.g., "stringEquals" → "StringEquals" in AWS).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBoolean comparisonDate equality comparisonDate greater-than (after) comparisonDate greater-than-or-equal comparisonDate less-than (before) comparisonDate less-than-or-equal comparisonDate inequality comparisonIP address matchingNegated IP address matchingNumeric equality comparisonNumeric greater-than comparisonNumeric greater-than-or-equal comparisonNumeric less-than comparisonNumeric less-than-or-equal comparisonNumeric inequality comparisonString equality comparisonString pattern matching (supports wildcards)String inequality comparisonNegated string pattern matching -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Returns the string representation used in policy documents.toString()static ConditionOperatorReturns the enum constant of this class with the specified name.static ConditionOperator[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STRING_EQUALS
String equality comparison -
STRING_NOT_EQUALS
String inequality comparison -
STRING_LIKE
String pattern matching (supports wildcards) -
STRING_NOT_LIKE
Negated string pattern matching -
NUMERIC_EQUALS
Numeric equality comparison -
NUMERIC_NOT_EQUALS
Numeric inequality comparison -
NUMERIC_LESS_THAN
Numeric less-than comparison -
NUMERIC_LESS_THAN_EQUALS
Numeric less-than-or-equal comparison -
NUMERIC_GREATER_THAN
Numeric greater-than comparison -
NUMERIC_GREATER_THAN_EQUALS
Numeric greater-than-or-equal comparison -
DATE_EQUALS
Date equality comparison -
DATE_NOT_EQUALS
Date inequality comparison -
DATE_LESS_THAN
Date less-than (before) comparison -
DATE_LESS_THAN_EQUALS
Date less-than-or-equal comparison -
DATE_GREATER_THAN
Date greater-than (after) comparison -
DATE_GREATER_THAN_EQUALS
Date greater-than-or-equal comparison -
BOOL
Boolean comparison -
IP_ADDRESS
IP address matching -
NOT_IP_ADDRESS
Negated IP address matching
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getValue
Returns the string representation used in policy documents.- Returns:
- the operator value
-
toString
- Overrides:
toStringin classEnum<ConditionOperator>
-