public static final class EventRuleProps.Builder extends Object
EventRuleProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
EventRuleProps |
build()
Builds the configured instance.
|
EventRuleProps.Builder |
withDescription(String value)
Sets the value of Description
|
EventRuleProps.Builder |
withEnabled(Boolean value)
Sets the value of Enabled
|
EventRuleProps.Builder |
withEventPattern(EventPattern value)
Sets the value of EventPattern
|
EventRuleProps.Builder |
withRuleName(String value)
Sets the value of RuleName
|
EventRuleProps.Builder |
withScheduleExpression(String value)
Sets the value of ScheduleExpression
|
EventRuleProps.Builder |
withTargets(List<IEventRuleTarget> value)
Sets the value of Targets
|
public EventRuleProps.Builder withDescription(@Nullable String value)
value - A description of the rule's purpose.thispublic EventRuleProps.Builder withEnabled(@Nullable Boolean value)
value - Indicates whether the rule is enabled.thispublic EventRuleProps.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.thispublic EventRuleProps.Builder withRuleName(@Nullable String value)
value - A name for the rule.thispublic EventRuleProps.Builder withScheduleExpression(@Nullable String value)
value - The schedule or rate (frequency) that determines when CloudWatch Events runs the rule.thispublic EventRuleProps.Builder withTargets(@Nullable List<IEventRuleTarget> value)
value - Targets to invoke when this rule matches an event.thispublic EventRuleProps build()
EventRulePropsNullPointerException - if any required attribute was not providedCopyright © 2019. All rights reserved.