Interface RuleCondition.Builder

  • Method Details

    • hostHeader

      RuleCondition.Builder hostHeader(String hostHeader)

      The exact host header value to match.

      Parameters:
      hostHeader - The exact host header value to match.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hostHeaderWildcard

      RuleCondition.Builder hostHeaderWildcard(String hostHeaderWildcard)

      A wildcard pattern for host header matching (for example, *.example.com).

      Parameters:
      hostHeaderWildcard - A wildcard pattern for host header matching (for example, *.example.com).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • pathPrefix

      RuleCondition.Builder pathPrefix(String pathPrefix)

      The path prefix to match. The request path must start with this value. Must start with /.

      Parameters:
      pathPrefix - The path prefix to match. The request path must start with this value. Must start with /.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • pathExact

      RuleCondition.Builder pathExact(String pathExact)

      The exact path to match. Must start with /.

      Parameters:
      pathExact - The exact path to match. Must start with /.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • queryStringEquals

      RuleCondition.Builder queryStringEquals(QueryStringKeyValuePair queryStringEquals)

      A query string key-value pair that must be present and match exactly.

      Parameters:
      queryStringEquals - A query string key-value pair that must be present and match exactly.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • queryStringEquals

      default RuleCondition.Builder queryStringEquals(Consumer<QueryStringKeyValuePair.Builder> queryStringEquals)

      A query string key-value pair that must be present and match exactly.

      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)

      A query string key that must be present in the request (any value is accepted).

      Parameters:
      queryStringExists - A query string key that must be present in the request (any value is accepted).
      Returns:
      Returns a reference to this object so that method calls can be chained together.