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

    • triggerId

      Trigger.Builder triggerId(String triggerId)

      The unique identifier for this Trigger

      Parameters:
      triggerId - The unique identifier for this Trigger
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • agentSpaceId

      Trigger.Builder agentSpaceId(String agentSpaceId)

      The agent space this Trigger belongs to

      Parameters:
      agentSpaceId - The agent space this Trigger belongs to
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • type

      Trigger.Builder type(String type)

      How this Trigger fires

      Parameters:
      type - How this Trigger fires
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • condition

      Trigger.Builder condition(TriggerCondition condition)

      The condition that fires this Trigger

      Parameters:
      condition - The condition that fires this Trigger
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • condition

      default Trigger.Builder condition(Consumer<TriggerCondition.Builder> condition)

      The condition that fires this Trigger

      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 condition(TriggerCondition).

      Parameters:
      condition - 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:
    • action

      Trigger.Builder action(Document action)

      The action this Trigger performs when it fires

      Parameters:
      action - The action this Trigger performs when it fires
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      Trigger.Builder status(String status)

      The status of this Trigger

      Parameters:
      status - The status of this Trigger
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      Trigger.Builder createdAt(Instant createdAt)

      Timestamp when this Trigger was created

      Parameters:
      createdAt - Timestamp when this Trigger was created
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      Trigger.Builder updatedAt(Instant updatedAt)

      Timestamp when this Trigger was last updated

      Parameters:
      updatedAt - Timestamp when this Trigger was last updated
      Returns:
      Returns a reference to this object so that method calls can be chained together.