toSavingsPlanRateFilterAttribute method

SavingsPlanRateFilterAttribute toSavingsPlanRateFilterAttribute()

Implementation

SavingsPlanRateFilterAttribute toSavingsPlanRateFilterAttribute() {
  switch (this) {
    case 'region':
      return SavingsPlanRateFilterAttribute.region;
    case 'instanceFamily':
      return SavingsPlanRateFilterAttribute.instanceFamily;
    case 'instanceType':
      return SavingsPlanRateFilterAttribute.instanceType;
    case 'productDescription':
      return SavingsPlanRateFilterAttribute.productDescription;
    case 'tenancy':
      return SavingsPlanRateFilterAttribute.tenancy;
    case 'productId':
      return SavingsPlanRateFilterAttribute.productId;
  }
  throw Exception(
      '$this is not known in enum SavingsPlanRateFilterAttribute');
}