public class StringCondition extends Condition
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
StringCondition.StringComparisonType
Enumeration of the supported ways a string comparison can be evaluated. 
 | 
| Constructor and Description | 
|---|
StringCondition(StringCondition.StringComparisonType type,
               String key,
               String value)
Constructs a new access control policy condition that compares two
 strings. 
 | 
getConditionKey, getType, getValues, setConditionKey, setType, setValues, withConditionKey, withType, withValues, withValuespublic StringCondition(StringCondition.StringComparisonType type, String key, String value)
type - The type of comparison to perform.key - The access policy condition key specifying where to get the
            first string for the comparison (ex: aws:UserAgent). See
            ConditionFactory for a list of the condition keys
            available for all services.value - The second string to compare against. When using
            StringCondition.StringComparisonType.StringLike or
            StringCondition.StringComparisonType.StringNotLike this may contain
            the multi-character wildcard (*) or the single-character
            wildcard (?).Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.