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

commonMain.aws.sdk.kotlin.services.mediapackage.model.AdsOnDeliveryRestrictions.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

/**
 * This setting allows the delivery restriction flags on SCTE-35 segmentation descriptors to determine whether a message signals an ad. Choosing "NONE" means no SCTE-35 messages become ads. Choosing "RESTRICTED" means SCTE-35 messages of the types specified in AdTriggers that contain delivery restrictions will be treated as ads. Choosing "UNRESTRICTED" means SCTE-35 messages of the types specified in AdTriggers that do not contain delivery restrictions will be treated as ads. Choosing "BOTH" means all SCTE-35 messages of the types specified in AdTriggers will be treated as ads. Note that Splice Insert messages do not have these flags and are always treated as ads if specified in AdTriggers.
 */
public sealed class AdsOnDeliveryRestrictions {
    public abstract val value: kotlin.String

    public object Both : aws.sdk.kotlin.services.mediapackage.model.AdsOnDeliveryRestrictions() {
        override val value: kotlin.String = "BOTH"
        override fun toString(): kotlin.String = "Both"
    }

    public object None : aws.sdk.kotlin.services.mediapackage.model.AdsOnDeliveryRestrictions() {
        override val value: kotlin.String = "NONE"
        override fun toString(): kotlin.String = "None"
    }

    public object Restricted : aws.sdk.kotlin.services.mediapackage.model.AdsOnDeliveryRestrictions() {
        override val value: kotlin.String = "RESTRICTED"
        override fun toString(): kotlin.String = "Restricted"
    }

    public object Unrestricted : aws.sdk.kotlin.services.mediapackage.model.AdsOnDeliveryRestrictions() {
        override val value: kotlin.String = "UNRESTRICTED"
        override fun toString(): kotlin.String = "Unrestricted"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.mediapackage.model.AdsOnDeliveryRestrictions() {
        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.AdsOnDeliveryRestrictions = when (value) {
            "BOTH" -> Both
            "NONE" -> None
            "RESTRICTED" -> Restricted
            "UNRESTRICTED" -> Unrestricted
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            Both,
            None,
            Restricted,
            Unrestricted,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy