com.databricks.sdk.service.jobs.ListRunsResponse 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;
/** List of runs was retrieved successfully. */
@Generated
public class ListRunsResponse {
/** If true, additional runs matching the provided filter are available for listing. */
@JsonProperty("has_more")
private Boolean hasMore;
/** A token that can be used to list the next page of runs (if applicable). */
@JsonProperty("next_page_token")
private String nextPageToken;
/** A token that can be used to list the previous page of runs (if applicable). */
@JsonProperty("prev_page_token")
private String prevPageToken;
/**
* A list of runs, from most recently started to least. Only included in the response if there are
* runs to list.
*/
@JsonProperty("runs")
private Collection runs;
public ListRunsResponse setHasMore(Boolean hasMore) {
this.hasMore = hasMore;
return this;
}
public Boolean getHasMore() {
return hasMore;
}
public ListRunsResponse setNextPageToken(String nextPageToken) {
this.nextPageToken = nextPageToken;
return this;
}
public String getNextPageToken() {
return nextPageToken;
}
public ListRunsResponse setPrevPageToken(String prevPageToken) {
this.prevPageToken = prevPageToken;
return this;
}
public String getPrevPageToken() {
return prevPageToken;
}
public ListRunsResponse setRuns(Collection runs) {
this.runs = runs;
return this;
}
public Collection getRuns() {
return runs;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ListRunsResponse that = (ListRunsResponse) o;
return Objects.equals(hasMore, that.hasMore)
&& Objects.equals(nextPageToken, that.nextPageToken)
&& Objects.equals(prevPageToken, that.prevPageToken)
&& Objects.equals(runs, that.runs);
}
@Override
public int hashCode() {
return Objects.hash(hasMore, nextPageToken, prevPageToken, runs);
}
@Override
public String toString() {
return new ToStringer(ListRunsResponse.class)
.add("hasMore", hasMore)
.add("nextPageToken", nextPageToken)
.add("prevPageToken", prevPageToken)
.add("runs", runs)
.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy