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

com.databricks.sdk.service.dashboards.ListDashboardsRequest 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.dashboards;

import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.QueryParam;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.Objects;

/** List dashboards */
@Generated
public class ListDashboardsRequest {
  /** The number of dashboards to return per page. */
  @JsonIgnore
  @QueryParam("page_size")
  private Long pageSize;

  /**
   * A page token, received from a previous `ListDashboards` call. This token can be used to
   * retrieve the subsequent page.
   */
  @JsonIgnore
  @QueryParam("page_token")
  private String pageToken;

  /**
   * The flag to include dashboards located in the trash. If unspecified, only active dashboards
   * will be returned.
   */
  @JsonIgnore
  @QueryParam("show_trashed")
  private Boolean showTrashed;

  /** `DASHBOARD_VIEW_BASIC`only includes summary metadata from the dashboard. */
  @JsonIgnore
  @QueryParam("view")
  private DashboardView view;

  public ListDashboardsRequest setPageSize(Long pageSize) {
    this.pageSize = pageSize;
    return this;
  }

  public Long getPageSize() {
    return pageSize;
  }

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

  public String getPageToken() {
    return pageToken;
  }

  public ListDashboardsRequest setShowTrashed(Boolean showTrashed) {
    this.showTrashed = showTrashed;
    return this;
  }

  public Boolean getShowTrashed() {
    return showTrashed;
  }

  public ListDashboardsRequest setView(DashboardView view) {
    this.view = view;
    return this;
  }

  public DashboardView getView() {
    return view;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    ListDashboardsRequest that = (ListDashboardsRequest) o;
    return Objects.equals(pageSize, that.pageSize)
        && Objects.equals(pageToken, that.pageToken)
        && Objects.equals(showTrashed, that.showTrashed)
        && Objects.equals(view, that.view);
  }

  @Override
  public int hashCode() {
    return Objects.hash(pageSize, pageToken, showTrashed, view);
  }

  @Override
  public String toString() {
    return new ToStringer(ListDashboardsRequest.class)
        .add("pageSize", pageSize)
        .add("pageToken", pageToken)
        .add("showTrashed", showTrashed)
        .add("view", view)
        .toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy