toValue method
Implementation
String toValue() {
switch (this) {
case ScheduleActivityTaskFailedCause.activityTypeDeprecated:
return 'ACTIVITY_TYPE_DEPRECATED';
case ScheduleActivityTaskFailedCause.activityTypeDoesNotExist:
return 'ACTIVITY_TYPE_DOES_NOT_EXIST';
case ScheduleActivityTaskFailedCause.activityIdAlreadyInUse:
return 'ACTIVITY_ID_ALREADY_IN_USE';
case ScheduleActivityTaskFailedCause.openActivitiesLimitExceeded:
return 'OPEN_ACTIVITIES_LIMIT_EXCEEDED';
case ScheduleActivityTaskFailedCause.activityCreationRateExceeded:
return 'ACTIVITY_CREATION_RATE_EXCEEDED';
case ScheduleActivityTaskFailedCause
.defaultScheduleToCloseTimeoutUndefined:
return 'DEFAULT_SCHEDULE_TO_CLOSE_TIMEOUT_UNDEFINED';
case ScheduleActivityTaskFailedCause.defaultTaskListUndefined:
return 'DEFAULT_TASK_LIST_UNDEFINED';
case ScheduleActivityTaskFailedCause
.defaultScheduleToStartTimeoutUndefined:
return 'DEFAULT_SCHEDULE_TO_START_TIMEOUT_UNDEFINED';
case ScheduleActivityTaskFailedCause.defaultStartToCloseTimeoutUndefined:
return 'DEFAULT_START_TO_CLOSE_TIMEOUT_UNDEFINED';
case ScheduleActivityTaskFailedCause.defaultHeartbeatTimeoutUndefined:
return 'DEFAULT_HEARTBEAT_TIMEOUT_UNDEFINED';
case ScheduleActivityTaskFailedCause.operationNotPermitted:
return 'OPERATION_NOT_PERMITTED';
}
}