All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.databricks.sdk.service.jobs.SubmitRun Maven / Gradle / Ivy

// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.

package com.databricks.sdk.service.jobs;

import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Collection;
import java.util.Objects;

@Generated
public class SubmitRun {
  /** List of permissions to set on the job. */
  @JsonProperty("access_control_list")
  private Collection accessControlList;

  /**
   * An optional set of email addresses notified when the run begins or completes. The default
   * behavior is to not send any emails.
   */
  @JsonProperty("email_notifications")
  private JobEmailNotifications emailNotifications;

  /**
   * An optional specification for a remote repository containing the notebooks used by this job's
   * notebook tasks.
   */
  @JsonProperty("git_source")
  private GitSource gitSource;

  /** An optional set of health rules that can be defined for this job. */
  @JsonProperty("health")
  private JobsHealthRules health;

  /**
   * An optional token that can be used to guarantee the idempotency of job run requests. If a run
   * with the provided token already exists, the request does not create a new run but returns the
   * ID of the existing run instead. If a run with the provided token is deleted, an error is
   * returned.
   *
   * 

If you specify the idempotency token, upon failure you can retry until the request succeeds. * Databricks guarantees that exactly one run is launched with that idempotency token. * *

This token must have at most 64 characters. * *

For more information, see [How to ensure idempotency for jobs]. * *

[How to ensure idempotency for jobs]: https://kb.databricks.com/jobs/jobs-idempotency.html */ @JsonProperty("idempotency_token") private String idempotencyToken; /** * Optional notification settings that are used when sending notifications to each of the * `webhook_notifications` for this run. */ @JsonProperty("notification_settings") private JobNotificationSettings notificationSettings; /** An optional name for the run. The default value is `Untitled`. */ @JsonProperty("run_name") private String runName; /** */ @JsonProperty("tasks") private Collection tasks; /** * An optional timeout applied to each run of this job. The default behavior is to have no * timeout. */ @JsonProperty("timeout_seconds") private Long timeoutSeconds; /** * A collection of system notification IDs to notify when the run begins or completes. The default * behavior is to not send any system notifications. */ @JsonProperty("webhook_notifications") private WebhookNotifications webhookNotifications; public SubmitRun setAccessControlList( Collection accessControlList) { this.accessControlList = accessControlList; return this; } public Collection getAccessControlList() { return accessControlList; } public SubmitRun setEmailNotifications(JobEmailNotifications emailNotifications) { this.emailNotifications = emailNotifications; return this; } public JobEmailNotifications getEmailNotifications() { return emailNotifications; } public SubmitRun setGitSource(GitSource gitSource) { this.gitSource = gitSource; return this; } public GitSource getGitSource() { return gitSource; } public SubmitRun setHealth(JobsHealthRules health) { this.health = health; return this; } public JobsHealthRules getHealth() { return health; } public SubmitRun setIdempotencyToken(String idempotencyToken) { this.idempotencyToken = idempotencyToken; return this; } public String getIdempotencyToken() { return idempotencyToken; } public SubmitRun setNotificationSettings(JobNotificationSettings notificationSettings) { this.notificationSettings = notificationSettings; return this; } public JobNotificationSettings getNotificationSettings() { return notificationSettings; } public SubmitRun setRunName(String runName) { this.runName = runName; return this; } public String getRunName() { return runName; } public SubmitRun setTasks(Collection tasks) { this.tasks = tasks; return this; } public Collection getTasks() { return tasks; } public SubmitRun setTimeoutSeconds(Long timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } public Long getTimeoutSeconds() { return timeoutSeconds; } public SubmitRun setWebhookNotifications(WebhookNotifications webhookNotifications) { this.webhookNotifications = webhookNotifications; return this; } public WebhookNotifications getWebhookNotifications() { return webhookNotifications; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; SubmitRun that = (SubmitRun) o; return Objects.equals(accessControlList, that.accessControlList) && Objects.equals(emailNotifications, that.emailNotifications) && Objects.equals(gitSource, that.gitSource) && Objects.equals(health, that.health) && Objects.equals(idempotencyToken, that.idempotencyToken) && Objects.equals(notificationSettings, that.notificationSettings) && Objects.equals(runName, that.runName) && Objects.equals(tasks, that.tasks) && Objects.equals(timeoutSeconds, that.timeoutSeconds) && Objects.equals(webhookNotifications, that.webhookNotifications); } @Override public int hashCode() { return Objects.hash( accessControlList, emailNotifications, gitSource, health, idempotencyToken, notificationSettings, runName, tasks, timeoutSeconds, webhookNotifications); } @Override public String toString() { return new ToStringer(SubmitRun.class) .add("accessControlList", accessControlList) .add("emailNotifications", emailNotifications) .add("gitSource", gitSource) .add("health", health) .add("idempotencyToken", idempotencyToken) .add("notificationSettings", notificationSettings) .add("runName", runName) .add("tasks", tasks) .add("timeoutSeconds", timeoutSeconds) .add("webhookNotifications", webhookNotifications) .toString(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy