类 WebhookEvent.Builder
- java.lang.Object
-
- cn.woodwhales.common.webhook.event.WebhookEvent.Builder
-
- 封闭类:
- WebhookEvent
public static class WebhookEvent.Builder extends Object
-
-
构造器概要
构造器 构造器 说明 Builder()
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 WebhookEvent.BuilderbasePackageNames(String... basePackageNames)WebhookEventbuild()static WebhookEvent.Builderbuild(Object source, String title)WebhookEvent.Builderconsumer(java.util.function.Consumer<BaseWebhookRequestBody> consumer)WebhookEvent.BuildernoticeUrl(String noticeUrl)WebhookEvent.BuildernoticeUrl(String noticeUrl, String secret)WebhookEvent.Builderthrowable(Throwable throwable)WebhookEvent.Builderthrowable(Throwable throwable, String... basePackageNames)WebhookEvent.BuilderuserIdList(List<String> userIdList)WebhookEvent.BuilderuserMobileList(List<String> userMobileList)
-
-
-
方法详细资料
-
build
public static WebhookEvent.Builder build(Object source, String title)
-
throwable
public WebhookEvent.Builder throwable(Throwable throwable)
-
throwable
public WebhookEvent.Builder throwable(Throwable throwable, String... basePackageNames)
-
basePackageNames
public WebhookEvent.Builder basePackageNames(String... basePackageNames)
-
consumer
public WebhookEvent.Builder consumer(java.util.function.Consumer<BaseWebhookRequestBody> consumer)
-
userIdList
public WebhookEvent.Builder userIdList(List<String> userIdList)
-
userMobileList
public WebhookEvent.Builder userMobileList(List<String> userMobileList)
-
noticeUrl
public WebhookEvent.Builder noticeUrl(String noticeUrl)
-
noticeUrl
public WebhookEvent.Builder noticeUrl(String noticeUrl, String secret)
-
build
public WebhookEvent build()
-
-