All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.kinesisvideo.model.ApiName.kt Maven / Gradle / Ivy

There is a newer version: 1.3.34
Show newest version
// 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,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy