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

com.databricks.sdk.service.ml.SearchExperiments 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.ml;

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 SearchExperiments {
  /** String representing a SQL filter condition (e.g. "name ILIKE 'my-experiment%'") */
  @JsonProperty("filter")
  private String filter;

  /** Maximum number of experiments desired. Max threshold is 3000. */
  @JsonProperty("max_results")
  private Long maxResults;

  /**
   * List of columns for ordering search results, which can include experiment name and last updated
   * timestamp with an optional "DESC" or "ASC" annotation, where "ASC" is the default. Tiebreaks
   * are done by experiment id DESC.
   */
  @JsonProperty("order_by")
  private Collection orderBy;

  /** Token indicating the page of experiments to fetch */
  @JsonProperty("page_token")
  private String pageToken;

  /**
   * Qualifier for type of experiments to be returned. If unspecified, return only active
   * experiments.
   */
  @JsonProperty("view_type")
  private SearchExperimentsViewType viewType;

  public SearchExperiments setFilter(String filter) {
    this.filter = filter;
    return this;
  }

  public String getFilter() {
    return filter;
  }

  public SearchExperiments setMaxResults(Long maxResults) {
    this.maxResults = maxResults;
    return this;
  }

  public Long getMaxResults() {
    return maxResults;
  }

  public SearchExperiments setOrderBy(Collection orderBy) {
    this.orderBy = orderBy;
    return this;
  }

  public Collection getOrderBy() {
    return orderBy;
  }

  public SearchExperiments setPageToken(String pageToken) {
    this.pageToken = pageToken;
    return this;
  }

  public String getPageToken() {
    return pageToken;
  }

  public SearchExperiments setViewType(SearchExperimentsViewType viewType) {
    this.viewType = viewType;
    return this;
  }

  public SearchExperimentsViewType getViewType() {
    return viewType;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    SearchExperiments that = (SearchExperiments) o;
    return Objects.equals(filter, that.filter)
        && Objects.equals(maxResults, that.maxResults)
        && Objects.equals(orderBy, that.orderBy)
        && Objects.equals(pageToken, that.pageToken)
        && Objects.equals(viewType, that.viewType);
  }

  @Override
  public int hashCode() {
    return Objects.hash(filter, maxResults, orderBy, pageToken, viewType);
  }

  @Override
  public String toString() {
    return new ToStringer(SearchExperiments.class)
        .add("filter", filter)
        .add("maxResults", maxResults)
        .add("orderBy", orderBy)
        .add("pageToken", pageToken)
        .add("viewType", viewType)
        .toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy