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

com.pulumi.azurenative.media.kotlin.inputs.PresetConfigurationsArgs.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.PresetConfigurationsArgs.builder
import com.pulumi.azurenative.media.kotlin.enums.Complexity
import com.pulumi.azurenative.media.kotlin.enums.InterleaveOutput
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.PulumiTagMarker
import kotlin.Double
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * An object of optional configuration settings for encoder.
 * @property complexity Allows you to configure the encoder settings to control the balance between speed and quality. Example: set Complexity as Speed for faster encoding but less compression efficiency.
 * @property interleaveOutput Sets the interleave mode of the output to control how audio and video are stored in the container format. Example: set InterleavedOutput as NonInterleavedOutput to produce audio-only and video-only outputs in separate MP4 files.
 * @property keyFrameIntervalInSeconds The key frame interval in seconds. Example: set KeyFrameIntervalInSeconds as 2 to reduce the playback buffering for some players.
 * @property maxBitrateBps The maximum bitrate in bits per second (threshold for the top video layer). Example: set MaxBitrateBps as 6000000 to avoid producing very high bitrate outputs for contents with high complexity.
 * @property maxHeight The maximum height of output video layers. Example: set MaxHeight as 720 to produce output layers up to 720P even if the input is 4K.
 * @property maxLayers The maximum number of output video layers. Example: set MaxLayers as 4 to make sure at most 4 output layers are produced to control the overall cost of the encoding job.
 * @property minBitrateBps The minimum bitrate in bits per second (threshold for the bottom video layer). Example: set MinBitrateBps as 200000 to have a bottom layer that covers users with low network bandwidth.
 * @property minHeight The minimum height of output video layers. Example: set MinHeight as 360 to avoid output layers of smaller resolutions like 180P.
 */
public data class PresetConfigurationsArgs(
    public val complexity: Output>? = null,
    public val interleaveOutput: Output>? = null,
    public val keyFrameIntervalInSeconds: Output? = null,
    public val maxBitrateBps: Output? = null,
    public val maxHeight: Output? = null,
    public val maxLayers: Output? = null,
    public val minBitrateBps: Output? = null,
    public val minHeight: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.media.inputs.PresetConfigurationsArgs =
        com.pulumi.azurenative.media.inputs.PresetConfigurationsArgs.builder()
            .complexity(
                complexity?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .interleaveOutput(
                interleaveOutput?.applyValue({ args0 ->
                    args0.transform(
                        { args0 -> args0 },
                        { args0 -> args0.let({ args0 -> args0.toJava() }) },
                    )
                }),
            )
            .keyFrameIntervalInSeconds(keyFrameIntervalInSeconds?.applyValue({ args0 -> args0 }))
            .maxBitrateBps(maxBitrateBps?.applyValue({ args0 -> args0 }))
            .maxHeight(maxHeight?.applyValue({ args0 -> args0 }))
            .maxLayers(maxLayers?.applyValue({ args0 -> args0 }))
            .minBitrateBps(minBitrateBps?.applyValue({ args0 -> args0 }))
            .minHeight(minHeight?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PresetConfigurationsArgs].
 */
@PulumiTagMarker
public class PresetConfigurationsArgsBuilder internal constructor() {
    private var complexity: Output>? = null

    private var interleaveOutput: Output>? = null

    private var keyFrameIntervalInSeconds: Output? = null

    private var maxBitrateBps: Output? = null

    private var maxHeight: Output? = null

    private var maxLayers: Output? = null

    private var minBitrateBps: Output? = null

    private var minHeight: Output? = null

    /**
     * @param value Allows you to configure the encoder settings to control the balance between speed and quality. Example: set Complexity as Speed for faster encoding but less compression efficiency.
     */
    @JvmName("bhblmvllqbewynef")
    public suspend fun complexity(`value`: Output>) {
        this.complexity = value
    }

    /**
     * @param value Sets the interleave mode of the output to control how audio and video are stored in the container format. Example: set InterleavedOutput as NonInterleavedOutput to produce audio-only and video-only outputs in separate MP4 files.
     */
    @JvmName("hdmfxdkbjiyepjhd")
    public suspend fun interleaveOutput(`value`: Output>) {
        this.interleaveOutput = value
    }

    /**
     * @param value The key frame interval in seconds. Example: set KeyFrameIntervalInSeconds as 2 to reduce the playback buffering for some players.
     */
    @JvmName("huvmruycokwdekyj")
    public suspend fun keyFrameIntervalInSeconds(`value`: Output) {
        this.keyFrameIntervalInSeconds = value
    }

    /**
     * @param value The maximum bitrate in bits per second (threshold for the top video layer). Example: set MaxBitrateBps as 6000000 to avoid producing very high bitrate outputs for contents with high complexity.
     */
    @JvmName("ertolxmeuwifwioj")
    public suspend fun maxBitrateBps(`value`: Output) {
        this.maxBitrateBps = value
    }

    /**
     * @param value The maximum height of output video layers. Example: set MaxHeight as 720 to produce output layers up to 720P even if the input is 4K.
     */
    @JvmName("dsagykeffrolgiij")
    public suspend fun maxHeight(`value`: Output) {
        this.maxHeight = value
    }

    /**
     * @param value The maximum number of output video layers. Example: set MaxLayers as 4 to make sure at most 4 output layers are produced to control the overall cost of the encoding job.
     */
    @JvmName("ygicooijdnhbpbyx")
    public suspend fun maxLayers(`value`: Output) {
        this.maxLayers = value
    }

    /**
     * @param value The minimum bitrate in bits per second (threshold for the bottom video layer). Example: set MinBitrateBps as 200000 to have a bottom layer that covers users with low network bandwidth.
     */
    @JvmName("ssehlaqymbttojqc")
    public suspend fun minBitrateBps(`value`: Output) {
        this.minBitrateBps = value
    }

    /**
     * @param value The minimum height of output video layers. Example: set MinHeight as 360 to avoid output layers of smaller resolutions like 180P.
     */
    @JvmName("ivvhixpffppgguhp")
    public suspend fun minHeight(`value`: Output) {
        this.minHeight = value
    }

    /**
     * @param value Allows you to configure the encoder settings to control the balance between speed and quality. Example: set Complexity as Speed for faster encoding but less compression efficiency.
     */
    @JvmName("ghbpafcststisxjo")
    public suspend fun complexity(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.complexity = mapped
    }

    /**
     * @param value Allows you to configure the encoder settings to control the balance between speed and quality. Example: set Complexity as Speed for faster encoding but less compression efficiency.
     */
    @JvmName("bkkyvpgchctehamh")
    public fun complexity(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.complexity = mapped
    }

    /**
     * @param value Allows you to configure the encoder settings to control the balance between speed and quality. Example: set Complexity as Speed for faster encoding but less compression efficiency.
     */
    @JvmName("rgljxrilnrdwvacm")
    public fun complexity(`value`: Complexity) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.complexity = mapped
    }

    /**
     * @param value Sets the interleave mode of the output to control how audio and video are stored in the container format. Example: set InterleavedOutput as NonInterleavedOutput to produce audio-only and video-only outputs in separate MP4 files.
     */
    @JvmName("uusdyillnhqntyan")
    public suspend fun interleaveOutput(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.interleaveOutput = mapped
    }

    /**
     * @param value Sets the interleave mode of the output to control how audio and video are stored in the container format. Example: set InterleavedOutput as NonInterleavedOutput to produce audio-only and video-only outputs in separate MP4 files.
     */
    @JvmName("jgyngshwlxihprxo")
    public fun interleaveOutput(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.interleaveOutput = mapped
    }

    /**
     * @param value Sets the interleave mode of the output to control how audio and video are stored in the container format. Example: set InterleavedOutput as NonInterleavedOutput to produce audio-only and video-only outputs in separate MP4 files.
     */
    @JvmName("ailpiesqveuvjxuq")
    public fun interleaveOutput(`value`: InterleaveOutput) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.interleaveOutput = mapped
    }

    /**
     * @param value The key frame interval in seconds. Example: set KeyFrameIntervalInSeconds as 2 to reduce the playback buffering for some players.
     */
    @JvmName("jopghfpvqnukomph")
    public suspend fun keyFrameIntervalInSeconds(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.keyFrameIntervalInSeconds = mapped
    }

    /**
     * @param value The maximum bitrate in bits per second (threshold for the top video layer). Example: set MaxBitrateBps as 6000000 to avoid producing very high bitrate outputs for contents with high complexity.
     */
    @JvmName("aylmlqsrxdjdprpf")
    public suspend fun maxBitrateBps(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxBitrateBps = mapped
    }

    /**
     * @param value The maximum height of output video layers. Example: set MaxHeight as 720 to produce output layers up to 720P even if the input is 4K.
     */
    @JvmName("ecaqyyymjhbalbkd")
    public suspend fun maxHeight(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxHeight = mapped
    }

    /**
     * @param value The maximum number of output video layers. Example: set MaxLayers as 4 to make sure at most 4 output layers are produced to control the overall cost of the encoding job.
     */
    @JvmName("rxfkdcfadtlekvev")
    public suspend fun maxLayers(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxLayers = mapped
    }

    /**
     * @param value The minimum bitrate in bits per second (threshold for the bottom video layer). Example: set MinBitrateBps as 200000 to have a bottom layer that covers users with low network bandwidth.
     */
    @JvmName("vgegchmuytmmpbgs")
    public suspend fun minBitrateBps(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minBitrateBps = mapped
    }

    /**
     * @param value The minimum height of output video layers. Example: set MinHeight as 360 to avoid output layers of smaller resolutions like 180P.
     */
    @JvmName("mywoiuxdvjdgrtld")
    public suspend fun minHeight(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minHeight = mapped
    }

    internal fun build(): PresetConfigurationsArgs = PresetConfigurationsArgs(
        complexity = complexity,
        interleaveOutput = interleaveOutput,
        keyFrameIntervalInSeconds = keyFrameIntervalInSeconds,
        maxBitrateBps = maxBitrateBps,
        maxHeight = maxHeight,
        maxLayers = maxLayers,
        minBitrateBps = minBitrateBps,
        minHeight = minHeight,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy