Interface Trigger.Builder

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

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

    • description

      Trigger.Builder description(String description)

      The description for a trigger.

      Parameters:
      description - The description for a trigger.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • targetRegion

      Trigger.Builder targetRegion(String targetRegion)

      The Amazon Web Services Region for a trigger.

      Parameters:
      targetRegion - The Amazon Web Services Region for a trigger.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • action

      Trigger.Builder action(String action)

      The action to perform when the trigger fires. Valid values include ACTIVATE and DEACTIVATE.

      Parameters:
      action - The action to perform when the trigger fires. Valid values include ACTIVATE and DEACTIVATE.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • action

      The action to perform when the trigger fires. Valid values include ACTIVATE and DEACTIVATE.

      Parameters:
      action - The action to perform when the trigger fires. Valid values include ACTIVATE and DEACTIVATE.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • conditions

      Trigger.Builder conditions(Collection<TriggerCondition> conditions)

      The conditions that must be met for the trigger to fire.

      Parameters:
      conditions - The conditions that must be met for the trigger to fire.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • conditions

      Trigger.Builder conditions(TriggerCondition... conditions)

      The conditions that must be met for the trigger to fire.

      Parameters:
      conditions - The conditions that must be met for the trigger to fire.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • conditions

      The conditions that must be met for the trigger to fire.

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

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

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

      Trigger.Builder minDelayMinutesBetweenExecutions(Integer minDelayMinutesBetweenExecutions)

      The minimum time, in minutes, that must elapse between automatic executions of the plan.

      Parameters:
      minDelayMinutesBetweenExecutions - The minimum time, in minutes, that must elapse between automatic executions of the plan.
      Returns:
      Returns a reference to this object so that method calls can be chained together.