Package com.datadog.api.client.v2.model
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this CommitmentsUnit object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The unit family (for example, percentage or money).getId()The unit identifier.getName()The unit name (for example, percent or dollar).The plural form of the unit name.The scale factor for the unit.The abbreviated unit name (for example, % or $).inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.scaleFactor(Double scaleFactor) voidvoidvoidvoidvoidsetScaleFactor(Double scaleFactor) voidsetShortName(String shortName) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_FAMILY
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_PLURAL
- See Also:
-
JSON_PROPERTY_SCALE_FACTOR
- See Also:
-
JSON_PROPERTY_SHORT_NAME
- See Also:
-
-
Constructor Details
-
CommitmentsUnit
public CommitmentsUnit() -
CommitmentsUnit
-
-
Method Details
-
family
-
getFamily
The unit family (for example, percentage or money).- Returns:
- family
-
setFamily
-
id
-
getId
The unit identifier.- Returns:
- id
-
setId
-
name
-
getName
The unit name (for example, percent or dollar).- Returns:
- name
-
setName
-
plural
-
getPlural
The plural form of the unit name.- Returns:
- plural
-
setPlural
-
scaleFactor
-
getScaleFactor
The scale factor for the unit.- Returns:
- scaleFactor
-
setScaleFactor
-
shortName
-
getShortName
The abbreviated unit name (for example, % or $).- Returns:
- shortName
-
setShortName
-
putAdditionalProperty
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 setvalue- The associated value- Returns:
- CommitmentsUnit
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
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
Return true if this CommitmentsUnit object is equal to o. -
hashCode
public int hashCode() -
toString
-