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 theEndpointWebhookValidation
instance.enabled
(boolean enabled) true
if the module will be applied to traffic,false
to disable.true
if the module will be applied to traffic,false
to 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
true
if the module will be applied to traffic,false
to disable. defaulttrue
if unspecified- Parameters:
enabled
- the value of theenabled
parameter as aboolean
- Returns:
- this builder instance
-
enabled
true
if the module will be applied to traffic,false
to disable. defaulttrue
if unspecified- Parameters:
enabled
- the value of theenabled
parameter 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 theprovider
parameter 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 thesecret
parameter 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 theEndpointWebhookValidation
instance.- Returns:
- a new
EndpointWebhookValidation
-