public class EventOptions extends Object
Constructor and Description |
---|
EventOptions()
Default constructor
|
EventOptions(EventOptions options)
Copy constructor
|
EventOptions(JsonObject options)
Constructor from JSON
|
Modifier and Type | Method and Description |
---|---|
String |
getNode()
Get regular expression to filter by node name
|
String |
getPayload()
Get payload of event
|
String |
getService()
Get regular expression to filter by service
|
String |
getTag()
Get regular expression to filter by tag
|
EventOptions |
setNode(String node)
Set regular expression to filter by node name
|
EventOptions |
setPayload(String payload)
Set payload of event
|
EventOptions |
setService(String service)
Set regular expression to filter by service
|
EventOptions |
setTag(String tag)
Set regular expression to filter by tag
|
JsonObject |
toJson()
Convert to JSON
|
public EventOptions()
public EventOptions(EventOptions options)
options
- the one to copypublic EventOptions(JsonObject options)
options
- the JSONpublic JsonObject toJson()
public String getNode()
public EventOptions setNode(String node)
node
- regular expression to filter by node namepublic String getService()
public EventOptions setService(String service)
service
- regular expression to filter by servicepublic String getTag()
public EventOptions setTag(String tag)
tag
- regular expression to filter by tagpublic String getPayload()
public EventOptions setPayload(String payload)
payload
- payload of eventCopyright © 2021 Eclipse. All rights reserved.