toScheduleActivityTaskFailedCause method
Implementation
ScheduleActivityTaskFailedCause toScheduleActivityTaskFailedCause() {
switch (this) {
case 'ACTIVITY_TYPE_DEPRECATED':
return ScheduleActivityTaskFailedCause.activityTypeDeprecated;
case 'ACTIVITY_TYPE_DOES_NOT_EXIST':
return ScheduleActivityTaskFailedCause.activityTypeDoesNotExist;
case 'ACTIVITY_ID_ALREADY_IN_USE':
return ScheduleActivityTaskFailedCause.activityIdAlreadyInUse;
case 'OPEN_ACTIVITIES_LIMIT_EXCEEDED':
return ScheduleActivityTaskFailedCause.openActivitiesLimitExceeded;
case 'ACTIVITY_CREATION_RATE_EXCEEDED':
return ScheduleActivityTaskFailedCause.activityCreationRateExceeded;
case 'DEFAULT_SCHEDULE_TO_CLOSE_TIMEOUT_UNDEFINED':
return ScheduleActivityTaskFailedCause
.defaultScheduleToCloseTimeoutUndefined;
case 'DEFAULT_TASK_LIST_UNDEFINED':
return ScheduleActivityTaskFailedCause.defaultTaskListUndefined;
case 'DEFAULT_SCHEDULE_TO_START_TIMEOUT_UNDEFINED':
return ScheduleActivityTaskFailedCause
.defaultScheduleToStartTimeoutUndefined;
case 'DEFAULT_START_TO_CLOSE_TIMEOUT_UNDEFINED':
return ScheduleActivityTaskFailedCause
.defaultStartToCloseTimeoutUndefined;
case 'DEFAULT_HEARTBEAT_TIMEOUT_UNDEFINED':
return ScheduleActivityTaskFailedCause.defaultHeartbeatTimeoutUndefined;
case 'OPERATION_NOT_PERMITTED':
return ScheduleActivityTaskFailedCause.operationNotPermitted;
}
throw Exception(
'$this is not known in enum ScheduleActivityTaskFailedCause');
}