Class TriggerExecution

java.lang.Object
com.google.genai.gaos.models.triggers.TriggerExecution

public class TriggerExecution extends Object
TriggerExecution

An execution instance of a trigger.

  • Constructor Details

  • Method Details

    • endTime

      public Optional<OffsetDateTime> endTime()
      Output only. The time when the execution finished.
    • environmentId

      public Optional<String> environmentId()
      Output only. The environment ID used for the execution.
    • error

      public Optional<String> error()
      Output only. The error message if the execution failed.
    • id

      public Optional<String> id()
      Required. Output only. Identifier.

      The ID of the trigger execution.

    • interactionId

      public Optional<String> interactionId()
      Output only. The ID of the interaction created by this execution, if any.
    • scheduledTime

      public Optional<OffsetDateTime> scheduledTime()
      Output only. The time when the execution was scheduled to run.
    • startTime

      public Optional<OffsetDateTime> startTime()
      Output only. The time when the execution started.
    • status

      public Optional<TriggerExecutionStatus> status()
      Output only. The status of the execution.
    • triggerId

      public Optional<String> triggerId()
      Required. Output only. Identifier.

      The ID of the trigger that created this execution.

    • builder

      public static TriggerExecution.Builder builder()
    • withEndTime

      public TriggerExecution withEndTime(@Nullable OffsetDateTime endTime)
      Output only. The time when the execution finished.
    • withEnvironmentId

      public TriggerExecution withEnvironmentId(@Nullable String environmentId)
      Output only. The environment ID used for the execution.
    • withError

      public TriggerExecution withError(@Nullable String error)
      Output only. The error message if the execution failed.
    • withId

      public TriggerExecution withId(@Nonnull String id)
      Required. Output only. Identifier.

      The ID of the trigger execution.

    • withInteractionId

      public TriggerExecution withInteractionId(@Nullable String interactionId)
      Output only. The ID of the interaction created by this execution, if any.
    • withScheduledTime

      public TriggerExecution withScheduledTime(@Nullable OffsetDateTime scheduledTime)
      Output only. The time when the execution was scheduled to run.
    • withStartTime

      public TriggerExecution withStartTime(@Nullable OffsetDateTime startTime)
      Output only. The time when the execution started.
    • withStatus

      public TriggerExecution withStatus(@Nullable TriggerExecutionStatus status)
      Output only. The status of the execution.
    • withTriggerId

      public TriggerExecution withTriggerId(@Nonnull String triggerId)
      Required. Output only. Identifier.

      The ID of the trigger that created this execution.

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object