Interface Rule.Builder

    • Method Detail

      • 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.
      • 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

        Rule.Builder actions​(Consumer<RuleAction.Builder>... 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).

        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:
        #actions(java.util.Collection)
      • 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:
        RulePublishStatus, RulePublishStatus
      • 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

        Rule.Builder tags​(Map<String,​String> 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.