com.databricks.sdk.service.jobs.SqlTaskDashboard 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;
@Generated
public class SqlTaskDashboard {
/** Subject of the email sent to subscribers of this task. */
@JsonProperty("custom_subject")
private String customSubject;
/** The canonical identifier of the SQL dashboard. */
@JsonProperty("dashboard_id")
private String dashboardId;
/** If true, the dashboard snapshot is not taken, and emails are not sent to subscribers. */
@JsonProperty("pause_subscriptions")
private Boolean pauseSubscriptions;
/** If specified, dashboard snapshots are sent to subscriptions. */
@JsonProperty("subscriptions")
private Collection subscriptions;
public SqlTaskDashboard setCustomSubject(String customSubject) {
this.customSubject = customSubject;
return this;
}
public String getCustomSubject() {
return customSubject;
}
public SqlTaskDashboard setDashboardId(String dashboardId) {
this.dashboardId = dashboardId;
return this;
}
public String getDashboardId() {
return dashboardId;
}
public SqlTaskDashboard setPauseSubscriptions(Boolean pauseSubscriptions) {
this.pauseSubscriptions = pauseSubscriptions;
return this;
}
public Boolean getPauseSubscriptions() {
return pauseSubscriptions;
}
public SqlTaskDashboard 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;
SqlTaskDashboard that = (SqlTaskDashboard) o;
return Objects.equals(customSubject, that.customSubject)
&& Objects.equals(dashboardId, that.dashboardId)
&& Objects.equals(pauseSubscriptions, that.pauseSubscriptions)
&& Objects.equals(subscriptions, that.subscriptions);
}
@Override
public int hashCode() {
return Objects.hash(customSubject, dashboardId, pauseSubscriptions, subscriptions);
}
@Override
public String toString() {
return new ToStringer(SqlTaskDashboard.class)
.add("customSubject", customSubject)
.add("dashboardId", dashboardId)
.add("pauseSubscriptions", pauseSubscriptions)
.add("subscriptions", subscriptions)
.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy