toExportableInstanceField method
Implementation
ExportableInstanceField toExportableInstanceField() {
switch (this) {
case 'AccountId':
return ExportableInstanceField.accountId;
case 'InstanceArn':
return ExportableInstanceField.instanceArn;
case 'InstanceName':
return ExportableInstanceField.instanceName;
case 'Finding':
return ExportableInstanceField.finding;
case 'LookbackPeriodInDays':
return ExportableInstanceField.lookbackPeriodInDays;
case 'CurrentInstanceType':
return ExportableInstanceField.currentInstanceType;
case 'UtilizationMetricsCpuMaximum':
return ExportableInstanceField.utilizationMetricsCpuMaximum;
case 'UtilizationMetricsMemoryMaximum':
return ExportableInstanceField.utilizationMetricsMemoryMaximum;
case 'UtilizationMetricsEbsReadOpsPerSecondMaximum':
return ExportableInstanceField
.utilizationMetricsEbsReadOpsPerSecondMaximum;
case 'UtilizationMetricsEbsWriteOpsPerSecondMaximum':
return ExportableInstanceField
.utilizationMetricsEbsWriteOpsPerSecondMaximum;
case 'UtilizationMetricsEbsReadBytesPerSecondMaximum':
return ExportableInstanceField
.utilizationMetricsEbsReadBytesPerSecondMaximum;
case 'UtilizationMetricsEbsWriteBytesPerSecondMaximum':
return ExportableInstanceField
.utilizationMetricsEbsWriteBytesPerSecondMaximum;
case 'CurrentOnDemandPrice':
return ExportableInstanceField.currentOnDemandPrice;
case 'CurrentStandardOneYearNoUpfrontReservedPrice':
return ExportableInstanceField
.currentStandardOneYearNoUpfrontReservedPrice;
case 'CurrentStandardThreeYearNoUpfrontReservedPrice':
return ExportableInstanceField
.currentStandardThreeYearNoUpfrontReservedPrice;
case 'CurrentVCpus':
return ExportableInstanceField.currentVCpus;
case 'CurrentMemory':
return ExportableInstanceField.currentMemory;
case 'CurrentStorage':
return ExportableInstanceField.currentStorage;
case 'CurrentNetwork':
return ExportableInstanceField.currentNetwork;
case 'RecommendationOptionsInstanceType':
return ExportableInstanceField.recommendationOptionsInstanceType;
case 'RecommendationOptionsProjectedUtilizationMetricsCpuMaximum':
return ExportableInstanceField
.recommendationOptionsProjectedUtilizationMetricsCpuMaximum;
case 'RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum':
return ExportableInstanceField
.recommendationOptionsProjectedUtilizationMetricsMemoryMaximum;
case 'RecommendationOptionsPerformanceRisk':
return ExportableInstanceField.recommendationOptionsPerformanceRisk;
case 'RecommendationOptionsVcpus':
return ExportableInstanceField.recommendationOptionsVcpus;
case 'RecommendationOptionsMemory':
return ExportableInstanceField.recommendationOptionsMemory;
case 'RecommendationOptionsStorage':
return ExportableInstanceField.recommendationOptionsStorage;
case 'RecommendationOptionsNetwork':
return ExportableInstanceField.recommendationOptionsNetwork;
case 'RecommendationOptionsOnDemandPrice':
return ExportableInstanceField.recommendationOptionsOnDemandPrice;
case 'RecommendationOptionsStandardOneYearNoUpfrontReservedPrice':
return ExportableInstanceField
.recommendationOptionsStandardOneYearNoUpfrontReservedPrice;
case 'RecommendationOptionsStandardThreeYearNoUpfrontReservedPrice':
return ExportableInstanceField
.recommendationOptionsStandardThreeYearNoUpfrontReservedPrice;
case 'RecommendationsSourcesRecommendationSourceArn':
return ExportableInstanceField
.recommendationsSourcesRecommendationSourceArn;
case 'RecommendationsSourcesRecommendationSourceType':
return ExportableInstanceField
.recommendationsSourcesRecommendationSourceType;
case 'LastRefreshTimestamp':
return ExportableInstanceField.lastRefreshTimestamp;
}
throw Exception('$this is not known in enum ExportableInstanceField');
}