Class Metric
- java.lang.Object
-
- software.amazon.awssdk.aws.greengrass.model.Metric
-
- All Implemented Interfaces:
EventStreamJsonMessage
public class Metric extends Object implements EventStreamJsonMessage
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPPLICATION_MODEL_TYPEstatic MetricVOID
-
Constructor Summary
Constructors Constructor Description Metric()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object rhs)StringgetApplicationModelType()Returns the named model type.StringgetName()MetricUnitTypegetUnit()StringgetUnitAsString()DoublegetValue()inthashCode()voidsetName(String name)voidsetUnit(String unit)voidsetUnit(MetricUnitType unit)voidsetValue(Double value)MetricwithName(String name)MetricwithUnit(String unit)MetricwithUnit(MetricUnitType unit)MetricwithValue(Double value)-
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage
fromJson, isVoid, postFromJson, toPayload
-
-
-
-
Field Detail
-
APPLICATION_MODEL_TYPE
public static final String APPLICATION_MODEL_TYPE
- See Also:
- Constant Field Values
-
VOID
public static final Metric VOID
-
-
Method Detail
-
getName
public String getName()
-
setName
public void setName(String name)
-
getUnit
public MetricUnitType getUnit()
-
getUnitAsString
public String getUnitAsString()
-
setUnit
public void setUnit(String unit)
-
setUnit
public void setUnit(MetricUnitType unit)
-
withUnit
public Metric withUnit(MetricUnitType unit)
-
getValue
public Double getValue()
-
setValue
public void setValue(Double value)
-
getApplicationModelType
public String getApplicationModelType()
Description copied from interface:EventStreamJsonMessageReturns the named model type. May be used for a header.- Specified by:
getApplicationModelTypein interfaceEventStreamJsonMessage- Returns:
- the named model type
-
-