Package com.amazonaws.services.s3.model
Enum S3KeyFilter.FilterRuleName
- java.lang.Object
-
- java.lang.Enum<S3KeyFilter.FilterRuleName>
-
- com.amazonaws.services.s3.model.S3KeyFilter.FilterRuleName
-
- All Implemented Interfaces:
Serializable
,Comparable<S3KeyFilter.FilterRuleName>
- Enclosing class:
- S3KeyFilter
public static enum S3KeyFilter.FilterRuleName extends Enum<S3KeyFilter.FilterRuleName>
Allowable values for the name of aFilterRule
for anS3KeyFilter
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FilterRule
newRule()
Convenience factory method to create a newFilterRule
with name initialized to thisS3KeyFilter.FilterRuleName
FilterRule
newRule(String value)
Convenience factory method to create a newFilterRule
with name initialized to thisS3KeyFilter.FilterRuleName
and value initialized tovalue
static S3KeyFilter.FilterRuleName
valueOf(String name)
Returns the enum constant of this type with the specified name.static S3KeyFilter.FilterRuleName[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Prefix
public static final S3KeyFilter.FilterRuleName Prefix
-
Suffix
public static final S3KeyFilter.FilterRuleName Suffix
-
-
Method Detail
-
values
public static S3KeyFilter.FilterRuleName[] 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 (S3KeyFilter.FilterRuleName c : S3KeyFilter.FilterRuleName.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static S3KeyFilter.FilterRuleName 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
-
newRule
public FilterRule newRule()
Convenience factory method to create a newFilterRule
with name initialized to thisS3KeyFilter.FilterRuleName
FilterRule prefixRule = FilterRuleName.Prefix.newRule().withValue("prefix-value");
- Returns:
- New
FilterRule
with name initialized to thisS3KeyFilter.FilterRuleName
-
newRule
public FilterRule newRule(String value)
Convenience factory method to create a newFilterRule
with name initialized to thisS3KeyFilter.FilterRuleName
and value initialized tovalue
FilterRule prefixRule = FilterRuleName.Prefix.newRule("prefix-value");
- Returns:
- New
FilterRule
with name initialized to thisS3KeyFilter.FilterRuleName
-
-