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

com.databricks.sdk.service.compute.LibraryFullStatus 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.compute;

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;

/** The status of the library on a specific cluster. */
@Generated
public class LibraryFullStatus {
  /** Whether the library was set to be installed on all clusters via the libraries UI. */
  @JsonProperty("is_library_for_all_clusters")
  private Boolean isLibraryForAllClusters;

  /** Unique identifier for the library. */
  @JsonProperty("library")
  private Library library;

  /** All the info and warning messages that have occurred so far for this library. */
  @JsonProperty("messages")
  private Collection messages;

  /** Status of installing the library on the cluster. */
  @JsonProperty("status")
  private LibraryInstallStatus status;

  public LibraryFullStatus setIsLibraryForAllClusters(Boolean isLibraryForAllClusters) {
    this.isLibraryForAllClusters = isLibraryForAllClusters;
    return this;
  }

  public Boolean getIsLibraryForAllClusters() {
    return isLibraryForAllClusters;
  }

  public LibraryFullStatus setLibrary(Library library) {
    this.library = library;
    return this;
  }

  public Library getLibrary() {
    return library;
  }

  public LibraryFullStatus setMessages(Collection messages) {
    this.messages = messages;
    return this;
  }

  public Collection getMessages() {
    return messages;
  }

  public LibraryFullStatus setStatus(LibraryInstallStatus status) {
    this.status = status;
    return this;
  }

  public LibraryInstallStatus getStatus() {
    return status;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    LibraryFullStatus that = (LibraryFullStatus) o;
    return Objects.equals(isLibraryForAllClusters, that.isLibraryForAllClusters)
        && Objects.equals(library, that.library)
        && Objects.equals(messages, that.messages)
        && Objects.equals(status, that.status);
  }

  @Override
  public int hashCode() {
    return Objects.hash(isLibraryForAllClusters, library, messages, status);
  }

  @Override
  public String toString() {
    return new ToStringer(LibraryFullStatus.class)
        .add("isLibraryForAllClusters", isLibraryForAllClusters)
        .add("library", library)
        .add("messages", messages)
        .add("status", status)
        .toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy