Interface Rule.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Rule.Builder,Rule>, SdkBuilder<Rule.Builder,Rule>, SdkPojo
Enclosing class:
Rule

@Mutable @NotThreadSafe public static interface Rule.Builder extends SdkPojo, CopyableBuilder<Rule.Builder,Rule>
  • Method Details

    • name

      Rule.Builder name(String name)

      The name of the rule.

      Parameters:
      name - The name of the rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ruleId

      Rule.Builder ruleId(String ruleId)

      A unique identifier for the rule.

      Parameters:
      ruleId - A unique identifier for the rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ruleArn

      Rule.Builder ruleArn(String ruleArn)

      The Amazon Resource Name (ARN) of the rule.

      Parameters:
      ruleArn - The Amazon Resource Name (ARN) of the rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • triggerEventSource

      Rule.Builder triggerEventSource(RuleTriggerEventSource triggerEventSource)

      The event source to trigger the rule.

      Parameters:
      triggerEventSource - The event source to trigger the rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • triggerEventSource

      default Rule.Builder triggerEventSource(Consumer<RuleTriggerEventSource.Builder> triggerEventSource)

      The event source to trigger the rule.

      This is a convenience method that creates an instance of the RuleTriggerEventSource.Builder avoiding the need to create one manually via RuleTriggerEventSource.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to triggerEventSource(RuleTriggerEventSource).

      Parameters:
      triggerEventSource - a consumer that will call methods on RuleTriggerEventSource.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • function

      Rule.Builder function(String function)

      The conditions of the rule.

      Parameters:
      function - The conditions of the rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • actions

      Rule.Builder actions(Collection<RuleAction> actions)

      A list of actions to be run when the rule is triggered.

      Parameters:
      actions - A list of actions to be run when the rule is triggered.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • actions

      Rule.Builder actions(RuleAction... actions)

      A list of actions to be run when the rule is triggered.

      Parameters:
      actions - A list of actions to be run when the rule is triggered.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • actions

      A list of actions to be run when the rule is triggered.

      This is a convenience method that creates an instance of the RuleAction.Builder avoiding the need to create one manually via RuleAction.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to actions(List<RuleAction>).

      Parameters:
      actions - a consumer that will call methods on RuleAction.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • publishStatus

      Rule.Builder publishStatus(String publishStatus)

      The publish status of the rule.

      Parameters:
      publishStatus - The publish status of the rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • publishStatus

      Rule.Builder publishStatus(RulePublishStatus publishStatus)

      The publish status of the rule.

      Parameters:
      publishStatus - The publish status of the rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • createdTime

      Rule.Builder createdTime(Instant createdTime)

      The timestamp for when the rule was created.

      Parameters:
      createdTime - The timestamp for when the rule was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastUpdatedTime

      Rule.Builder lastUpdatedTime(Instant lastUpdatedTime)

      The timestamp for the when the rule was last updated.

      Parameters:
      lastUpdatedTime - The timestamp for the when the rule was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastUpdatedBy

      Rule.Builder lastUpdatedBy(String lastUpdatedBy)

      The Amazon Resource Name (ARN) of the user who last updated the rule.

      Parameters:
      lastUpdatedBy - The Amazon Resource Name (ARN) of the user who last updated the rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

      Parameters:
      tags - The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
      Returns:
      Returns a reference to this object so that method calls can be chained together.