com.databricks.sdk.service.sharing.SharePermissionsRequest Maven / Gradle / Ivy
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.sharing;
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;
/** Get recipient share permissions */
@Generated
public class SharePermissionsRequest {
/**
* Maximum number of permissions to return. - when set to 0, the page length is set to a server
* configured value (recommended); - when set to a value greater than 0, the page length is the
* minimum of this value and a server configured value; - when set to a value less than 0, an
* invalid parameter error is returned; - If not set, all valid permissions are returned (not
* recommended). - Note: The number of returned permissions might be less than the specified
* max_results size, even zero. The only definitive indication that no further permissions can be
* fetched is when the next_page_token is unset from the response.
*/
@JsonIgnore
@QueryParam("max_results")
private Long maxResults;
/** The name of the Recipient. */
@JsonIgnore private String name;
/** Opaque pagination token to go to next page based on previous query. */
@JsonIgnore
@QueryParam("page_token")
private String pageToken;
public SharePermissionsRequest setMaxResults(Long maxResults) {
this.maxResults = maxResults;
return this;
}
public Long getMaxResults() {
return maxResults;
}
public SharePermissionsRequest setName(String name) {
this.name = name;
return this;
}
public String getName() {
return name;
}
public SharePermissionsRequest setPageToken(String pageToken) {
this.pageToken = pageToken;
return this;
}
public String getPageToken() {
return pageToken;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
SharePermissionsRequest that = (SharePermissionsRequest) o;
return Objects.equals(maxResults, that.maxResults)
&& Objects.equals(name, that.name)
&& Objects.equals(pageToken, that.pageToken);
}
@Override
public int hashCode() {
return Objects.hash(maxResults, name, pageToken);
}
@Override
public String toString() {
return new ToStringer(SharePermissionsRequest.class)
.add("maxResults", maxResults)
.add("name", name)
.add("pageToken", pageToken)
.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy