Class CommitmentsUnit

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class CommitmentsUnit extends Object
Unit metadata for a numeric metric.
  • Field Details

  • Constructor Details

    • CommitmentsUnit

      public CommitmentsUnit()
    • CommitmentsUnit

      public CommitmentsUnit(String family, Long id, String name, String plural, Double scaleFactor, String shortName)
  • Method Details

    • family

      public CommitmentsUnit family(String family)
    • getFamily

      public String getFamily()
      The unit family (for example, percentage or money).
      Returns:
      family
    • setFamily

      public void setFamily(String family)
    • id

      public CommitmentsUnit id(Long id)
    • getId

      public Long getId()
      The unit identifier.
      Returns:
      id
    • setId

      public void setId(Long id)
    • name

      public CommitmentsUnit name(String name)
    • getName

      public String getName()
      The unit name (for example, percent or dollar).
      Returns:
      name
    • setName

      public void setName(String name)
    • plural

      public CommitmentsUnit plural(String plural)
    • getPlural

      public String getPlural()
      The plural form of the unit name.
      Returns:
      plural
    • setPlural

      public void setPlural(String plural)
    • scaleFactor

      public CommitmentsUnit scaleFactor(Double scaleFactor)
    • getScaleFactor

      public Double getScaleFactor()
      The scale factor for the unit.
      Returns:
      scaleFactor
    • setScaleFactor

      public void setScaleFactor(Double scaleFactor)
    • shortName

      public CommitmentsUnit shortName(String shortName)
    • getShortName

      public String getShortName()
      The abbreviated unit name (for example, % or $).
      Returns:
      shortName
    • setShortName

      public void setShortName(String shortName)
    • putAdditionalProperty

      public CommitmentsUnit 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:
      CommitmentsUnit
    • 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 CommitmentsUnit 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