com.svix.kotlin.models.BackgroundTaskStatus.kt Maven / Gradle / Ivy
/**
* Svix API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.svix.kotlin.models
import com.squareup.moshi.Json
/**
*
* Values: running,finished,failed
*/
enum class BackgroundTaskStatus(val value: kotlin.String) {
@Json(name = "running")
running("running"),
@Json(name = "finished")
finished("finished"),
@Json(name = "failed")
failed("failed");
/**
This override toString avoids using the enum var name and uses the actual api value instead.
In cases the var name and value are different, the client would send incorrect enums to the server.
**/
override fun toString(): String {
return value
}
}