toMaintenanceWindowTaskType method
Implementation
MaintenanceWindowTaskType toMaintenanceWindowTaskType() {
switch (this) {
case 'RUN_COMMAND':
return MaintenanceWindowTaskType.runCommand;
case 'AUTOMATION':
return MaintenanceWindowTaskType.automation;
case 'STEP_FUNCTIONS':
return MaintenanceWindowTaskType.stepFunctions;
case 'LAMBDA':
return MaintenanceWindowTaskType.lambda;
}
throw Exception('$this is not known in enum MaintenanceWindowTaskType');
}