public static enum COSKeyFilter.FilterRuleName extends Enum<COSKeyFilter.FilterRuleName>
FilterRule for an COSKeyFilter| 枚举常量和说明 |
|---|
Prefix |
| 限定符和类型 | 方法和说明 |
|---|---|
FilterRule |
newRule()
Convenience factory method to create a new
FilterRule with name initialized to
this COSKeyFilter.FilterRuleName
FilterRule prefixRule = FilterRuleName.Prefix.newRule().withValue("prefix-value");
|
FilterRule |
newRule(String value)
Convenience factory method to create a new
FilterRule with name initialized to
this COSKeyFilter.FilterRuleName and value initialized to value
FilterRule prefixRule = FilterRuleName.Prefix.newRule("prefix-value");
|
static COSKeyFilter.FilterRuleName |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static COSKeyFilter.FilterRuleName[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final COSKeyFilter.FilterRuleName Prefix
public static COSKeyFilter.FilterRuleName[] values()
for (COSKeyFilter.FilterRuleName c : COSKeyFilter.FilterRuleName.values()) System.out.println(c);
public static COSKeyFilter.FilterRuleName valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public FilterRule newRule()
FilterRule with name initialized to
this COSKeyFilter.FilterRuleName
FilterRule prefixRule = FilterRuleName.Prefix.newRule().withValue("prefix-value");
FilterRule with name initialized to this COSKeyFilter.FilterRuleNamepublic FilterRule newRule(String value)
FilterRule with name initialized to
this COSKeyFilter.FilterRuleName and value initialized to value
FilterRule prefixRule = FilterRuleName.Prefix.newRule("prefix-value");
FilterRule with name initialized to this COSKeyFilter.FilterRuleNameCopyright © 2020. All rights reserved.