Package com.ngrok.definitions
Class EndpointWebhookValidation.Builder
java.lang.Object
com.ngrok.definitions.EndpointWebhookValidation.Builder
- Enclosing class:
- EndpointWebhookValidation
Builder class for
EndpointWebhookValidation.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Constructs theEndpointWebhookValidationinstance.enabled(boolean enabled) trueif the module will be applied to traffic,falseto disable.trueif the module will be applied to traffic,falseto disable.a string indicating which webhook provider will be sending webhooks to this endpoint.a string indicating which webhook provider will be sending webhooks to this endpoint.a string secret used to validate requests from the given provider.a string secret used to validate requests from the given provider.
-
Method Details
-
enabled
trueif the module will be applied to traffic,falseto disable. defaulttrueif unspecified- Parameters:
enabled- the value of theenabledparameter as aboolean- Returns:
- this builder instance
-
enabled
trueif the module will be applied to traffic,falseto disable. defaulttrueif unspecified- Parameters:
enabled- the value of theenabledparameter as aboolean, wrapped in anOptional- Returns:
- this builder instance
-
provider
a string indicating which webhook provider will be sending webhooks to this endpoint. Value must be one of the supported providers:SLACK,SNS,STRIPE,GITHUB,TWILIO,SHOPIFY,GITLAB,INTERCOM,SENDGRID,XERO,PAGERDUTY.- Parameters:
provider- the value of theproviderparameter as aString- Returns:
- this builder instance
-
provider
a string indicating which webhook provider will be sending webhooks to this endpoint. Value must be one of the supported providers:SLACK,SNS,STRIPE,GITHUB,TWILIO,SHOPIFY,GITLAB,INTERCOM,SENDGRID,XERO,PAGERDUTY. -
secret
a string secret used to validate requests from the given provider. All providers except AWS SNS require a secret- Parameters:
secret- the value of thesecretparameter as aString- Returns:
- this builder instance
-
secret
a string secret used to validate requests from the given provider. All providers except AWS SNS require a secret -
build
Constructs theEndpointWebhookValidationinstance.- Returns:
- a new
EndpointWebhookValidation
-