toLastUpdateStatusReasonCode method

LastUpdateStatusReasonCode toLastUpdateStatusReasonCode()

Implementation

LastUpdateStatusReasonCode toLastUpdateStatusReasonCode() {
  switch (this) {
    case 'EniLimitExceeded':
      return LastUpdateStatusReasonCode.eniLimitExceeded;
    case 'InsufficientRolePermissions':
      return LastUpdateStatusReasonCode.insufficientRolePermissions;
    case 'InvalidConfiguration':
      return LastUpdateStatusReasonCode.invalidConfiguration;
    case 'InternalError':
      return LastUpdateStatusReasonCode.internalError;
    case 'SubnetOutOfIPAddresses':
      return LastUpdateStatusReasonCode.subnetOutOfIPAddresses;
    case 'InvalidSubnet':
      return LastUpdateStatusReasonCode.invalidSubnet;
    case 'InvalidSecurityGroup':
      return LastUpdateStatusReasonCode.invalidSecurityGroup;
    case 'ImageDeleted':
      return LastUpdateStatusReasonCode.imageDeleted;
    case 'ImageAccessDenied':
      return LastUpdateStatusReasonCode.imageAccessDenied;
    case 'InvalidImage':
      return LastUpdateStatusReasonCode.invalidImage;
  }
  throw Exception('$this is not known in enum LastUpdateStatusReasonCode');
}