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

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

There is a newer version: 0.35.0
Show newest version
// 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.Objects;

/** Job was retrieved successfully. */
@Generated
public class Job {
  /**
   * The time at which this job was created in epoch milliseconds (milliseconds since 1/1/1970 UTC).
   */
  @JsonProperty("created_time")
  private Long createdTime;

  /**
   * The creator user name. This field won’t be included in the response if the user has already
   * been deleted.
   */
  @JsonProperty("creator_user_name")
  private String creatorUserName;

  /** The canonical identifier for this job. */
  @JsonProperty("job_id")
  private Long jobId;

  /**
   * The email of an active workspace user or the application ID of a service principal that the job
   * runs as. This value can be changed by setting the `run_as` field when creating or updating a
   * job.
   *
   * 

By default, `run_as_user_name` is based on the current job settings and is set to the * creator of the job if job access control is disabled or to the user with the `is_owner` * permission if job access control is enabled. */ @JsonProperty("run_as_user_name") private String runAsUserName; /** * Settings for this job and all of its runs. These settings can be updated using the `resetJob` * method. */ @JsonProperty("settings") private JobSettings settings; public Job setCreatedTime(Long createdTime) { this.createdTime = createdTime; return this; } public Long getCreatedTime() { return createdTime; } public Job setCreatorUserName(String creatorUserName) { this.creatorUserName = creatorUserName; return this; } public String getCreatorUserName() { return creatorUserName; } public Job setJobId(Long jobId) { this.jobId = jobId; return this; } public Long getJobId() { return jobId; } public Job setRunAsUserName(String runAsUserName) { this.runAsUserName = runAsUserName; return this; } public String getRunAsUserName() { return runAsUserName; } public Job setSettings(JobSettings settings) { this.settings = settings; return this; } public JobSettings getSettings() { return settings; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Job that = (Job) o; return Objects.equals(createdTime, that.createdTime) && Objects.equals(creatorUserName, that.creatorUserName) && Objects.equals(jobId, that.jobId) && Objects.equals(runAsUserName, that.runAsUserName) && Objects.equals(settings, that.settings); } @Override public int hashCode() { return Objects.hash(createdTime, creatorUserName, jobId, runAsUserName, settings); } @Override public String toString() { return new ToStringer(Job.class) .add("createdTime", createdTime) .add("creatorUserName", creatorUserName) .add("jobId", jobId) .add("runAsUserName", runAsUserName) .add("settings", settings) .toString(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy