public static class WebhookEvent.Builder extends Object
| 构造器和说明 |
|---|
Builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
WebhookEvent.Builder |
basePackageNames(String... basePackageNames) |
WebhookEvent |
build() |
static WebhookEvent.Builder |
build(Object source,
String title) |
WebhookEvent.Builder |
consumer(java.util.function.Consumer<BaseWebhookRequestBody> consumer) |
WebhookEvent.Builder |
noticeUrl(String noticeUrl) |
WebhookEvent.Builder |
noticeUrl(String noticeUrl,
String secret) |
WebhookEvent.Builder |
throwable(Throwable throwable) |
WebhookEvent.Builder |
throwable(Throwable throwable,
String... basePackageNames) |
WebhookEvent.Builder |
userIdList(List<String> userIdList) |
WebhookEvent.Builder |
userMobileList(List<String> userMobileList) |
public static WebhookEvent.Builder build(Object source, String title)
public WebhookEvent.Builder throwable(Throwable throwable)
public WebhookEvent.Builder throwable(Throwable throwable, String... basePackageNames)
public WebhookEvent.Builder basePackageNames(String... basePackageNames)
public WebhookEvent.Builder consumer(java.util.function.Consumer<BaseWebhookRequestBody> consumer)
public WebhookEvent.Builder userIdList(List<String> userIdList)
public WebhookEvent.Builder userMobileList(List<String> userMobileList)
public WebhookEvent.Builder noticeUrl(String noticeUrl)
public WebhookEvent.Builder noticeUrl(String noticeUrl, String secret)
public WebhookEvent build()
Copyright © 2022. All rights reserved.