| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
RuleProps |
build()
Builds the configured instance.
|
RuleProps.Builder |
withDescription(String value)
Sets the value of Description
|
RuleProps.Builder |
withEnabled(Boolean value)
Sets the value of Enabled
|
RuleProps.Builder |
withEventPattern(EventPattern value)
Sets the value of EventPattern
|
RuleProps.Builder |
withRuleName(String value)
Sets the value of RuleName
|
RuleProps.Builder |
withScheduleExpression(String value)
Sets the value of ScheduleExpression
|
RuleProps.Builder |
withTargets(List<IRuleTarget> value)
Sets the value of Targets
|
@Stability(value=Experimental) public RuleProps.Builder withDescription(@Nullable String value)
value - A description of the rule's purpose.this@Stability(value=Experimental) public RuleProps.Builder withEnabled(@Nullable Boolean value)
value - Indicates whether the rule is enabled.this@Stability(value=Experimental) public RuleProps.Builder withEventPattern(@Nullable EventPattern value)
value - Describes which events CloudWatch Events routes to the specified target. These routed events are matched events. For more information, see Events and Event Patterns in the Amazon CloudWatch User Guide.this@Stability(value=Experimental) public RuleProps.Builder withRuleName(@Nullable String value)
value - A name for the rule.this@Stability(value=Experimental) public RuleProps.Builder withScheduleExpression(@Nullable String value)
value - The schedule or rate (frequency) that determines when CloudWatch Events runs the rule.this@Stability(value=Experimental) public RuleProps.Builder withTargets(@Nullable List<IRuleTarget> value)
value - Targets to invoke when this rule matches an event.this@Stability(value=Experimental) public RuleProps build()
RulePropsNullPointerException - if any required attribute was not providedCopyright © 2019. All rights reserved.