com.databricks.sdk.service.compute.ListClusterPoliciesRequest Maven / Gradle / Ivy
// 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.QueryParam;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.Objects;
/** List cluster policies */
@Generated
public class ListClusterPoliciesRequest {
/**
* The cluster policy attribute to sort by. * `POLICY_CREATION_TIME` - Sort result list by policy
* creation time. * `POLICY_NAME` - Sort result list by policy name.
*/
@JsonIgnore
@QueryParam("sort_column")
private ListSortColumn sortColumn;
/**
* The order in which the policies get listed. * `DESC` - Sort result list in descending order. *
* `ASC` - Sort result list in ascending order.
*/
@JsonIgnore
@QueryParam("sort_order")
private ListSortOrder sortOrder;
public ListClusterPoliciesRequest setSortColumn(ListSortColumn sortColumn) {
this.sortColumn = sortColumn;
return this;
}
public ListSortColumn getSortColumn() {
return sortColumn;
}
public ListClusterPoliciesRequest setSortOrder(ListSortOrder sortOrder) {
this.sortOrder = sortOrder;
return this;
}
public ListSortOrder getSortOrder() {
return sortOrder;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ListClusterPoliciesRequest that = (ListClusterPoliciesRequest) o;
return Objects.equals(sortColumn, that.sortColumn) && Objects.equals(sortOrder, that.sortOrder);
}
@Override
public int hashCode() {
return Objects.hash(sortColumn, sortOrder);
}
@Override
public String toString() {
return new ToStringer(ListClusterPoliciesRequest.class)
.add("sortColumn", sortColumn)
.add("sortOrder", sortOrder)
.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy