public static final class WebhooksUpdateWebhookRequest.Builder extends Object
| Modifier and Type | Method | Description |
|---|---|---|
WebhooksUpdateWebhookResponse |
call(String webhookid) |
Calls updateWebhook method, Update a webhook
|
String |
data() |
Get Data to encapsulate in webhook
|
WebhooksUpdateWebhookRequest.Builder |
data(String value) |
Set Data to encapsulate in webhook
|
String[] |
events() |
Get Array of event names for which to register webhook
|
WebhooksUpdateWebhookRequest.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
|
WebhooksUpdateWebhookRequest.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
|
String |
id() |
Get ID of webhook to update (must match webhookid in path parameter)
|
WebhooksUpdateWebhookRequest.Builder |
id(String value) |
Set ID of webhook to update (must match webhookid in path parameter)
|
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
|
WebhooksUpdateWebhookRequest.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
|
WebhooksUpdateWebhookRequest.Builder |
url(String value) |
Set URL to which to send notifications
|
public final String id()
public final WebhooksUpdateWebhookRequest.Builder id(String value)
value - ID of webhook to update (must match webhookid in path parameter)public final String url()
public final WebhooksUpdateWebhookRequest.Builder url(String value)
value - URL to which to send notificationspublic final String[] events()
public final WebhooksUpdateWebhookRequest.Builder events(String[] value)
value - Array of event names for which to register webhookpublic final String filter()
public final WebhooksUpdateWebhookRequest.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 WebhooksUpdateWebhookRequest.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 WebhooksUpdateWebhookRequest.Builder data(String value)
value - Data to encapsulate in webhookpublic final WebhooksUpdateWebhookResponse call(String webhookid) throws OnshapeException
webhookid - ID of webhook to updateOnshapeException - On HTTP or serialization errorCopyright © 2021. All rights reserved.