yangys
2024-03-27 44028c2d1a7f21da831cb07ecb1b4a7873d8627b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package com.qianwen.core.notify.executor;
 
import com.qianwen.core.notify.DefaultNotifyType;
import org.springframework.util.Assert;
 
/* loaded from: blade-starter-notify-9.3.0.0-SNAPSHOT.jar:org/springblade/core/notify/executor/RuleNotifierProperties.class */
public class RuleNotifierProperties {
    private DefaultNotifyType notifyType;
    private String notifierId;
    private String templateId;
 
    public RuleNotifierProperties setNotifyType(final DefaultNotifyType notifyType) {
        this.notifyType = notifyType;
        return this;
    }
 
    public RuleNotifierProperties setNotifierId(final String notifierId) {
        this.notifierId = notifierId;
        return this;
    }
 
    public RuleNotifierProperties setTemplateId(final String templateId) {
        this.templateId = templateId;
        return this;
    }
 
    public DefaultNotifyType getNotifyType() {
        return this.notifyType;
    }
 
    public String getNotifierId() {
        return this.notifierId;
    }
 
    public String getTemplateId() {
        return this.templateId;
    }
 
    public void validate() {
        Assert.notNull(this.notifyType, "notifyType can not be null");
        Assert.hasText(this.notifierId, "notifierId can not be empty");
    }
}