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

commonMain.aws.sdk.kotlin.services.mediapackage.model.AdTriggersElement.kt Maven / Gradle / Ivy

The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.mediapackage.model

import kotlin.collections.List

public sealed class AdTriggersElement {
    public abstract val value: kotlin.String

    public object Break : aws.sdk.kotlin.services.mediapackage.model.AdTriggersElement() {
        override val value: kotlin.String = "BREAK"
        override fun toString(): kotlin.String = "Break"
    }

    public object DistributorAdvertisement : aws.sdk.kotlin.services.mediapackage.model.AdTriggersElement() {
        override val value: kotlin.String = "DISTRIBUTOR_ADVERTISEMENT"
        override fun toString(): kotlin.String = "DistributorAdvertisement"
    }

    public object DistributorOverlayPlacementOpportunity : aws.sdk.kotlin.services.mediapackage.model.AdTriggersElement() {
        override val value: kotlin.String = "DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY"
        override fun toString(): kotlin.String = "DistributorOverlayPlacementOpportunity"
    }

    public object DistributorPlacementOpportunity : aws.sdk.kotlin.services.mediapackage.model.AdTriggersElement() {
        override val value: kotlin.String = "DISTRIBUTOR_PLACEMENT_OPPORTUNITY"
        override fun toString(): kotlin.String = "DistributorPlacementOpportunity"
    }

    public object ProviderAdvertisement : aws.sdk.kotlin.services.mediapackage.model.AdTriggersElement() {
        override val value: kotlin.String = "PROVIDER_ADVERTISEMENT"
        override fun toString(): kotlin.String = "ProviderAdvertisement"
    }

    public object ProviderOverlayPlacementOpportunity : aws.sdk.kotlin.services.mediapackage.model.AdTriggersElement() {
        override val value: kotlin.String = "PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY"
        override fun toString(): kotlin.String = "ProviderOverlayPlacementOpportunity"
    }

    public object ProviderPlacementOpportunity : aws.sdk.kotlin.services.mediapackage.model.AdTriggersElement() {
        override val value: kotlin.String = "PROVIDER_PLACEMENT_OPPORTUNITY"
        override fun toString(): kotlin.String = "ProviderPlacementOpportunity"
    }

    public object SpliceInsert : aws.sdk.kotlin.services.mediapackage.model.AdTriggersElement() {
        override val value: kotlin.String = "SPLICE_INSERT"
        override fun toString(): kotlin.String = "SpliceInsert"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.mediapackage.model.AdTriggersElement() {
        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.mediapackage.model.AdTriggersElement = when (value) {
            "BREAK" -> Break
            "DISTRIBUTOR_ADVERTISEMENT" -> DistributorAdvertisement
            "DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY" -> DistributorOverlayPlacementOpportunity
            "DISTRIBUTOR_PLACEMENT_OPPORTUNITY" -> DistributorPlacementOpportunity
            "PROVIDER_ADVERTISEMENT" -> ProviderAdvertisement
            "PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY" -> ProviderOverlayPlacementOpportunity
            "PROVIDER_PLACEMENT_OPPORTUNITY" -> ProviderPlacementOpportunity
            "SPLICE_INSERT" -> SpliceInsert
            else -> SdkUnknown(value)
        }

        /**
         * Get a list of all possible variants
         */
        public fun values(): kotlin.collections.List = values

        private val values: kotlin.collections.List = listOf(
            Break,
            DistributorAdvertisement,
            DistributorOverlayPlacementOpportunity,
            DistributorPlacementOpportunity,
            ProviderAdvertisement,
            ProviderOverlayPlacementOpportunity,
            ProviderPlacementOpportunity,
            SpliceInsert,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy