commonMain.aws.sdk.kotlin.services.kinesisvideo.model.ApiName.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kinesisvideo-jvm Show documentation
Show all versions of kinesisvideo-jvm Show documentation
The AWS SDK for Kotlin client for Kinesis Video
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kinesisvideo.model
import kotlin.collections.List
public sealed class ApiName {
public abstract val value: kotlin.String
public object GetClip : aws.sdk.kotlin.services.kinesisvideo.model.ApiName() {
override val value: kotlin.String = "GET_CLIP"
override fun toString(): kotlin.String = "GetClip"
}
public object GetDashStreamingSessionUrl : aws.sdk.kotlin.services.kinesisvideo.model.ApiName() {
override val value: kotlin.String = "GET_DASH_STREAMING_SESSION_URL"
override fun toString(): kotlin.String = "GetDashStreamingSessionUrl"
}
public object GetHlsStreamingSessionUrl : aws.sdk.kotlin.services.kinesisvideo.model.ApiName() {
override val value: kotlin.String = "GET_HLS_STREAMING_SESSION_URL"
override fun toString(): kotlin.String = "GetHlsStreamingSessionUrl"
}
public object GetImages : aws.sdk.kotlin.services.kinesisvideo.model.ApiName() {
override val value: kotlin.String = "GET_IMAGES"
override fun toString(): kotlin.String = "GetImages"
}
public object GetMedia : aws.sdk.kotlin.services.kinesisvideo.model.ApiName() {
override val value: kotlin.String = "GET_MEDIA"
override fun toString(): kotlin.String = "GetMedia"
}
public object GetMediaForFragmentList : aws.sdk.kotlin.services.kinesisvideo.model.ApiName() {
override val value: kotlin.String = "GET_MEDIA_FOR_FRAGMENT_LIST"
override fun toString(): kotlin.String = "GetMediaForFragmentList"
}
public object ListFragments : aws.sdk.kotlin.services.kinesisvideo.model.ApiName() {
override val value: kotlin.String = "LIST_FRAGMENTS"
override fun toString(): kotlin.String = "ListFragments"
}
public object PutMedia : aws.sdk.kotlin.services.kinesisvideo.model.ApiName() {
override val value: kotlin.String = "PUT_MEDIA"
override fun toString(): kotlin.String = "PutMedia"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.kinesisvideo.model.ApiName() {
override fun toString(): kotlin.String = "SdkUnknown($value)"
}
public companion object {
/**
* Convert a raw value to one of the sealed variants or [SdkUnknown]
*/
public fun fromValue(value: kotlin.String): aws.sdk.kotlin.services.kinesisvideo.model.ApiName = when (value) {
"GET_CLIP" -> GetClip
"GET_DASH_STREAMING_SESSION_URL" -> GetDashStreamingSessionUrl
"GET_HLS_STREAMING_SESSION_URL" -> GetHlsStreamingSessionUrl
"GET_IMAGES" -> GetImages
"GET_MEDIA" -> GetMedia
"GET_MEDIA_FOR_FRAGMENT_LIST" -> GetMediaForFragmentList
"LIST_FRAGMENTS" -> ListFragments
"PUT_MEDIA" -> PutMedia
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
GetClip,
GetDashStreamingSessionUrl,
GetHlsStreamingSessionUrl,
GetImages,
GetMedia,
GetMediaForFragmentList,
ListFragments,
PutMedia,
)
}
}