toValue method
Implementation
String toValue() {
switch (this) {
case ImageBuilderState.pending:
return 'PENDING';
case ImageBuilderState.updatingAgent:
return 'UPDATING_AGENT';
case ImageBuilderState.running:
return 'RUNNING';
case ImageBuilderState.stopping:
return 'STOPPING';
case ImageBuilderState.stopped:
return 'STOPPED';
case ImageBuilderState.rebooting:
return 'REBOOTING';
case ImageBuilderState.snapshotting:
return 'SNAPSHOTTING';
case ImageBuilderState.deleting:
return 'DELETING';
case ImageBuilderState.failed:
return 'FAILED';
}
}