toLambdaFunctionRecommendationFindingReasonCode method
Implementation
LambdaFunctionRecommendationFindingReasonCode
toLambdaFunctionRecommendationFindingReasonCode() {
switch (this) {
case 'MemoryOverprovisioned':
return LambdaFunctionRecommendationFindingReasonCode
.memoryOverprovisioned;
case 'MemoryUnderprovisioned':
return LambdaFunctionRecommendationFindingReasonCode
.memoryUnderprovisioned;
case 'InsufficientData':
return LambdaFunctionRecommendationFindingReasonCode.insufficientData;
case 'Inconclusive':
return LambdaFunctionRecommendationFindingReasonCode.inconclusive;
}
throw Exception(
'$this is not known in enum LambdaFunctionRecommendationFindingReasonCode');
}