toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case RecommendationSourceType.ec2Instance:
      return 'Ec2Instance';
    case RecommendationSourceType.autoScalingGroup:
      return 'AutoScalingGroup';
    case RecommendationSourceType.ebsVolume:
      return 'EbsVolume';
    case RecommendationSourceType.lambdaFunction:
      return 'LambdaFunction';
  }
}