public DeviceMetric setCategory(DeviceMetricCategory value) { 
        if (this.category == null)
          this.category = new Enumeration<DeviceMetricCategory>(new DeviceMetricCategoryEnumFactory());
        this.category.setValue(value);
      return this;
    }
public DeviceMetric setCategory ( DeviceMetricCategory value ) { if ( this . category == null ) this . category = new Enumeration < DeviceMetricCategory > ( new DeviceMetricCategoryEnumFactory ( ) ) ; this . category . setValue ( value ) ; return this ; }
@param value Indicates the category of the observation generation process. A DeviceMetric can be for example a setting, measurement, or calculation.