Interface HeaderMatchPattern.Builder

All Superinterfaces:
Buildable, CopyableBuilder<HeaderMatchPattern.Builder,HeaderMatchPattern>, SdkBuilder<HeaderMatchPattern.Builder,HeaderMatchPattern>, SdkPojo
Enclosing class:
HeaderMatchPattern

public static interface HeaderMatchPattern.Builder extends SdkPojo, CopyableBuilder<HeaderMatchPattern.Builder,HeaderMatchPattern>
  • Method Details

    • all

      Inspect all headers.

      Parameters:
      all - Inspect all headers.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • all

      Inspect all headers.

      This is a convenience method that creates an instance of the All.Builder avoiding the need to create one manually via All.builder().

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

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

      HeaderMatchPattern.Builder includedHeaders(Collection<String> includedHeaders)

      Inspect only the headers that have a key that matches one of the strings specified here.

      Parameters:
      includedHeaders - Inspect only the headers that have a key that matches one of the strings specified here.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • includedHeaders

      HeaderMatchPattern.Builder includedHeaders(String... includedHeaders)

      Inspect only the headers that have a key that matches one of the strings specified here.

      Parameters:
      includedHeaders - Inspect only the headers that have a key that matches one of the strings specified here.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • excludedHeaders

      HeaderMatchPattern.Builder excludedHeaders(Collection<String> excludedHeaders)

      Inspect only the headers whose keys don't match any of the strings specified here.

      Parameters:
      excludedHeaders - Inspect only the headers whose keys don't match any of the strings specified here.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • excludedHeaders

      HeaderMatchPattern.Builder excludedHeaders(String... excludedHeaders)

      Inspect only the headers whose keys don't match any of the strings specified here.

      Parameters:
      excludedHeaders - Inspect only the headers whose keys don't match any of the strings specified here.
      Returns:
      Returns a reference to this object so that method calls can be chained together.