@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class Unit extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_PROPERTY_FAMILY |
static String |
JSON_PROPERTY_NAME |
static String |
JSON_PROPERTY_PLURAL |
static String |
JSON_PROPERTY_SCALE_FACTOR |
static String |
JSON_PROPERTY_SHORT_NAME |
boolean |
unparsed |
| Constructor and Description |
|---|
Unit() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Return true if this Unit object is equal to o.
|
Unit |
family(String family) |
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
String |
getFamily()
Unit family, allows for conversion between units of the same family, for scaling.
|
String |
getName()
Unit name
|
String |
getPlural()
Plural form of the unit name.
|
Double |
getScaleFactor()
Factor for scaling between units of the same family.
|
String |
getShortName()
Abbreviation of the unit.
|
int |
hashCode() |
Unit |
name(String name) |
Unit |
plural(String plural) |
Unit |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
Unit |
scaleFactor(Double scaleFactor) |
void |
setFamily(String family) |
void |
setName(String name) |
void |
setPlural(String plural) |
void |
setScaleFactor(Double scaleFactor) |
void |
setShortName(String shortName) |
Unit |
shortName(String shortName) |
String |
toString() |
public boolean unparsed
public static final String JSON_PROPERTY_FAMILY
public static final String JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_PLURAL
public static final String JSON_PROPERTY_SCALE_FACTOR
public static final String JSON_PROPERTY_SHORT_NAME
@Nullable public String getFamily()
public void setFamily(String family)
@Nullable public String getName()
public void setName(String name)
@Nullable public String getPlural()
public void setPlural(String plural)
@Nullable public Double getScaleFactor()
public void setScaleFactor(Double scaleFactor)
@Nullable public String getShortName()
public void setShortName(String shortName)
public Unit putAdditionalProperty(String key, Object value)
key - The arbitrary key to setvalue - The associated valuepublic Map<String,Object> getAdditionalProperties()
public Object getAdditionalProperty(String key)
key - The arbitrary key to getpublic boolean equals(Object o)
Copyright © 2024. All rights reserved.