Class TriggerCreateParams
java.lang.Object
com.google.genai.gaos.models.triggers.TriggerCreateParams
TriggerCreateParams
Parameters for creating a trigger.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionTriggerCreateParams(Interaction interaction, String schedule, String timeZone) TriggerCreateParams(String displayName, String environmentId, Integer executionTimeoutSeconds, Interaction interaction, Integer maxConsecutiveFailures, String schedule, String timeZone) -
Method Summary
Modifier and TypeMethodDescriptionstatic TriggerCreateParams.Builderbuilder()Optional.Optional.booleanOptional.inthashCode()Required.Optional.schedule()Required.timeZone()Required.toString()withDisplayName(String displayName) Optional.withEnvironmentId(String environmentId) Optional.withExecutionTimeoutSeconds(Integer executionTimeoutSeconds) Optional.withInteraction(Interaction interaction) Required.withMaxConsecutiveFailures(Integer maxConsecutiveFailures) Optional.withSchedule(String schedule) Required.withTimeZone(String timeZone) Required.
-
Constructor Details
-
TriggerCreateParams
-
TriggerCreateParams
public TriggerCreateParams(@Nonnull Interaction interaction, @Nonnull String schedule, @Nonnull String timeZone)
-
-
Method Details
-
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. -
interaction
Required. The interaction request template to be executed. -
maxConsecutiveFailures
Optional. The maximum number of consecutive failures allowed before the trigger is automatically paused (status becomes ERROR). -
schedule
Required. The cron schedule on which the trigger should run. Standard cron format. -
timeZone
Required. Time zone in which the schedule should be interpreted. -
builder
-
withDisplayName
Optional. The display name of the trigger. -
withEnvironmentId
Optional. The environment ID for the trigger execution. -
withExecutionTimeoutSeconds
Optional. The execution timeout for the triggered interaction. -
withInteraction
Required. The interaction request template to be executed. -
withMaxConsecutiveFailures
Optional. The maximum number of consecutive failures allowed before the trigger is automatically paused (status becomes ERROR). -
withSchedule
Required. The cron schedule on which the trigger should run. Standard cron format. -
withTimeZone
Required. Time zone in which the schedule should be interpreted. -
equals
-
hashCode
public int hashCode() -
toString
-