Class MetricUnit


  • @Generated(value="com.cloudera.cdp.client.codegen.CdpSDKJavaCodegen",
               date="2024-03-13T13:08:48.582-07:00")
    public class MetricUnit
    extends Object
    Metric unit
    • Constructor Detail

      • MetricUnit

        public MetricUnit()
    • Method Detail

      • getId

        public String getId()
        Getter for id. Id of the metric unit
      • setId

        public void setId​(String id)
        Setter for id. Id of the metric unit
      • getName

        public String getName()
        Getter for name. Name of the unit
      • setName

        public void setName​(String name)
        Setter for name. Name of the unit
      • getDisplayLabel

        public String getDisplayLabel()
        Getter for displayLabel. display label for the unit
      • setDisplayLabel

        public void setDisplayLabel​(String displayLabel)
        Setter for displayLabel. display label for the unit
      • getAbbreviation

        public String getAbbreviation()
        Getter for abbreviation. abbreviation used for this unit
      • setAbbreviation

        public void setAbbreviation​(String abbreviation)
        Setter for abbreviation. abbreviation used for this unit
      • getOrdinal

        public Integer getOrdinal()
        Getter for ordinal. ordinal used when positioning the unit in a list (sort order)
      • setOrdinal

        public void setOrdinal​(Integer ordinal)
        Setter for ordinal. ordinal used when positioning the unit in a list (sort order)
      • getConversionValue

        public Long getConversionValue()
        Getter for conversionValue. conversion value to use when converting between units
      • setConversionValue

        public void setConversionValue​(Long conversionValue)
        Setter for conversionValue. conversion value to use when converting between units
      • getMetricUnitType

        public String getMetricUnitType()
        Getter for metricUnitType. type of unit (DURATION, RATIO, SIZE, RATE, COUNT)
      • setMetricUnitType

        public void setMetricUnitType​(String metricUnitType)
        Setter for metricUnitType. type of unit (DURATION, RATIO, SIZE, RATE, COUNT)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object