public static final class WebhooksCreateWebhookRequest.Builder extends Object
| Modifier and Type | Method | Description |
|---|---|---|
WebhooksCreateWebhookResponse |
call() |
Calls createWebhook method, Create a webhook, which functions like an event listener
|
String |
data() |
Get Data to encapsulate in webhook
|
WebhooksCreateWebhookRequest.Builder |
data(String value) |
Set Data to encapsulate in webhook
|
String[] |
events() |
Get Array of event names for which to register webhook
|
WebhooksCreateWebhookRequest.Builder |
events(String[] value) |
Set Array of event names for which to register webhook
|
String |
filter() |
Get Context for webhook, in one of two forms: "{DocumentId} = '[did]' && {WorkspaceId} = '[wid]' && {ElementId} = '[eid]'" or "{UserId} = '[uid]' && {ClientId} = 'cid'" [did] is a document ID, etc., but the components in brackets and the quotes must remain exactly as written, in the same order
|
WebhooksCreateWebhookRequest.Builder |
filter(String value) |
Set Context for webhook, in one of two forms: "{DocumentId} = '[did]' && {WorkspaceId} = '[wid]' && {ElementId} = '[eid]'" or "{UserId} = '[uid]' && {ClientId} = 'cid'" [did] is a document ID, etc., but the components in brackets and the quotes must remain exactly as written, in the same order
|
Map |
options() |
Get Options object, with one optional field: collapseEvents, which is set to true/false and says whether similar events should be collapsed into one notification
|
WebhooksCreateWebhookRequest.Builder |
options(Map value) |
Set Options object, with one optional field: collapseEvents, which is set to true/false and says whether similar events should be collapsed into one notification
|
String |
url() |
Get URL to which to send notifications
|
WebhooksCreateWebhookRequest.Builder |
url(String value) |
Set URL to which to send notifications
|
public final String url()
public final WebhooksCreateWebhookRequest.Builder url(String value)
value - URL to which to send notificationspublic final String[] events()
public final WebhooksCreateWebhookRequest.Builder events(String[] value)
value - Array of event names for which to register webhookpublic final String filter()
public final WebhooksCreateWebhookRequest.Builder filter(String value)
value - Context for webhook, in one of two forms: "{DocumentId} = '[did]' && {WorkspaceId} = '[wid]' && {ElementId} = '[eid]'" or "{UserId} = '[uid]' && {ClientId} = 'cid'" [did] is a document ID, etc., but the components in brackets and the quotes must remain exactly as written, in the same orderpublic final Map options()
public final WebhooksCreateWebhookRequest.Builder options(Map value)
value - Options object, with one optional field: collapseEvents, which is set to true/false and says whether similar events should be collapsed into one notificationpublic final String data()
public final WebhooksCreateWebhookRequest.Builder data(String value)
value - Data to encapsulate in webhookpublic final WebhooksCreateWebhookResponse call() throws OnshapeException
OnshapeException - On HTTP or serialization errorCopyright © 2021. All rights reserved.