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

com.pulumi.azure.media.kotlin.inputs.TransformOutputCustomPresetCodecH265VideoLayerArgs.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.media.kotlin.inputs

import com.pulumi.azure.media.inputs.TransformOutputCustomPresetCodecH265VideoLayerArgs.builder
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.Boolean
import kotlin.Double
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property adaptiveBFrameEnabled Whether adaptive B-frames are used when encoding this layer. If not specified, the encoder will turn it on whenever the video profile permits its use. Default to `true`.
 * @property bFrames The number of B-frames to use when encoding this layer. If not specified, the encoder chooses an appropriate number based on the video profile and level.
 * @property bitrate The average bitrate in bits per second at which to encode the input video when generating this layer.
 * @property bufferWindow Specifies the maximum amount of time that the encoder should buffer frames before encoding. The value should be in ISO 8601 format. The value should be in the range `0.1` to `100` seconds. Defaults to `PT5S`.
 * @property crf The value of CRF to be used when encoding this layer. This setting takes effect when `rate_control_mode` is set `CRF`. The range of CRF value is between `0` and `51`, where lower values would result in better quality, at the expense of higher file sizes. Higher values mean more compression, but at some point quality degradation will be noticed. Default to `28`.
 * @property frameRate The frame rate (in frames per second) at which to encode this layer. The value can be in the form of `M/N` where `M` and `N` are integers (For example, `30000/1001`), or in the form of a number (For example, `30`, or `29.97`). The encoder enforces constraints on allowed frame rates based on the profile and level. If it is not specified, the encoder will use the same frame rate as the input video.
 * @property height The height of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example `50%` means the output video has half as many pixels in height as the input.
 * @property label The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file.
 * @property level The H.264 levels. Currently, the resource support Level up to `6.2`. The value can be `auto`, or a number that matches the H.264 profile. If not specified, the default is `auto`, which lets the encoder choose the Level that is appropriate for this layer.
 * @property maxBitrate The maximum bitrate (in bits per second), at which the VBV buffer should be assumed to refill. If not specified, defaults to the same value as bitrate.
 * @property profile The H.264 profile. Possible values are `Auto`, `Main` and `Main10`. Default to `Auto`.
 * @property referenceFrames The number of reference frames to be used when encoding this layer. If not specified, the encoder determines an appropriate number based on the encoder complexity setting.
 * @property slices The number of slices to be used when encoding this layer. If not specified, default is `1`, which means that encoder will use a single slice for each frame.
 * @property width The width of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example `50%` means the output video has half as many pixels in width as the input.
 */
public data class TransformOutputCustomPresetCodecH265VideoLayerArgs(
    public val adaptiveBFrameEnabled: Output? = null,
    public val bFrames: Output? = null,
    public val bitrate: Output,
    public val bufferWindow: Output? = null,
    public val crf: Output? = null,
    public val frameRate: Output? = null,
    public val height: Output? = null,
    public val label: Output? = null,
    public val level: Output? = null,
    public val maxBitrate: Output? = null,
    public val profile: Output? = null,
    public val referenceFrames: Output? = null,
    public val slices: Output? = null,
    public val width: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.media.inputs.TransformOutputCustomPresetCodecH265VideoLayerArgs =
        com.pulumi.azure.media.inputs.TransformOutputCustomPresetCodecH265VideoLayerArgs.builder()
            .adaptiveBFrameEnabled(adaptiveBFrameEnabled?.applyValue({ args0 -> args0 }))
            .bFrames(bFrames?.applyValue({ args0 -> args0 }))
            .bitrate(bitrate.applyValue({ args0 -> args0 }))
            .bufferWindow(bufferWindow?.applyValue({ args0 -> args0 }))
            .crf(crf?.applyValue({ args0 -> args0 }))
            .frameRate(frameRate?.applyValue({ args0 -> args0 }))
            .height(height?.applyValue({ args0 -> args0 }))
            .label(label?.applyValue({ args0 -> args0 }))
            .level(level?.applyValue({ args0 -> args0 }))
            .maxBitrate(maxBitrate?.applyValue({ args0 -> args0 }))
            .profile(profile?.applyValue({ args0 -> args0 }))
            .referenceFrames(referenceFrames?.applyValue({ args0 -> args0 }))
            .slices(slices?.applyValue({ args0 -> args0 }))
            .width(width?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TransformOutputCustomPresetCodecH265VideoLayerArgs].
 */
@PulumiTagMarker
public class TransformOutputCustomPresetCodecH265VideoLayerArgsBuilder internal constructor() {
    private var adaptiveBFrameEnabled: Output? = null

    private var bFrames: Output? = null

    private var bitrate: Output? = null

    private var bufferWindow: Output? = null

    private var crf: Output? = null

    private var frameRate: Output? = null

    private var height: Output? = null

    private var label: Output? = null

    private var level: Output? = null

    private var maxBitrate: Output? = null

    private var profile: Output? = null

    private var referenceFrames: Output? = null

    private var slices: Output? = null

    private var width: Output? = null

    /**
     * @param value Whether adaptive B-frames are used when encoding this layer. If not specified, the encoder will turn it on whenever the video profile permits its use. Default to `true`.
     */
    @JvmName("btdckljlvrefwite")
    public suspend fun adaptiveBFrameEnabled(`value`: Output) {
        this.adaptiveBFrameEnabled = value
    }

    /**
     * @param value The number of B-frames to use when encoding this layer. If not specified, the encoder chooses an appropriate number based on the video profile and level.
     */
    @JvmName("bpleasecwhbwtvqr")
    public suspend fun bFrames(`value`: Output) {
        this.bFrames = value
    }

    /**
     * @param value The average bitrate in bits per second at which to encode the input video when generating this layer.
     */
    @JvmName("sikrgbvseoisdjku")
    public suspend fun bitrate(`value`: Output) {
        this.bitrate = value
    }

    /**
     * @param value Specifies the maximum amount of time that the encoder should buffer frames before encoding. The value should be in ISO 8601 format. The value should be in the range `0.1` to `100` seconds. Defaults to `PT5S`.
     */
    @JvmName("xrjkllbcappdhfcd")
    public suspend fun bufferWindow(`value`: Output) {
        this.bufferWindow = value
    }

    /**
     * @param value The value of CRF to be used when encoding this layer. This setting takes effect when `rate_control_mode` is set `CRF`. The range of CRF value is between `0` and `51`, where lower values would result in better quality, at the expense of higher file sizes. Higher values mean more compression, but at some point quality degradation will be noticed. Default to `28`.
     */
    @JvmName("rdyvkoundkjcmatg")
    public suspend fun crf(`value`: Output) {
        this.crf = value
    }

    /**
     * @param value The frame rate (in frames per second) at which to encode this layer. The value can be in the form of `M/N` where `M` and `N` are integers (For example, `30000/1001`), or in the form of a number (For example, `30`, or `29.97`). The encoder enforces constraints on allowed frame rates based on the profile and level. If it is not specified, the encoder will use the same frame rate as the input video.
     */
    @JvmName("isfmwgxdrqmcsyyo")
    public suspend fun frameRate(`value`: Output) {
        this.frameRate = value
    }

    /**
     * @param value The height of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example `50%` means the output video has half as many pixels in height as the input.
     */
    @JvmName("fdnyeovoabufmxsu")
    public suspend fun height(`value`: Output) {
        this.height = value
    }

    /**
     * @param value The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file.
     */
    @JvmName("cgqbydybwtykliug")
    public suspend fun label(`value`: Output) {
        this.label = value
    }

    /**
     * @param value The H.264 levels. Currently, the resource support Level up to `6.2`. The value can be `auto`, or a number that matches the H.264 profile. If not specified, the default is `auto`, which lets the encoder choose the Level that is appropriate for this layer.
     */
    @JvmName("matfdbklcyfrcmsn")
    public suspend fun level(`value`: Output) {
        this.level = value
    }

    /**
     * @param value The maximum bitrate (in bits per second), at which the VBV buffer should be assumed to refill. If not specified, defaults to the same value as bitrate.
     */
    @JvmName("yrqkcoxdbvujcsee")
    public suspend fun maxBitrate(`value`: Output) {
        this.maxBitrate = value
    }

    /**
     * @param value The H.264 profile. Possible values are `Auto`, `Main` and `Main10`. Default to `Auto`.
     */
    @JvmName("cjarmuxjfdtqrbaj")
    public suspend fun profile(`value`: Output) {
        this.profile = value
    }

    /**
     * @param value The number of reference frames to be used when encoding this layer. If not specified, the encoder determines an appropriate number based on the encoder complexity setting.
     */
    @JvmName("hnolmeyshaqqqjhd")
    public suspend fun referenceFrames(`value`: Output) {
        this.referenceFrames = value
    }

    /**
     * @param value The number of slices to be used when encoding this layer. If not specified, default is `1`, which means that encoder will use a single slice for each frame.
     */
    @JvmName("txkdetktthtjgryq")
    public suspend fun slices(`value`: Output) {
        this.slices = value
    }

    /**
     * @param value The width of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example `50%` means the output video has half as many pixels in width as the input.
     */
    @JvmName("isprkkocrkbscmbk")
    public suspend fun width(`value`: Output) {
        this.width = value
    }

    /**
     * @param value Whether adaptive B-frames are used when encoding this layer. If not specified, the encoder will turn it on whenever the video profile permits its use. Default to `true`.
     */
    @JvmName("xlqmwajiwbuldeln")
    public suspend fun adaptiveBFrameEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.adaptiveBFrameEnabled = mapped
    }

    /**
     * @param value The number of B-frames to use when encoding this layer. If not specified, the encoder chooses an appropriate number based on the video profile and level.
     */
    @JvmName("imdntgsewjgbtbrd")
    public suspend fun bFrames(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bFrames = mapped
    }

    /**
     * @param value The average bitrate in bits per second at which to encode the input video when generating this layer.
     */
    @JvmName("gluaekjeingjifgf")
    public suspend fun bitrate(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.bitrate = mapped
    }

    /**
     * @param value Specifies the maximum amount of time that the encoder should buffer frames before encoding. The value should be in ISO 8601 format. The value should be in the range `0.1` to `100` seconds. Defaults to `PT5S`.
     */
    @JvmName("kyiweoofhtboocie")
    public suspend fun bufferWindow(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bufferWindow = mapped
    }

    /**
     * @param value The value of CRF to be used when encoding this layer. This setting takes effect when `rate_control_mode` is set `CRF`. The range of CRF value is between `0` and `51`, where lower values would result in better quality, at the expense of higher file sizes. Higher values mean more compression, but at some point quality degradation will be noticed. Default to `28`.
     */
    @JvmName("hfrndfntuvsrfgur")
    public suspend fun crf(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.crf = mapped
    }

    /**
     * @param value The frame rate (in frames per second) at which to encode this layer. The value can be in the form of `M/N` where `M` and `N` are integers (For example, `30000/1001`), or in the form of a number (For example, `30`, or `29.97`). The encoder enforces constraints on allowed frame rates based on the profile and level. If it is not specified, the encoder will use the same frame rate as the input video.
     */
    @JvmName("fddhoqnmcqgmtmoc")
    public suspend fun frameRate(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.frameRate = mapped
    }

    /**
     * @param value The height of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example `50%` means the output video has half as many pixels in height as the input.
     */
    @JvmName("tfvnwqlqenyprvgl")
    public suspend fun height(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.height = mapped
    }

    /**
     * @param value The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file.
     */
    @JvmName("ujmksejtpinyomda")
    public suspend fun label(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.label = mapped
    }

    /**
     * @param value The H.264 levels. Currently, the resource support Level up to `6.2`. The value can be `auto`, or a number that matches the H.264 profile. If not specified, the default is `auto`, which lets the encoder choose the Level that is appropriate for this layer.
     */
    @JvmName("spjsvfdkxsoqdquv")
    public suspend fun level(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.level = mapped
    }

    /**
     * @param value The maximum bitrate (in bits per second), at which the VBV buffer should be assumed to refill. If not specified, defaults to the same value as bitrate.
     */
    @JvmName("gkiugtqbfrqjhvpb")
    public suspend fun maxBitrate(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxBitrate = mapped
    }

    /**
     * @param value The H.264 profile. Possible values are `Auto`, `Main` and `Main10`. Default to `Auto`.
     */
    @JvmName("tuybdsvxvyaqymlw")
    public suspend fun profile(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.profile = mapped
    }

    /**
     * @param value The number of reference frames to be used when encoding this layer. If not specified, the encoder determines an appropriate number based on the encoder complexity setting.
     */
    @JvmName("lcnmkjvtphhpqqkl")
    public suspend fun referenceFrames(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.referenceFrames = mapped
    }

    /**
     * @param value The number of slices to be used when encoding this layer. If not specified, default is `1`, which means that encoder will use a single slice for each frame.
     */
    @JvmName("uwbqupdfxxcsgrwi")
    public suspend fun slices(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.slices = mapped
    }

    /**
     * @param value The width of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example `50%` means the output video has half as many pixels in width as the input.
     */
    @JvmName("ocllwgsjavdliwlf")
    public suspend fun width(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.width = mapped
    }

    internal fun build(): TransformOutputCustomPresetCodecH265VideoLayerArgs =
        TransformOutputCustomPresetCodecH265VideoLayerArgs(
            adaptiveBFrameEnabled = adaptiveBFrameEnabled,
            bFrames = bFrames,
            bitrate = bitrate ?: throw PulumiNullFieldException("bitrate"),
            bufferWindow = bufferWindow,
            crf = crf,
            frameRate = frameRate,
            height = height,
            label = label,
            level = level,
            maxBitrate = maxBitrate,
            profile = profile,
            referenceFrames = referenceFrames,
            slices = slices,
            width = width,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy