Interface RuleCondition.Builder

  • Method Details

    • hostHeader

      RuleCondition.Builder hostHeader(String 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

      RuleCondition.Builder hostHeaderWildcard(String 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

      RuleCondition.Builder pathPrefix(String 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

      RuleCondition.Builder pathExact(String 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

      RuleCondition.Builder queryStringEquals(QueryStringKeyValuePair 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 the QueryStringKeyValuePair.Builder avoiding the need to create one manually via QueryStringKeyValuePair.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to queryStringEquals(QueryStringKeyValuePair).

      Parameters:
      queryStringEquals - a consumer that will call methods on QueryStringKeyValuePair.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • queryStringExists

      RuleCondition.Builder queryStringExists(String 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.