com.databricks.sdk.service.billing.GetBillingUsageDashboardRequest Maven / Gradle / Ivy
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.billing;
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 usage dashboard */
@Generated
public class GetBillingUsageDashboardRequest {
/**
* Workspace level usage dashboard shows usage data for the specified workspace ID. Global level
* usage dashboard shows usage data for all workspaces in the account.
*/
@JsonIgnore
@QueryParam("dashboard_type")
private UsageDashboardType dashboardType;
/** The workspace ID of the workspace in which the usage dashboard is created. */
@JsonIgnore
@QueryParam("workspace_id")
private Long workspaceId;
public GetBillingUsageDashboardRequest setDashboardType(UsageDashboardType dashboardType) {
this.dashboardType = dashboardType;
return this;
}
public UsageDashboardType getDashboardType() {
return dashboardType;
}
public GetBillingUsageDashboardRequest setWorkspaceId(Long workspaceId) {
this.workspaceId = workspaceId;
return this;
}
public Long getWorkspaceId() {
return workspaceId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
GetBillingUsageDashboardRequest that = (GetBillingUsageDashboardRequest) o;
return Objects.equals(dashboardType, that.dashboardType)
&& Objects.equals(workspaceId, that.workspaceId);
}
@Override
public int hashCode() {
return Objects.hash(dashboardType, workspaceId);
}
@Override
public String toString() {
return new ToStringer(GetBillingUsageDashboardRequest.class)
.add("dashboardType", dashboardType)
.add("workspaceId", workspaceId)
.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy