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

com.pulumi.azurenative.media.kotlin.inputs.LiveEventInputArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.media.kotlin.inputs

import com.pulumi.azurenative.media.inputs.LiveEventInputArgs.builder
import com.pulumi.azurenative.media.kotlin.enums.LiveEventInputProtocol
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The live event input.
 * @property accessControl Access control for live event input.
 * @property accessToken A UUID in string form to uniquely identify the stream. This can be specified at creation time but cannot be updated. If omitted, the service will generate a unique value.
 * @property endpoints The input endpoints for the live event.
 * @property keyFrameIntervalDuration ISO 8601 time duration of the key frame interval duration of the input. This value sets the EXT-X-TARGETDURATION property in the HLS output. For example, use PT2S to indicate 2 seconds. Leave the value empty for encoding live events.
 * @property streamingProtocol The input protocol for the live event. This is specified at creation time and cannot be updated.
 * @property timedMetadataEndpoints The metadata endpoints for the live event.
 */
public data class LiveEventInputArgs(
    public val accessControl: Output? = null,
    public val accessToken: Output? = null,
    public val endpoints: Output>? = null,
    public val keyFrameIntervalDuration: Output? = null,
    public val streamingProtocol: Output>,
    public val timedMetadataEndpoints: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.media.inputs.LiveEventInputArgs =
        com.pulumi.azurenative.media.inputs.LiveEventInputArgs.builder()
            .accessControl(accessControl?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .accessToken(accessToken?.applyValue({ args0 -> args0 }))
            .endpoints(
                endpoints?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .keyFrameIntervalDuration(keyFrameIntervalDuration?.applyValue({ args0 -> args0 }))
            .streamingProtocol(
                streamingProtocol.applyValue({ args0 ->
                    args0.transform(
                        { args0 -> args0 },
                        { args0 -> args0.let({ args0 -> args0.toJava() }) },
                    )
                }),
            )
            .timedMetadataEndpoints(
                timedMetadataEndpoints?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

/**
 * Builder for [LiveEventInputArgs].
 */
@PulumiTagMarker
public class LiveEventInputArgsBuilder internal constructor() {
    private var accessControl: Output? = null

    private var accessToken: Output? = null

    private var endpoints: Output>? = null

    private var keyFrameIntervalDuration: Output? = null

    private var streamingProtocol: Output>? = null

    private var timedMetadataEndpoints: Output>? = null

    /**
     * @param value Access control for live event input.
     */
    @JvmName("sqwdwqodjoxbyroi")
    public suspend fun accessControl(`value`: Output) {
        this.accessControl = value
    }

    /**
     * @param value A UUID in string form to uniquely identify the stream. This can be specified at creation time but cannot be updated. If omitted, the service will generate a unique value.
     */
    @JvmName("tffdhhwqbxysrvjs")
    public suspend fun accessToken(`value`: Output) {
        this.accessToken = value
    }

    /**
     * @param value The input endpoints for the live event.
     */
    @JvmName("jfwrdybfevsmcaaq")
    public suspend fun endpoints(`value`: Output>) {
        this.endpoints = value
    }

    @JvmName("ivptxorbxvxhvoyy")
    public suspend fun endpoints(vararg values: Output) {
        this.endpoints = Output.all(values.asList())
    }

    /**
     * @param values The input endpoints for the live event.
     */
    @JvmName("imvmxfrsakcyiysf")
    public suspend fun endpoints(values: List>) {
        this.endpoints = Output.all(values)
    }

    /**
     * @param value ISO 8601 time duration of the key frame interval duration of the input. This value sets the EXT-X-TARGETDURATION property in the HLS output. For example, use PT2S to indicate 2 seconds. Leave the value empty for encoding live events.
     */
    @JvmName("wrnnhcabchlgjsig")
    public suspend fun keyFrameIntervalDuration(`value`: Output) {
        this.keyFrameIntervalDuration = value
    }

    /**
     * @param value The input protocol for the live event. This is specified at creation time and cannot be updated.
     */
    @JvmName("wlkrqqwpkjtpcpox")
    public suspend fun streamingProtocol(`value`: Output>) {
        this.streamingProtocol = value
    }

    /**
     * @param value The metadata endpoints for the live event.
     */
    @JvmName("doorjhwmwtpirqlk")
    public suspend fun timedMetadataEndpoints(`value`: Output>) {
        this.timedMetadataEndpoints = value
    }

    @JvmName("lwauvfxerpfrxdkk")
    public suspend fun timedMetadataEndpoints(vararg values: Output) {
        this.timedMetadataEndpoints = Output.all(values.asList())
    }

    /**
     * @param values The metadata endpoints for the live event.
     */
    @JvmName("gvceeigenmbopvbk")
    public suspend fun timedMetadataEndpoints(values: List>) {
        this.timedMetadataEndpoints = Output.all(values)
    }

    /**
     * @param value Access control for live event input.
     */
    @JvmName("yvpeyxmpnvkypdja")
    public suspend fun accessControl(`value`: LiveEventInputAccessControlArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accessControl = mapped
    }

    /**
     * @param argument Access control for live event input.
     */
    @JvmName("sgoaibkuoipynuip")
    public suspend fun accessControl(argument: suspend LiveEventInputAccessControlArgsBuilder.() -> Unit) {
        val toBeMapped = LiveEventInputAccessControlArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.accessControl = mapped
    }

    /**
     * @param value A UUID in string form to uniquely identify the stream. This can be specified at creation time but cannot be updated. If omitted, the service will generate a unique value.
     */
    @JvmName("uapcoftsihhjhpjc")
    public suspend fun accessToken(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accessToken = mapped
    }

    /**
     * @param value The input endpoints for the live event.
     */
    @JvmName("ekulnxbgnjgljbhd")
    public suspend fun endpoints(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.endpoints = mapped
    }

    /**
     * @param argument The input endpoints for the live event.
     */
    @JvmName("ivbheqvmmkjceppq")
    public suspend fun endpoints(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            LiveEventEndpointArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.endpoints = mapped
    }

    /**
     * @param argument The input endpoints for the live event.
     */
    @JvmName("jkrupuvomnfbkaef")
    public suspend fun endpoints(vararg argument: suspend LiveEventEndpointArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            LiveEventEndpointArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.endpoints = mapped
    }

    /**
     * @param argument The input endpoints for the live event.
     */
    @JvmName("xumwcjuakcxwdsms")
    public suspend fun endpoints(argument: suspend LiveEventEndpointArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(LiveEventEndpointArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.endpoints = mapped
    }

    /**
     * @param values The input endpoints for the live event.
     */
    @JvmName("breqdfignlkaorqh")
    public suspend fun endpoints(vararg values: LiveEventEndpointArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.endpoints = mapped
    }

    /**
     * @param value ISO 8601 time duration of the key frame interval duration of the input. This value sets the EXT-X-TARGETDURATION property in the HLS output. For example, use PT2S to indicate 2 seconds. Leave the value empty for encoding live events.
     */
    @JvmName("hbjvrjwjesilpdrr")
    public suspend fun keyFrameIntervalDuration(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.keyFrameIntervalDuration = mapped
    }

    /**
     * @param value The input protocol for the live event. This is specified at creation time and cannot be updated.
     */
    @JvmName("srmoejprhibkjebx")
    public suspend fun streamingProtocol(`value`: Either) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.streamingProtocol = mapped
    }

    /**
     * @param value The input protocol for the live event. This is specified at creation time and cannot be updated.
     */
    @JvmName("wuuftjjtweaquxdc")
    public fun streamingProtocol(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.streamingProtocol = mapped
    }

    /**
     * @param value The input protocol for the live event. This is specified at creation time and cannot be updated.
     */
    @JvmName("guaiehohcoicfbcu")
    public fun streamingProtocol(`value`: LiveEventInputProtocol) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.streamingProtocol = mapped
    }

    /**
     * @param value The metadata endpoints for the live event.
     */
    @JvmName("pptaxpljjdnusxjk")
    public suspend fun timedMetadataEndpoints(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timedMetadataEndpoints = mapped
    }

    /**
     * @param argument The metadata endpoints for the live event.
     */
    @JvmName("dulmbsmspysvxsga")
    public suspend fun timedMetadataEndpoints(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            LiveEventTimedMetadataEndpointArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.timedMetadataEndpoints = mapped
    }

    /**
     * @param argument The metadata endpoints for the live event.
     */
    @JvmName("kbincnqiketdxybt")
    public suspend fun timedMetadataEndpoints(vararg argument: suspend LiveEventTimedMetadataEndpointArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            LiveEventTimedMetadataEndpointArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.timedMetadataEndpoints = mapped
    }

    /**
     * @param argument The metadata endpoints for the live event.
     */
    @JvmName("fimkqdmfrqiqouww")
    public suspend fun timedMetadataEndpoints(argument: suspend LiveEventTimedMetadataEndpointArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            LiveEventTimedMetadataEndpointArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.timedMetadataEndpoints = mapped
    }

    /**
     * @param values The metadata endpoints for the live event.
     */
    @JvmName("jucfbdtwlenwumon")
    public suspend fun timedMetadataEndpoints(vararg values: LiveEventTimedMetadataEndpointArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.timedMetadataEndpoints = mapped
    }

    internal fun build(): LiveEventInputArgs = LiveEventInputArgs(
        accessControl = accessControl,
        accessToken = accessToken,
        endpoints = endpoints,
        keyFrameIntervalDuration = keyFrameIntervalDuration,
        streamingProtocol = streamingProtocol ?: throw PulumiNullFieldException("streamingProtocol"),
        timedMetadataEndpoints = timedMetadataEndpoints,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy