public class AbstractNotification extends HeaderResponse
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractNotification.Filter
表示消息通知配置的过滤规则列表
|
| Modifier and Type | Field and Description |
|---|---|
protected List<EventTypeEnum> |
events |
protected AbstractNotification.Filter |
filter |
protected String |
id |
| Constructor and Description |
|---|
AbstractNotification() |
AbstractNotification(String id,
AbstractNotification.Filter filter,
List<EventTypeEnum> events)
构造函数
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getEvents()
Deprecated.
|
List<EventTypeEnum> |
getEventTypes()
获取需要发布通知消息的消息类型列表
|
AbstractNotification.Filter |
getFilter()
获取过滤规则组
|
String |
getId()
获取消息通知配置ID
|
void |
setEvents(List<String> events)
Deprecated.
|
void |
setEventTypes(List<EventTypeEnum> events)
设置需要发布通知消息的消息类型列表
|
void |
setFilter(AbstractNotification.Filter filter)
设置过滤规则组
|
void |
setId(String id)
设置消息通知配置ID
|
getOriginalHeaders, getRequestId, getResponseHeaders, getStatusCode, toStringprotected String id
protected AbstractNotification.Filter filter
protected List<EventTypeEnum> events
public AbstractNotification()
public AbstractNotification(String id, AbstractNotification.Filter filter, List<EventTypeEnum> events)
id - 消息通知配置IDfilter - 过滤规则组events - 需要发布通知消息的事件类型列表public String getId()
public void setId(String id)
id - 消息通知配置ID@Deprecated public List<String> getEvents()
@Deprecated public void setEvents(List<String> events)
public List<EventTypeEnum> getEventTypes()
public void setEventTypes(List<EventTypeEnum> events)
events - 消息类型列表public AbstractNotification.Filter getFilter()
public void setFilter(AbstractNotification.Filter filter)
filter - 过滤规则组Copyright © 2021. All rights reserved.