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