Class Trigger.Builder

java.lang.Object
com.google.genai.gaos.models.triggers.Trigger.Builder
Enclosing class:
Trigger

public static final class Trigger.Builder extends Object
  • Method Details

    • consecutiveFailureCount

      public Trigger.Builder consecutiveFailureCount(@Nullable Integer consecutiveFailureCount)
      Output only. The number of consecutive failures that have occurred since the last successful execution.
    • createTime

      public Trigger.Builder createTime(@Nullable OffsetDateTime createTime)
      Output only. The time when the trigger was created.
    • displayName

      public Trigger.Builder displayName(@Nullable String displayName)
      Optional. The display name of the trigger.
    • environmentId

      public Trigger.Builder environmentId(@Nullable String environmentId)
      Optional. The environment ID for the trigger execution.
    • executionTimeoutSeconds

      public Trigger.Builder executionTimeoutSeconds(@Nullable Integer executionTimeoutSeconds)
      Optional. The execution timeout for the triggered interaction.
    • id

      public Trigger.Builder id(@Nonnull String id)
      Required. Output only. Identifier.

      The ID of the trigger.

    • interaction

      public Trigger.Builder interaction(@Nonnull Interaction interaction)
      The Interaction resource.
    • lastPauseTime

      public Trigger.Builder lastPauseTime(@Nullable OffsetDateTime lastPauseTime)
      Output only. The time when the trigger was last paused.
    • lastResumeTime

      public Trigger.Builder lastResumeTime(@Nullable OffsetDateTime lastResumeTime)
      Output only. The time when the trigger was last resumed.
    • lastRunTime

      public Trigger.Builder lastRunTime(@Nullable OffsetDateTime lastRunTime)
      Output only. The time when the trigger was last run.
    • maxConsecutiveFailures

      public Trigger.Builder maxConsecutiveFailures(@Nullable Integer maxConsecutiveFailures)
      Optional. The maximum number of consecutive failures allowed before the trigger is automatically paused (status becomes ERROR).
    • nextRunTime

      public Trigger.Builder nextRunTime(@Nullable OffsetDateTime nextRunTime)
      Output only. The time when the trigger is scheduled to run next.
    • previousInteractionId

      public Trigger.Builder previousInteractionId(@Nullable String previousInteractionId)
      Output only. The ID of the last interaction created by this trigger.
    • schedule

      public Trigger.Builder schedule(@Nonnull String schedule)
      Required. The cron schedule on which the trigger should run. Standard cron format.
    • status

      public Trigger.Builder status(@Nullable TriggerStatus status)
      Output only. The current status of the trigger.
    • timeZone

      public Trigger.Builder timeZone(@Nonnull String timeZone)
      Required. Time zone in which the schedule should be interpreted.
    • updateTime

      public Trigger.Builder updateTime(@Nullable OffsetDateTime updateTime)
      Output only. The time when the trigger was last updated.
    • build

      public Trigger build()