Class Trigger.Builder
java.lang.Object
com.google.genai.gaos.models.triggers.Trigger.Builder
- Enclosing class:
- Trigger
-
Method Summary
Modifier and TypeMethodDescriptionbuild()consecutiveFailureCount(Integer consecutiveFailureCount) Output only.createTime(OffsetDateTime createTime) Output only.displayName(String displayName) Optional.environmentId(String environmentId) Optional.executionTimeoutSeconds(Integer executionTimeoutSeconds) Optional.Required.interaction(Interaction interaction) The Interaction resource.lastPauseTime(OffsetDateTime lastPauseTime) Output only.lastResumeTime(OffsetDateTime lastResumeTime) Output only.lastRunTime(OffsetDateTime lastRunTime) Output only.maxConsecutiveFailures(Integer maxConsecutiveFailures) Optional.nextRunTime(OffsetDateTime nextRunTime) Output only.previousInteractionId(String previousInteractionId) Output only.Required.status(TriggerStatus status) Output only.Required.updateTime(OffsetDateTime updateTime) Output only.
-
Method Details
-
consecutiveFailureCount
Output only. The number of consecutive failures that have occurred since the last successful execution. -
createTime
Output only. The time when the trigger was created. -
displayName
Optional. The display name of the trigger. -
environmentId
Optional. The environment ID for the trigger execution. -
executionTimeoutSeconds
Optional. The execution timeout for the triggered interaction. -
id
Required. Output only. Identifier.The ID of the trigger.
-
interaction
The Interaction resource. -
lastPauseTime
Output only. The time when the trigger was last paused. -
lastResumeTime
Output only. The time when the trigger was last resumed. -
lastRunTime
Output only. The time when the trigger was last run. -
maxConsecutiveFailures
Optional. The maximum number of consecutive failures allowed before the trigger is automatically paused (status becomes ERROR). -
nextRunTime
Output only. The time when the trigger is scheduled to run next. -
previousInteractionId
Output only. The ID of the last interaction created by this trigger. -
schedule
Required. The cron schedule on which the trigger should run. Standard cron format. -
status
Output only. The current status of the trigger. -
timeZone
Required. Time zone in which the schedule should be interpreted. -
updateTime
Output only. The time when the trigger was last updated. -
build
-