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

com.pulumi.awsnative.mediaconnect.kotlin.inputs.FlowOutputEncodingParametersArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.mediaconnect.kotlin.inputs

import com.pulumi.awsnative.mediaconnect.inputs.FlowOutputEncodingParametersArgs.builder
import com.pulumi.awsnative.mediaconnect.kotlin.enums.FlowOutputEncodingParametersEncoderProfile
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 kotlin.Double
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * A collection of parameters that determine how MediaConnect will convert the content. These fields only apply to outputs on flows that have a CDI source.
 * @property compressionFactor A value that is used to calculate compression for an output. The bitrate of the output is calculated as follows: Output bitrate = (1 / compressionFactor) * (source bitrate) This property only applies to outputs that use the ST 2110 JPEG XS protocol, with a flow source that uses the CDI protocol. Valid values are in the range of 3.0 to 10.0, inclusive.
 * @property encoderProfile A setting on the encoder that drives compression settings. This property only applies to video media streams associated with outputs that use the ST 2110 JPEG XS protocol, with a flow source that uses the CDI protocol.
 */
public data class FlowOutputEncodingParametersArgs(
    public val compressionFactor: Output,
    public val encoderProfile: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.mediaconnect.inputs.FlowOutputEncodingParametersArgs =
        com.pulumi.awsnative.mediaconnect.inputs.FlowOutputEncodingParametersArgs.builder()
            .compressionFactor(compressionFactor.applyValue({ args0 -> args0 }))
            .encoderProfile(
                encoderProfile?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [FlowOutputEncodingParametersArgs].
 */
@PulumiTagMarker
public class FlowOutputEncodingParametersArgsBuilder internal constructor() {
    private var compressionFactor: Output? = null

    private var encoderProfile: Output? = null

    /**
     * @param value A value that is used to calculate compression for an output. The bitrate of the output is calculated as follows: Output bitrate = (1 / compressionFactor) * (source bitrate) This property only applies to outputs that use the ST 2110 JPEG XS protocol, with a flow source that uses the CDI protocol. Valid values are in the range of 3.0 to 10.0, inclusive.
     */
    @JvmName("irytirxbytnupptb")
    public suspend fun compressionFactor(`value`: Output) {
        this.compressionFactor = value
    }

    /**
     * @param value A setting on the encoder that drives compression settings. This property only applies to video media streams associated with outputs that use the ST 2110 JPEG XS protocol, with a flow source that uses the CDI protocol.
     */
    @JvmName("plpymkfngkgyudbw")
    public suspend fun encoderProfile(`value`: Output) {
        this.encoderProfile = value
    }

    /**
     * @param value A value that is used to calculate compression for an output. The bitrate of the output is calculated as follows: Output bitrate = (1 / compressionFactor) * (source bitrate) This property only applies to outputs that use the ST 2110 JPEG XS protocol, with a flow source that uses the CDI protocol. Valid values are in the range of 3.0 to 10.0, inclusive.
     */
    @JvmName("sfrogtmdjswidnye")
    public suspend fun compressionFactor(`value`: Double) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.compressionFactor = mapped
    }

    /**
     * @param value A setting on the encoder that drives compression settings. This property only applies to video media streams associated with outputs that use the ST 2110 JPEG XS protocol, with a flow source that uses the CDI protocol.
     */
    @JvmName("etmdbmwmlcgsmohw")
    public suspend fun encoderProfile(`value`: FlowOutputEncodingParametersEncoderProfile?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.encoderProfile = mapped
    }

    internal fun build(): FlowOutputEncodingParametersArgs = FlowOutputEncodingParametersArgs(
        compressionFactor = compressionFactor ?: throw PulumiNullFieldException("compressionFactor"),
        encoderProfile = encoderProfile,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy