toSpotProvisioningTimeoutAction method
Implementation
SpotProvisioningTimeoutAction toSpotProvisioningTimeoutAction() {
switch (this) {
case 'SWITCH_TO_ON_DEMAND':
return SpotProvisioningTimeoutAction.switchToOnDemand;
case 'TERMINATE_CLUSTER':
return SpotProvisioningTimeoutAction.terminateCluster;
}
throw Exception('$this is not known in enum SpotProvisioningTimeoutAction');
}