@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RuleCondition extends Object implements Serializable, Cloneable
Information about a condition for a rule.
Constructor and Description |
---|
RuleCondition() |
public void setField(String field)
The name of the field. The possible values are host-header
and path-pattern
.
field
- The name of the field. The possible values are host-header
and path-pattern
.public String getField()
The name of the field. The possible values are host-header
and path-pattern
.
host-header
and path-pattern
.public RuleCondition withField(String field)
The name of the field. The possible values are host-header
and path-pattern
.
field
- The name of the field. The possible values are host-header
and path-pattern
.public List<String> getValues()
The condition value.
If the field name is host-header
, you can specify a single host name (for example, my.example.com).
A host name is case insensitive, can be up to 128 characters in length, and can contain any of the following
characters. You can include up to three wildcard characters.
A-Z, a-z, 0-9
- .
* (matches 0 or more characters)
? (matches exactly 1 character)
If the field name is path-pattern
, you can specify a single path pattern (for example, /img/*). A
path pattern is case-sensitive, can be up to 128 characters in length, and can contain any of the following
characters. You can include up to three wildcard characters.
A-Z, a-z, 0-9
_ - . $ / ~ " ' @ : +
& (using &)
* (matches 0 or more characters)
? (matches exactly 1 character)
If the field name is host-header
, you can specify a single host name (for example,
my.example.com). A host name is case insensitive, can be up to 128 characters in length, and can contain
any of the following characters. You can include up to three wildcard characters.
A-Z, a-z, 0-9
- .
(matches 0 or more characters)
? (matches exactly 1 character)
If the field name is path-pattern
, you can specify a single path pattern (for example,
/img/*). A path pattern is case-sensitive, can be up to 128 characters in length, and can contain any of
the following characters. You can include up to three wildcard characters.
A-Z, a-z, 0-9
_ - . $ / ~ " ' @ : +
& (using &)
(matches 0 or more characters)
? (matches exactly 1 character)
public void setValues(Collection<String> values)
The condition value.
If the field name is host-header
, you can specify a single host name (for example, my.example.com).
A host name is case insensitive, can be up to 128 characters in length, and can contain any of the following
characters. You can include up to three wildcard characters.
A-Z, a-z, 0-9
- .
* (matches 0 or more characters)
? (matches exactly 1 character)
If the field name is path-pattern
, you can specify a single path pattern (for example, /img/*). A
path pattern is case-sensitive, can be up to 128 characters in length, and can contain any of the following
characters. You can include up to three wildcard characters.
A-Z, a-z, 0-9
_ - . $ / ~ " ' @ : +
& (using &)
* (matches 0 or more characters)
? (matches exactly 1 character)
values
- The condition value.
If the field name is host-header
, you can specify a single host name (for example,
my.example.com). A host name is case insensitive, can be up to 128 characters in length, and can contain
any of the following characters. You can include up to three wildcard characters.
A-Z, a-z, 0-9
- .
(matches 0 or more characters)
? (matches exactly 1 character)
If the field name is path-pattern
, you can specify a single path pattern (for example,
/img/*). A path pattern is case-sensitive, can be up to 128 characters in length, and can contain any of
the following characters. You can include up to three wildcard characters.
A-Z, a-z, 0-9
_ - . $ / ~ " ' @ : +
& (using &)
(matches 0 or more characters)
? (matches exactly 1 character)
public RuleCondition withValues(String... values)
The condition value.
If the field name is host-header
, you can specify a single host name (for example, my.example.com).
A host name is case insensitive, can be up to 128 characters in length, and can contain any of the following
characters. You can include up to three wildcard characters.
A-Z, a-z, 0-9
- .
* (matches 0 or more characters)
? (matches exactly 1 character)
If the field name is path-pattern
, you can specify a single path pattern (for example, /img/*). A
path pattern is case-sensitive, can be up to 128 characters in length, and can contain any of the following
characters. You can include up to three wildcard characters.
A-Z, a-z, 0-9
_ - . $ / ~ " ' @ : +
& (using &)
* (matches 0 or more characters)
? (matches exactly 1 character)
NOTE: This method appends the values to the existing list (if any). Use
setValues(java.util.Collection)
or withValues(java.util.Collection)
if you want to override the
existing values.
values
- The condition value.
If the field name is host-header
, you can specify a single host name (for example,
my.example.com). A host name is case insensitive, can be up to 128 characters in length, and can contain
any of the following characters. You can include up to three wildcard characters.
A-Z, a-z, 0-9
- .
(matches 0 or more characters)
? (matches exactly 1 character)
If the field name is path-pattern
, you can specify a single path pattern (for example,
/img/*). A path pattern is case-sensitive, can be up to 128 characters in length, and can contain any of
the following characters. You can include up to three wildcard characters.
A-Z, a-z, 0-9
_ - . $ / ~ " ' @ : +
& (using &)
(matches 0 or more characters)
? (matches exactly 1 character)
public RuleCondition withValues(Collection<String> values)
The condition value.
If the field name is host-header
, you can specify a single host name (for example, my.example.com).
A host name is case insensitive, can be up to 128 characters in length, and can contain any of the following
characters. You can include up to three wildcard characters.
A-Z, a-z, 0-9
- .
* (matches 0 or more characters)
? (matches exactly 1 character)
If the field name is path-pattern
, you can specify a single path pattern (for example, /img/*). A
path pattern is case-sensitive, can be up to 128 characters in length, and can contain any of the following
characters. You can include up to three wildcard characters.
A-Z, a-z, 0-9
_ - . $ / ~ " ' @ : +
& (using &)
* (matches 0 or more characters)
? (matches exactly 1 character)
values
- The condition value.
If the field name is host-header
, you can specify a single host name (for example,
my.example.com). A host name is case insensitive, can be up to 128 characters in length, and can contain
any of the following characters. You can include up to three wildcard characters.
A-Z, a-z, 0-9
- .
(matches 0 or more characters)
? (matches exactly 1 character)
If the field name is path-pattern
, you can specify a single path pattern (for example,
/img/*). A path pattern is case-sensitive, can be up to 128 characters in length, and can contain any of
the following characters. You can include up to three wildcard characters.
A-Z, a-z, 0-9
_ - . $ / ~ " ' @ : +
& (using &)
(matches 0 or more characters)
? (matches exactly 1 character)
public void setHostHeaderConfig(HostHeaderConditionConfig hostHeaderConfig)
hostHeaderConfig
- public HostHeaderConditionConfig getHostHeaderConfig()
public RuleCondition withHostHeaderConfig(HostHeaderConditionConfig hostHeaderConfig)
hostHeaderConfig
- public void setPathPatternConfig(PathPatternConditionConfig pathPatternConfig)
pathPatternConfig
- public PathPatternConditionConfig getPathPatternConfig()
public RuleCondition withPathPatternConfig(PathPatternConditionConfig pathPatternConfig)
pathPatternConfig
- public void setHttpHeaderConfig(HttpHeaderConditionConfig httpHeaderConfig)
httpHeaderConfig
- public HttpHeaderConditionConfig getHttpHeaderConfig()
public RuleCondition withHttpHeaderConfig(HttpHeaderConditionConfig httpHeaderConfig)
httpHeaderConfig
- public void setQueryStringConfig(QueryStringConditionConfig queryStringConfig)
queryStringConfig
- public QueryStringConditionConfig getQueryStringConfig()
public RuleCondition withQueryStringConfig(QueryStringConditionConfig queryStringConfig)
queryStringConfig
- public void setHttpRequestMethodConfig(HttpRequestMethodConditionConfig httpRequestMethodConfig)
httpRequestMethodConfig
- public HttpRequestMethodConditionConfig getHttpRequestMethodConfig()
public RuleCondition withHttpRequestMethodConfig(HttpRequestMethodConditionConfig httpRequestMethodConfig)
httpRequestMethodConfig
- public void setSourceIpConfig(SourceIpConditionConfig sourceIpConfig)
sourceIpConfig
- public SourceIpConditionConfig getSourceIpConfig()
public RuleCondition withSourceIpConfig(SourceIpConditionConfig sourceIpConfig)
sourceIpConfig
- public String toString()
toString
in class Object
Object.toString()
public RuleCondition clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.