Interface RuleCondition.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RuleCondition.Builder,,RuleCondition> SdkBuilder<RuleCondition.Builder,,RuleCondition> SdkPojo
- Enclosing class:
RuleCondition
@Mutable
@NotThreadSafe
public static interface RuleCondition.Builder
extends SdkPojo, CopyableBuilder<RuleCondition.Builder,RuleCondition>
-
Method Summary
Modifier and TypeMethodDescriptionhostHeader(String hostHeader) Exact host match — RFC 3986 unreserved charactershostHeaderWildcard(String hostHeaderWildcard) Wildcard host pattern (e.g., *.example.com) — RFC 3986 unreserved plus *Exact path match — must start with /; RFC 3986 unreserved plus /pathPrefix(String pathPrefix) Path prefix matching — strict starts-with, no wildcard (preferred for new rules).default RuleCondition.BuilderqueryStringEquals(Consumer<QueryStringKeyValuePair.Builder> queryStringEquals) Query string key=value pair match (single pair)queryStringEquals(QueryStringKeyValuePair queryStringEquals) Query string key=value pair match (single pair)queryStringExists(String queryStringExists) Query string key presence check (any value accepted) — RFC 3986 unreserved charactersMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
hostHeader
Exact host match — RFC 3986 unreserved characters
- Parameters:
hostHeader- Exact host match — RFC 3986 unreserved characters- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hostHeaderWildcard
Wildcard host pattern (e.g., *.example.com) — RFC 3986 unreserved plus *
- Parameters:
hostHeaderWildcard- Wildcard host pattern (e.g., *.example.com) — RFC 3986 unreserved plus *- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pathPrefix
Path prefix matching — strict starts-with, no wildcard (preferred for new rules). Must start with /; RFC 3986 unreserved plus /
- Parameters:
pathPrefix- Path prefix matching — strict starts-with, no wildcard (preferred for new rules). Must start with /; RFC 3986 unreserved plus /- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pathExact
Exact path match — must start with /; RFC 3986 unreserved plus /
- Parameters:
pathExact- Exact path match — must start with /; RFC 3986 unreserved plus /- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queryStringEquals
Query string key=value pair match (single pair)
- Parameters:
queryStringEquals- Query string key=value pair match (single pair)- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queryStringEquals
default RuleCondition.Builder queryStringEquals(Consumer<QueryStringKeyValuePair.Builder> queryStringEquals) Query string key=value pair match (single pair)
This is a convenience method that creates an instance of theQueryStringKeyValuePair.Builderavoiding the need to create one manually viaQueryStringKeyValuePair.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toqueryStringEquals(QueryStringKeyValuePair).- Parameters:
queryStringEquals- a consumer that will call methods onQueryStringKeyValuePair.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
queryStringExists
Query string key presence check (any value accepted) — RFC 3986 unreserved characters
- Parameters:
queryStringExists- Query string key presence check (any value accepted) — RFC 3986 unreserved characters- Returns:
- Returns a reference to this object so that method calls can be chained together.
-