
commonMain.aws.sdk.kotlin.services.medialive.model.MultiplexProgram.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.medialive.model
/**
* The multiplex program object.
*/
public class MultiplexProgram private constructor(builder: Builder) {
/**
* The MediaLive channel associated with the program.
*/
public val channelId: kotlin.String? = builder.channelId
/**
* The settings for this multiplex program.
*/
public val multiplexProgramSettings: aws.sdk.kotlin.services.medialive.model.MultiplexProgramSettings? = builder.multiplexProgramSettings
/**
* The packet identifier map for this multiplex program.
*/
public val packetIdentifiersMap: aws.sdk.kotlin.services.medialive.model.MultiplexProgramPacketIdentifiersMap? = builder.packetIdentifiersMap
/**
* Contains information about the current sources for the specified program in the specified multiplex. Keep in mind that each multiplex pipeline connects to both pipelines in a given source channel (the channel identified by the program). But only one of those channel pipelines is ever active at one time.
*/
public val pipelineDetails: List? = builder.pipelineDetails
/**
* The name of the multiplex program.
*/
public val programName: kotlin.String? = builder.programName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medialive.model.MultiplexProgram = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MultiplexProgram(")
append("channelId=$channelId,")
append("multiplexProgramSettings=$multiplexProgramSettings,")
append("packetIdentifiersMap=$packetIdentifiersMap,")
append("pipelineDetails=$pipelineDetails,")
append("programName=$programName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = channelId?.hashCode() ?: 0
result = 31 * result + (multiplexProgramSettings?.hashCode() ?: 0)
result = 31 * result + (packetIdentifiersMap?.hashCode() ?: 0)
result = 31 * result + (pipelineDetails?.hashCode() ?: 0)
result = 31 * result + (programName?.hashCode() ?: 0)
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as MultiplexProgram
if (channelId != other.channelId) return false
if (multiplexProgramSettings != other.multiplexProgramSettings) return false
if (packetIdentifiersMap != other.packetIdentifiersMap) return false
if (pipelineDetails != other.pipelineDetails) return false
if (programName != other.programName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medialive.model.MultiplexProgram = Builder(this).apply(block).build()
public class Builder {
/**
* The MediaLive channel associated with the program.
*/
public var channelId: kotlin.String? = null
/**
* The settings for this multiplex program.
*/
public var multiplexProgramSettings: aws.sdk.kotlin.services.medialive.model.MultiplexProgramSettings? = null
/**
* The packet identifier map for this multiplex program.
*/
public var packetIdentifiersMap: aws.sdk.kotlin.services.medialive.model.MultiplexProgramPacketIdentifiersMap? = null
/**
* Contains information about the current sources for the specified program in the specified multiplex. Keep in mind that each multiplex pipeline connects to both pipelines in a given source channel (the channel identified by the program). But only one of those channel pipelines is ever active at one time.
*/
public var pipelineDetails: List? = null
/**
* The name of the multiplex program.
*/
public var programName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.medialive.model.MultiplexProgram) : this() {
this.channelId = x.channelId
this.multiplexProgramSettings = x.multiplexProgramSettings
this.packetIdentifiersMap = x.packetIdentifiersMap
this.pipelineDetails = x.pipelineDetails
this.programName = x.programName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.medialive.model.MultiplexProgram = MultiplexProgram(this)
/**
* construct an [aws.sdk.kotlin.services.medialive.model.MultiplexProgramSettings] inside the given [block]
*/
public fun multiplexProgramSettings(block: aws.sdk.kotlin.services.medialive.model.MultiplexProgramSettings.Builder.() -> kotlin.Unit) {
this.multiplexProgramSettings = aws.sdk.kotlin.services.medialive.model.MultiplexProgramSettings.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.medialive.model.MultiplexProgramPacketIdentifiersMap] inside the given [block]
*/
public fun packetIdentifiersMap(block: aws.sdk.kotlin.services.medialive.model.MultiplexProgramPacketIdentifiersMap.Builder.() -> kotlin.Unit) {
this.packetIdentifiersMap = aws.sdk.kotlin.services.medialive.model.MultiplexProgramPacketIdentifiersMap.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy