Class BudgetAttributes

java.lang.Object
com.datadog.api.client.v2.model.BudgetAttributes

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class BudgetAttributes extends Object
The attributes of a budget.
  • Field Details

  • Constructor Details

    • BudgetAttributes

      public BudgetAttributes()
  • Method Details

    • costs

    • getCosts

      @Nullable public BudgetAttributesCosts getCosts()
      Aggregated cost data for the budget over the requested period.
      Returns:
      costs
    • setCosts

      public void setCosts(BudgetAttributesCosts costs)
    • costsPeriodEnd

      public BudgetAttributes costsPeriodEnd(Long costsPeriodEnd)
    • getCostsPeriodEnd

      @Nullable public Long getCostsPeriodEnd()
      The end of the period used to compute cost data, in milliseconds since epoch.
      Returns:
      costsPeriodEnd
    • setCostsPeriodEnd

      public void setCostsPeriodEnd(Long costsPeriodEnd)
    • costsPeriodStart

      public BudgetAttributes costsPeriodStart(Long costsPeriodStart)
    • getCostsPeriodStart

      @Nullable public Long getCostsPeriodStart()
      The start of the period used to compute cost data, in milliseconds since epoch.
      Returns:
      costsPeriodStart
    • setCostsPeriodStart

      public void setCostsPeriodStart(Long costsPeriodStart)
    • costsUnit

      public BudgetAttributes costsUnit(BudgetAttributesCostsUnit costsUnit)
    • getCostsUnit

      @Nullable public BudgetAttributesCostsUnit getCostsUnit()
      The unit used for all cost values in the response.
      Returns:
      costsUnit
    • setCostsUnit

      public void setCostsUnit(BudgetAttributesCostsUnit costsUnit)
    • createdAt

      public BudgetAttributes createdAt(Long createdAt)
    • getCreatedAt

      @Nullable public Long getCreatedAt()
      The timestamp when the budget was created.
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(Long createdAt)
    • createdBy

      public BudgetAttributes createdBy(String createdBy)
    • getCreatedBy

      @Nullable public String getCreatedBy()
      The id of the user that created the budget.
      Returns:
      createdBy
    • setCreatedBy

      public void setCreatedBy(String createdBy)
    • endMonth

      public BudgetAttributes endMonth(Long endMonth)
    • getEndMonth

      @Nullable public Long getEndMonth()
      The month when the budget ends.
      Returns:
      endMonth
    • setEndMonth

      public void setEndMonth(Long endMonth)
    • entries

    • addEntriesItem

    • getEntries

      @Nullable public List<BudgetWithEntriesDataAttributesEntriesItems> getEntries()
      The list of monthly budget entries.
      Returns:
      entries
    • setEntries

      public void setEntries(List<BudgetWithEntriesDataAttributesEntriesItems> entries)
    • metricsQuery

      public BudgetAttributes metricsQuery(String metricsQuery)
    • getMetricsQuery

      @Nullable public String getMetricsQuery()
      The cost query used to track against the budget.
      Returns:
      metricsQuery
    • setMetricsQuery

      public void setMetricsQuery(String metricsQuery)
    • name

      public BudgetAttributes name(String name)
    • getName

      @Nullable public String getName()
      The name of the budget.
      Returns:
      name
    • setName

      public void setName(String name)
    • orgId

      public BudgetAttributes orgId(Long orgId)
    • getOrgId

      @Nullable public Long getOrgId()
      The id of the org the budget belongs to.
      Returns:
      orgId
    • setOrgId

      public void setOrgId(Long orgId)
    • startMonth

      public BudgetAttributes startMonth(Long startMonth)
    • getStartMonth

      @Nullable public Long getStartMonth()
      The month when the budget starts.
      Returns:
      startMonth
    • setStartMonth

      public void setStartMonth(Long startMonth)
    • tags

      public BudgetAttributes tags(List<String> tags)
    • addTagsItem

      public BudgetAttributes addTagsItem(String tagsItem)
    • getTags

      @Nullable public List<String> getTags()
      The tag keys used to group costs for the budget.
      Returns:
      tags
    • setTags

      public void setTags(List<String> tags)
    • totalAmount

      public BudgetAttributes totalAmount(Double totalAmount)
    • getTotalAmount

      @Nullable public Double getTotalAmount()
      The sum of all budget entries' amounts.
      Returns:
      totalAmount
    • setTotalAmount

      public void setTotalAmount(Double totalAmount)
    • updatedAt

      public BudgetAttributes updatedAt(Long updatedAt)
    • getUpdatedAt

      @Nullable public Long getUpdatedAt()
      The timestamp when the budget was last updated.
      Returns:
      updatedAt
    • setUpdatedAt

      public void setUpdatedAt(Long updatedAt)
    • updatedBy

      public BudgetAttributes updatedBy(String updatedBy)
    • getUpdatedBy

      @Nullable public String getUpdatedBy()
      The id of the user that created the budget.
      Returns:
      updatedBy
    • setUpdatedBy

      public void setUpdatedBy(String updatedBy)
    • putAdditionalProperty

      public BudgetAttributes putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - The arbitrary key to set
      value - The associated value
      Returns:
      BudgetAttributes
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      The additional properties
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - The arbitrary key to get
      Returns:
      The specific additional property for the given key
    • equals

      public boolean equals(Object o)
      Return true if this BudgetAttributes object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object