toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case SavingsPlansFilterName.region:
      return 'region';
    case SavingsPlansFilterName.ec2InstanceFamily:
      return 'ec2-instance-family';
    case SavingsPlansFilterName.commitment:
      return 'commitment';
    case SavingsPlansFilterName.upfront:
      return 'upfront';
    case SavingsPlansFilterName.term:
      return 'term';
    case SavingsPlansFilterName.savingsPlanType:
      return 'savings-plan-type';
    case SavingsPlansFilterName.paymentOption:
      return 'payment-option';
    case SavingsPlansFilterName.start:
      return 'start';
    case SavingsPlansFilterName.end:
      return 'end';
  }
}