Class CustomHttpErrors.Builder

java.lang.Object
org.apache.beam.sdk.extensions.gcp.util.CustomHttpErrors.Builder
Enclosing class:
CustomHttpErrors

public static class CustomHttpErrors.Builder extends Object
A Builder which allows building immutable CustomHttpErrors object.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      public CustomHttpErrors build()
    • addErrorForCode

      public void addErrorForCode(int statusCode, String errorMessage)
      Adds a matcher to log the provided string if the error matches a particular status code.
    • addErrorForCodeAndUrlContains

      public void addErrorForCodeAndUrlContains(int statusCode, String urlContains, String errorMessage)
      Adds a matcher to log the provided string if the error matches a particular status code and the url contains a certain string.