com.svix.kotlin.models.StatusCodeClass.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
/**
* The different classes of HTTP status codes: - CodeNone = 0 - Code1xx = 100 - Code2xx = 200 - Code3xx = 300 - Code4xx = 400 - Code5xx = 500
* Values: CodeNone,Code1xx,Code2xx,Code3xx,Code4xx,Code5xx
*/
enum class StatusCodeClass(val value: kotlin.Int) {
Unknown(-1),
@Json(name = "0")
CodeNone(0),
@Json(name = "100")
Code1xx(100),
@Json(name = "200")
Code2xx(200),
@Json(name = "300")
Code3xx(300),
@Json(name = "400")
Code4xx(400),
@Json(name = "500")
Code5xx(500);
/**
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.toString()
}
}