@Generated(value="software.amazon.awssdk:codegen") public final class RuleCondition extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RuleCondition.Builder,RuleCondition>
Information about a condition for a rule.
Modifier and Type | Class and Description |
---|---|
static interface |
RuleCondition.Builder |
Modifier and Type | Method and Description |
---|---|
static RuleCondition.Builder |
builder() |
boolean |
equals(Object obj) |
String |
field()
The name of the field.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
HostHeaderConditionConfig |
hostHeaderConfig()
Returns the value of the HostHeaderConfig property for this object.
|
HttpHeaderConditionConfig |
httpHeaderConfig()
Returns the value of the HttpHeaderConfig property for this object.
|
HttpRequestMethodConditionConfig |
httpRequestMethodConfig()
Returns the value of the HttpRequestMethodConfig property for this object.
|
PathPatternConditionConfig |
pathPatternConfig()
Returns the value of the PathPatternConfig property for this object.
|
QueryStringConditionConfig |
queryStringConfig()
Returns the value of the QueryStringConfig property for this object.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends RuleCondition.Builder> |
serializableBuilderClass() |
RuleCondition.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
List<String> |
values()
The condition value.
|
copy
public String field()
The name of the field. The possible values are host-header
and path-pattern
.
host-header
and path-pattern
.public List<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)
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
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 HostHeaderConditionConfig hostHeaderConfig()
public PathPatternConditionConfig pathPatternConfig()
public HttpHeaderConditionConfig httpHeaderConfig()
public QueryStringConditionConfig queryStringConfig()
public HttpRequestMethodConditionConfig httpRequestMethodConfig()
public RuleCondition.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<RuleCondition.Builder,RuleCondition>
public static RuleCondition.Builder builder()
public static Class<? extends RuleCondition.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.