Enum StringCondition.StringComparisonType
- java.lang.Object
-
- java.lang.Enum<StringCondition.StringComparisonType>
-
- com.amazonaws.auth.policy.conditions.StringCondition.StringComparisonType
-
- All Implemented Interfaces:
Serializable
,Comparable<StringCondition.StringComparisonType>
- Enclosing class:
- StringCondition
public static enum StringCondition.StringComparisonType extends Enum<StringCondition.StringComparisonType>
Enumeration of the supported ways a string comparison can be evaluated.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description StringEquals
Case-sensitive exact string matchingStringEqualsIgnoreCase
Case-insensitive string matchingStringLike
Loose case-insensitive matching.StringNotEquals
Negated form ofStringEquals
StringNotEqualsIgnoreCase
Negated form ofStringEqualsIgnoreCase
StringNotLike
Negated form ofStringLike
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringCondition.StringComparisonType
valueOf(String name)
Returns the enum constant of this type with the specified name.static StringCondition.StringComparisonType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
StringEquals
public static final StringCondition.StringComparisonType StringEquals
Case-sensitive exact string matching
-
StringEqualsIgnoreCase
public static final StringCondition.StringComparisonType StringEqualsIgnoreCase
Case-insensitive string matching
-
StringLike
public static final StringCondition.StringComparisonType StringLike
Loose case-insensitive matching. The values can include a multi-character match wildcard (*) or a single-character match wildcard (?) anywhere in the string.
-
StringNotEquals
public static final StringCondition.StringComparisonType StringNotEquals
Negated form ofStringEquals
-
StringNotEqualsIgnoreCase
public static final StringCondition.StringComparisonType StringNotEqualsIgnoreCase
Negated form ofStringEqualsIgnoreCase
-
StringNotLike
public static final StringCondition.StringComparisonType StringNotLike
Negated form ofStringLike
-
-
Method Detail
-
values
public static StringCondition.StringComparisonType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (StringCondition.StringComparisonType c : StringCondition.StringComparisonType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StringCondition.StringComparisonType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-