Interface TriggerUpdate.Builder

    • Method Detail

      • name

        TriggerUpdate.Builder name​(String name)

        Reserved for future use.

        Parameters:
        name - Reserved for future use.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • description

        TriggerUpdate.Builder description​(String description)

        A description of this trigger.

        Parameters:
        description - A description of this trigger.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • schedule

        TriggerUpdate.Builder schedule​(String schedule)

        A cron expression used to specify the schedule (see Time-Based Schedules for Jobs and Crawlers. For example, to run something every day at 12:15 UTC, you would specify: cron(15 12 * * ? *).

        Parameters:
        schedule - A cron expression used to specify the schedule (see Time-Based Schedules for Jobs and Crawlers. For example, to run something every day at 12:15 UTC, you would specify: cron(15 12 * * ? *).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • actions

        TriggerUpdate.Builder actions​(Collection<Action> actions)

        The actions initiated by this trigger.

        Parameters:
        actions - The actions initiated by this trigger.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • actions

        TriggerUpdate.Builder actions​(Action... actions)

        The actions initiated by this trigger.

        Parameters:
        actions - The actions initiated by this trigger.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • actions

        TriggerUpdate.Builder actions​(Consumer<Action.Builder>... actions)

        The actions initiated by this trigger.

        This is a convenience method that creates an instance of the Action.Builder avoiding the need to create one manually via Action.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 Action.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #actions(java.util.Collection)
      • predicate

        TriggerUpdate.Builder predicate​(Predicate predicate)

        The predicate of this trigger, which defines when it will fire.

        Parameters:
        predicate - The predicate of this trigger, which defines when it will fire.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • eventBatchingCondition

        TriggerUpdate.Builder eventBatchingCondition​(EventBatchingCondition eventBatchingCondition)

        Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.

        Parameters:
        eventBatchingCondition - Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.
        Returns:
        Returns a reference to this object so that method calls can be chained together.