toInstanceAction method

InstanceAction toInstanceAction()

Implementation

InstanceAction toInstanceAction() {
  switch (this) {
    case 'TERMINATE':
      return InstanceAction.terminate;
    case 'KEEP_ALIVE':
      return InstanceAction.keepAlive;
  }
  throw Exception('$this is not known in enum InstanceAction');
}