Class CustomHttpErrors.Builder
java.lang.Object
org.apache.beam.sdk.extensions.gcp.util.CustomHttpErrors.Builder
- Enclosing class:
- CustomHttpErrors
A Builder which allows building immutable CustomHttpErrors object.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddErrorForCode(int statusCode, String errorMessage) Adds a matcher to log the provided string if the error matches a particular status code.voidaddErrorForCodeAndUrlContains(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.build()
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
build
- 
addErrorForCodeAdds a matcher to log the provided string if the error matches a particular status code.
- 
addErrorForCodeAndUrlContainsAdds a matcher to log the provided string if the error matches a particular status code and the url contains a certain string.
 
-