Class TriggerCreateParams

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

public class TriggerCreateParams extends Object
TriggerCreateParams

Parameters for creating a trigger.

  • Constructor Details

    • TriggerCreateParams

      public TriggerCreateParams(@Nullable String displayName, @Nullable String environmentId, @Nullable Integer executionTimeoutSeconds, @Nonnull Interaction interaction, @Nullable Integer maxConsecutiveFailures, @Nonnull String schedule, @Nonnull String timeZone)
    • TriggerCreateParams

      public TriggerCreateParams(@Nonnull Interaction interaction, @Nonnull String schedule, @Nonnull String timeZone)
  • Method Details

    • displayName

      public Optional<String> displayName()
      Optional. The display name of the trigger.
    • environmentId

      public Optional<String> environmentId()
      Optional. The environment ID for the trigger execution.
    • executionTimeoutSeconds

      public Optional<Integer> executionTimeoutSeconds()
      Optional. The execution timeout for the triggered interaction.
    • interaction

      public Optional<Interaction> interaction()
      Required. The interaction request template to be executed.
    • maxConsecutiveFailures

      public Optional<Integer> maxConsecutiveFailures()
      Optional. The maximum number of consecutive failures allowed before the trigger is automatically paused (status becomes ERROR).
    • schedule

      public Optional<String> schedule()
      Required. The cron schedule on which the trigger should run. Standard cron format.
    • timeZone

      public Optional<String> timeZone()
      Required. Time zone in which the schedule should be interpreted.
    • builder

      public static TriggerCreateParams.Builder builder()
    • withDisplayName

      public TriggerCreateParams withDisplayName(@Nullable String displayName)
      Optional. The display name of the trigger.
    • withEnvironmentId

      public TriggerCreateParams withEnvironmentId(@Nullable String environmentId)
      Optional. The environment ID for the trigger execution.
    • withExecutionTimeoutSeconds

      public TriggerCreateParams withExecutionTimeoutSeconds(@Nullable Integer executionTimeoutSeconds)
      Optional. The execution timeout for the triggered interaction.
    • withInteraction

      public TriggerCreateParams withInteraction(@Nonnull Interaction interaction)
      Required. The interaction request template to be executed.
    • withMaxConsecutiveFailures

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

      public TriggerCreateParams withSchedule(@Nonnull String schedule)
      Required. The cron schedule on which the trigger should run. Standard cron format.
    • withTimeZone

      public TriggerCreateParams withTimeZone(@Nonnull String timeZone)
      Required. Time zone in which the schedule should be interpreted.
    • 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