![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.mediaconnect.kotlin.outputs.FlowMediaStream.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.mediaconnect.kotlin.outputs
import com.pulumi.awsnative.mediaconnect.kotlin.enums.FlowMediaStreamMediaStreamType
import com.pulumi.awsnative.mediaconnect.kotlin.enums.FlowMediaStreamVideoFormat
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
* A single track or stream of media that contains video, audio, or ancillary data. After you add a media stream to a flow, you can associate it with sources and outputs on that flow, as long as they use the CDI protocol or the ST 2110 JPEG XS protocol. Each source or output can consist of one or many media streams.
* @property attributes Attributes that are related to the media stream.
* @property clockRate The sample rate for the stream. This value in measured in kHz.
* @property description A description that can help you quickly identify what your media stream is used for.
* @property fmt The format type number (sometimes referred to as RTP payload type) of the media stream. MediaConnect assigns this value to the media stream. For ST 2110 JPEG XS outputs, you need to provide this value to the receiver.
* @property mediaStreamId A unique identifier for the media stream.
* @property mediaStreamName A name that helps you distinguish one media stream from another.
* @property mediaStreamType The type of media stream.
* @property videoFormat The resolution of the video.
*/
public data class FlowMediaStream(
public val attributes: FlowMediaStreamAttributes? = null,
public val clockRate: Int? = null,
public val description: String? = null,
public val fmt: Int? = null,
public val mediaStreamId: Int,
public val mediaStreamName: String,
public val mediaStreamType: FlowMediaStreamMediaStreamType,
public val videoFormat: FlowMediaStreamVideoFormat? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.mediaconnect.outputs.FlowMediaStream): FlowMediaStream = FlowMediaStream(
attributes = javaType.attributes().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.mediaconnect.kotlin.outputs.FlowMediaStreamAttributes.Companion.toKotlin(args0)
})
}).orElse(null),
clockRate = javaType.clockRate().map({ args0 -> args0 }).orElse(null),
description = javaType.description().map({ args0 -> args0 }).orElse(null),
fmt = javaType.fmt().map({ args0 -> args0 }).orElse(null),
mediaStreamId = javaType.mediaStreamId(),
mediaStreamName = javaType.mediaStreamName(),
mediaStreamType = javaType.mediaStreamType().let({ args0 ->
com.pulumi.awsnative.mediaconnect.kotlin.enums.FlowMediaStreamMediaStreamType.Companion.toKotlin(args0)
}),
videoFormat = javaType.videoFormat().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.mediaconnect.kotlin.enums.FlowMediaStreamVideoFormat.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy