@Stability(value=Stable) public static final class OnEventOptions.Builder extends Object
OnEventOptions| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
OnEventOptions |
build()
Builds the configured instance.
|
OnEventOptions.Builder |
description(String description)
Sets the value of Description
|
OnEventOptions.Builder |
eventPattern(EventPattern eventPattern)
Sets the value of EventPattern
|
OnEventOptions.Builder |
ruleName(String ruleName)
Sets the value of RuleName
|
OnEventOptions.Builder |
target(IRuleTarget target)
Sets the value of Target
|
@Stability(value=Stable) public OnEventOptions.Builder description(String description)
description - A description of the rule's purpose.this@Stability(value=Stable) public OnEventOptions.Builder eventPattern(EventPattern eventPattern)
eventPattern - Additional restrictions for the event to route to the specified target.this@Stability(value=Stable) public OnEventOptions.Builder ruleName(String ruleName)
ruleName - A name for the rule.this@Stability(value=Stable) public OnEventOptions.Builder target(IRuleTarget target)
target - The target to register for the event.this@Stability(value=Stable) public OnEventOptions build()
OnEventOptionsNullPointerException - if any required attribute was not providedCopyright © 2019. All rights reserved.