commonMain.aws.sdk.kotlin.services.mediapackage.model.StreamSelection.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mediapackage-jvm Show documentation
Show all versions of mediapackage-jvm Show documentation
The AWS SDK for Kotlin client for MediaPackage
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.mediapackage.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A StreamSelection configuration.
*/
public class StreamSelection private constructor(builder: Builder) {
/**
* The maximum video bitrate (bps) to include in output.
*/
public val maxVideoBitsPerSecond: kotlin.Int? = builder.maxVideoBitsPerSecond
/**
* The minimum video bitrate (bps) to include in output.
*/
public val minVideoBitsPerSecond: kotlin.Int? = builder.minVideoBitsPerSecond
/**
* A directive that determines the order of streams in the output.
*/
public val streamOrder: aws.sdk.kotlin.services.mediapackage.model.StreamOrder? = builder.streamOrder
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.mediapackage.model.StreamSelection = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StreamSelection(")
append("maxVideoBitsPerSecond=$maxVideoBitsPerSecond,")
append("minVideoBitsPerSecond=$minVideoBitsPerSecond,")
append("streamOrder=$streamOrder")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = maxVideoBitsPerSecond ?: 0
result = 31 * result + (minVideoBitsPerSecond ?: 0)
result = 31 * result + (streamOrder?.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 StreamSelection
if (maxVideoBitsPerSecond != other.maxVideoBitsPerSecond) return false
if (minVideoBitsPerSecond != other.minVideoBitsPerSecond) return false
if (streamOrder != other.streamOrder) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.mediapackage.model.StreamSelection = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The maximum video bitrate (bps) to include in output.
*/
public var maxVideoBitsPerSecond: kotlin.Int? = null
/**
* The minimum video bitrate (bps) to include in output.
*/
public var minVideoBitsPerSecond: kotlin.Int? = null
/**
* A directive that determines the order of streams in the output.
*/
public var streamOrder: aws.sdk.kotlin.services.mediapackage.model.StreamOrder? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.mediapackage.model.StreamSelection) : this() {
this.maxVideoBitsPerSecond = x.maxVideoBitsPerSecond
this.minVideoBitsPerSecond = x.minVideoBitsPerSecond
this.streamOrder = x.streamOrder
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.mediapackage.model.StreamSelection = StreamSelection(this)
internal fun correctErrors(): Builder {
return this
}
}
}