com.databricks.sdk.service.dashboards.ListSubscriptionsResponse Maven / Gradle / Ivy
// 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.ToStringer;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Collection;
import java.util.Objects;
@Generated
public class ListSubscriptionsResponse {
/**
* A token that can be used as a `page_token` in subsequent requests to retrieve the next page of
* results. If this field is omitted, there are no subsequent subscriptions.
*/
@JsonProperty("next_page_token")
private String nextPageToken;
/** */
@JsonProperty("subscriptions")
private Collection subscriptions;
public ListSubscriptionsResponse setNextPageToken(String nextPageToken) {
this.nextPageToken = nextPageToken;
return this;
}
public String getNextPageToken() {
return nextPageToken;
}
public ListSubscriptionsResponse setSubscriptions(Collection subscriptions) {
this.subscriptions = subscriptions;
return this;
}
public Collection getSubscriptions() {
return subscriptions;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ListSubscriptionsResponse that = (ListSubscriptionsResponse) o;
return Objects.equals(nextPageToken, that.nextPageToken)
&& Objects.equals(subscriptions, that.subscriptions);
}
@Override
public int hashCode() {
return Objects.hash(nextPageToken, subscriptions);
}
@Override
public String toString() {
return new ToStringer(ListSubscriptionsResponse.class)
.add("nextPageToken", nextPageToken)
.add("subscriptions", subscriptions)
.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy