toValue method
Implementation
String toValue() {
switch (this) {
case SecondaryStatus.starting:
return 'Starting';
case SecondaryStatus.launchingMLInstances:
return 'LaunchingMLInstances';
case SecondaryStatus.preparingTrainingStack:
return 'PreparingTrainingStack';
case SecondaryStatus.downloading:
return 'Downloading';
case SecondaryStatus.downloadingTrainingImage:
return 'DownloadingTrainingImage';
case SecondaryStatus.training:
return 'Training';
case SecondaryStatus.uploading:
return 'Uploading';
case SecondaryStatus.stopping:
return 'Stopping';
case SecondaryStatus.stopped:
return 'Stopped';
case SecondaryStatus.maxRuntimeExceeded:
return 'MaxRuntimeExceeded';
case SecondaryStatus.completed:
return 'Completed';
case SecondaryStatus.failed:
return 'Failed';
case SecondaryStatus.interrupted:
return 'Interrupted';
case SecondaryStatus.maxWaitTimeExceeded:
return 'MaxWaitTimeExceeded';
case SecondaryStatus.updating:
return 'Updating';
}
}