com.databricks.sdk.service.sharing.ListRecipientsRequest 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;
/** List share recipients */
@Generated
public class ListRecipientsRequest {
/**
* If not provided, all recipients will be returned. If no recipients exist with this ID, no
* results will be returned.
*/
@JsonIgnore
@QueryParam("data_recipient_global_metastore_id")
private String dataRecipientGlobalMetastoreId;
/**
* Maximum number of recipients 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 recipients are returned (not
* recommended). - Note: The number of returned recipients might be less than the specified
* max_results size, even zero. The only definitive indication that no further recipients can be
* fetched is when the next_page_token is unset from the response.
*/
@JsonIgnore
@QueryParam("max_results")
private Long maxResults;
/** Opaque pagination token to go to next page based on previous query. */
@JsonIgnore
@QueryParam("page_token")
private String pageToken;
public ListRecipientsRequest setDataRecipientGlobalMetastoreId(
String dataRecipientGlobalMetastoreId) {
this.dataRecipientGlobalMetastoreId = dataRecipientGlobalMetastoreId;
return this;
}
public String getDataRecipientGlobalMetastoreId() {
return dataRecipientGlobalMetastoreId;
}
public ListRecipientsRequest setMaxResults(Long maxResults) {
this.maxResults = maxResults;
return this;
}
public Long getMaxResults() {
return maxResults;
}
public ListRecipientsRequest 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;
ListRecipientsRequest that = (ListRecipientsRequest) o;
return Objects.equals(dataRecipientGlobalMetastoreId, that.dataRecipientGlobalMetastoreId)
&& Objects.equals(maxResults, that.maxResults)
&& Objects.equals(pageToken, that.pageToken);
}
@Override
public int hashCode() {
return Objects.hash(dataRecipientGlobalMetastoreId, maxResults, pageToken);
}
@Override
public String toString() {
return new ToStringer(ListRecipientsRequest.class)
.add("dataRecipientGlobalMetastoreId", dataRecipientGlobalMetastoreId)
.add("maxResults", maxResults)
.add("pageToken", pageToken)
.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy