toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case Domain.retail:
      return 'RETAIL';
    case Domain.custom:
      return 'CUSTOM';
    case Domain.inventoryPlanning:
      return 'INVENTORY_PLANNING';
    case Domain.ec2Capacity:
      return 'EC2_CAPACITY';
    case Domain.workForce:
      return 'WORK_FORCE';
    case Domain.webTraffic:
      return 'WEB_TRAFFIC';
    case Domain.metrics:
      return 'METRICS';
  }
}