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

com.databricks.sdk.service.billing.Budget 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.ToStringer;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Collection;
import java.util.Objects;

/** Budget configuration to be created. */
@Generated
public class Budget {
  /** */
  @JsonProperty("alerts")
  private Collection alerts;

  /** Optional end date of the budget. */
  @JsonProperty("end_date")
  private String endDate;

  /**
   * SQL-like filter expression with workspaceId, SKU and tag. Usage in your account that matches
   * this expression will be counted in this budget.
   *
   * 

Supported properties on left-hand side of comparison: * `workspaceId` - the ID of the * workspace * `sku` - SKU of the cluster, e.g. `STANDARD_ALL_PURPOSE_COMPUTE` * `tag.tagName`, * `tag.'tag name'` - tag of the cluster * *

Supported comparison operators: * `=` - equal * `!=` - not equal * *

Supported logical operators: `AND`, `OR`. * *

Examples: * `workspaceId=123 OR (sku='STANDARD_ALL_PURPOSE_COMPUTE' AND tag.'my tag'='my * value')` * `workspaceId!=456` * `sku='STANDARD_ALL_PURPOSE_COMPUTE' OR * sku='PREMIUM_ALL_PURPOSE_COMPUTE'` * `tag.name1='value1' AND tag.name2='value2'` */ @JsonProperty("filter") private String filter; /** Human-readable name of the budget. */ @JsonProperty("name") private String name; /** * Period length in years, months, weeks and/or days. Examples: `1 month`, `30 days`, `1 year, 2 * months, 1 week, 2 days` */ @JsonProperty("period") private String period; /** Start date of the budget period calculation. */ @JsonProperty("start_date") private String startDate; /** Target amount of the budget per period in USD. */ @JsonProperty("target_amount") private String targetAmount; public Budget setAlerts(Collection alerts) { this.alerts = alerts; return this; } public Collection getAlerts() { return alerts; } public Budget setEndDate(String endDate) { this.endDate = endDate; return this; } public String getEndDate() { return endDate; } public Budget setFilter(String filter) { this.filter = filter; return this; } public String getFilter() { return filter; } public Budget setName(String name) { this.name = name; return this; } public String getName() { return name; } public Budget setPeriod(String period) { this.period = period; return this; } public String getPeriod() { return period; } public Budget setStartDate(String startDate) { this.startDate = startDate; return this; } public String getStartDate() { return startDate; } public Budget setTargetAmount(String targetAmount) { this.targetAmount = targetAmount; return this; } public String getTargetAmount() { return targetAmount; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Budget that = (Budget) o; return Objects.equals(alerts, that.alerts) && Objects.equals(endDate, that.endDate) && Objects.equals(filter, that.filter) && Objects.equals(name, that.name) && Objects.equals(period, that.period) && Objects.equals(startDate, that.startDate) && Objects.equals(targetAmount, that.targetAmount); } @Override public int hashCode() { return Objects.hash(alerts, endDate, filter, name, period, startDate, targetAmount); } @Override public String toString() { return new ToStringer(Budget.class) .add("alerts", alerts) .add("endDate", endDate) .add("filter", filter) .add("name", name) .add("period", period) .add("startDate", startDate) .add("targetAmount", targetAmount) .toString(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy