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 |
withDescription(String value)
Sets the value of Description
|
OnEventOptions.Builder |
withEventPattern(EventPattern value)
Sets the value of EventPattern
|
OnEventOptions.Builder |
withRuleName(String value)
Sets the value of RuleName
|
OnEventOptions.Builder |
withTarget(IRuleTarget value)
Sets the value of Target
|
public OnEventOptions.Builder withTarget(IRuleTarget value)
value - The target to register for the event.thispublic OnEventOptions.Builder withDescription(@Nullable String value)
value - A description of the rule's purpose.thispublic OnEventOptions.Builder withEventPattern(@Nullable EventPattern value)
value - Additional restrictions for the event to route to the specified target.thispublic OnEventOptions.Builder withRuleName(@Nullable String value)
value - A name for the rule.thispublic OnEventOptions build()
OnEventOptionsNullPointerException - if any required attribute was not providedCopyright © 2019. All rights reserved.