All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.databricks.sdk.service.billing.BudgetConfiguration Maven / Gradle / Ivy

There is a newer version: 0.35.0
Show newest version
// 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.ToStringer;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Collection;
import java.util.Objects;

@Generated
public class BudgetConfiguration {
  /** Databricks account ID. */
  @JsonProperty("account_id")
  private String accountId;

  /**
   * Alerts to configure when this budget is in a triggered state. Budgets must have exactly one
   * alert configuration.
   */
  @JsonProperty("alert_configurations")
  private Collection alertConfigurations;

  /** Databricks budget configuration ID. */
  @JsonProperty("budget_configuration_id")
  private String budgetConfigurationId;

  /** Creation time of this budget configuration. */
  @JsonProperty("create_time")
  private Long createTime;

  /** Human-readable name of budget configuration. Max Length: 128 */
  @JsonProperty("display_name")
  private String displayName;

  /**
   * Configured filters for this budget. These are applied to your account's usage to limit the
   * scope of what is considered for this budget. Leave empty to include all usage for this account.
   * All provided filters must be matched for usage to be included.
   */
  @JsonProperty("filter")
  private BudgetConfigurationFilter filter;

  /** Update time of this budget configuration. */
  @JsonProperty("update_time")
  private Long updateTime;

  public BudgetConfiguration setAccountId(String accountId) {
    this.accountId = accountId;
    return this;
  }

  public String getAccountId() {
    return accountId;
  }

  public BudgetConfiguration setAlertConfigurations(
      Collection alertConfigurations) {
    this.alertConfigurations = alertConfigurations;
    return this;
  }

  public Collection getAlertConfigurations() {
    return alertConfigurations;
  }

  public BudgetConfiguration setBudgetConfigurationId(String budgetConfigurationId) {
    this.budgetConfigurationId = budgetConfigurationId;
    return this;
  }

  public String getBudgetConfigurationId() {
    return budgetConfigurationId;
  }

  public BudgetConfiguration setCreateTime(Long createTime) {
    this.createTime = createTime;
    return this;
  }

  public Long getCreateTime() {
    return createTime;
  }

  public BudgetConfiguration setDisplayName(String displayName) {
    this.displayName = displayName;
    return this;
  }

  public String getDisplayName() {
    return displayName;
  }

  public BudgetConfiguration setFilter(BudgetConfigurationFilter filter) {
    this.filter = filter;
    return this;
  }

  public BudgetConfigurationFilter getFilter() {
    return filter;
  }

  public BudgetConfiguration setUpdateTime(Long updateTime) {
    this.updateTime = updateTime;
    return this;
  }

  public Long getUpdateTime() {
    return updateTime;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    BudgetConfiguration that = (BudgetConfiguration) o;
    return Objects.equals(accountId, that.accountId)
        && Objects.equals(alertConfigurations, that.alertConfigurations)
        && Objects.equals(budgetConfigurationId, that.budgetConfigurationId)
        && Objects.equals(createTime, that.createTime)
        && Objects.equals(displayName, that.displayName)
        && Objects.equals(filter, that.filter)
        && Objects.equals(updateTime, that.updateTime);
  }

  @Override
  public int hashCode() {
    return Objects.hash(
        accountId,
        alertConfigurations,
        budgetConfigurationId,
        createTime,
        displayName,
        filter,
        updateTime);
  }

  @Override
  public String toString() {
    return new ToStringer(BudgetConfiguration.class)
        .add("accountId", accountId)
        .add("alertConfigurations", alertConfigurations)
        .add("budgetConfigurationId", budgetConfigurationId)
        .add("createTime", createTime)
        .add("displayName", displayName)
        .add("filter", filter)
        .add("updateTime", updateTime)
        .toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy