toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case Metric.blendedCost:
      return 'BLENDED_COST';
    case Metric.unblendedCost:
      return 'UNBLENDED_COST';
    case Metric.amortizedCost:
      return 'AMORTIZED_COST';
    case Metric.netUnblendedCost:
      return 'NET_UNBLENDED_COST';
    case Metric.netAmortizedCost:
      return 'NET_AMORTIZED_COST';
    case Metric.usageQuantity:
      return 'USAGE_QUANTITY';
    case Metric.normalizedUsageAmount:
      return 'NORMALIZED_USAGE_AMOUNT';
  }
}