commonMain.aws.sdk.kotlin.services.mediapackagevod.model.MssPackage.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mediapackagevod-jvm Show documentation
Show all versions of mediapackagevod-jvm Show documentation
The AWS SDK for Kotlin client for MediaPackage Vod
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.mediapackagevod.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A Microsoft Smooth Streaming (MSS) PackagingConfiguration.
*/
public class MssPackage private constructor(builder: Builder) {
/**
* A Microsoft Smooth Streaming (MSS) encryption configuration.
*/
public val encryption: aws.sdk.kotlin.services.mediapackagevod.model.MssEncryption? = builder.encryption
/**
* A list of MSS manifest configurations.
*/
public val mssManifests: List? = builder.mssManifests
/**
* The duration (in seconds) of each segment.
*/
public val segmentDurationSeconds: kotlin.Int? = builder.segmentDurationSeconds
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.mediapackagevod.model.MssPackage = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MssPackage(")
append("encryption=$encryption,")
append("mssManifests=$mssManifests,")
append("segmentDurationSeconds=$segmentDurationSeconds")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = encryption?.hashCode() ?: 0
result = 31 * result + (mssManifests?.hashCode() ?: 0)
result = 31 * result + (segmentDurationSeconds ?: 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 MssPackage
if (encryption != other.encryption) return false
if (mssManifests != other.mssManifests) return false
if (segmentDurationSeconds != other.segmentDurationSeconds) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.mediapackagevod.model.MssPackage = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A Microsoft Smooth Streaming (MSS) encryption configuration.
*/
public var encryption: aws.sdk.kotlin.services.mediapackagevod.model.MssEncryption? = null
/**
* A list of MSS manifest configurations.
*/
public var mssManifests: List? = null
/**
* The duration (in seconds) of each segment.
*/
public var segmentDurationSeconds: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.mediapackagevod.model.MssPackage) : this() {
this.encryption = x.encryption
this.mssManifests = x.mssManifests
this.segmentDurationSeconds = x.segmentDurationSeconds
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.mediapackagevod.model.MssPackage = MssPackage(this)
/**
* construct an [aws.sdk.kotlin.services.mediapackagevod.model.MssEncryption] inside the given [block]
*/
public fun encryption(block: aws.sdk.kotlin.services.mediapackagevod.model.MssEncryption.Builder.() -> kotlin.Unit) {
this.encryption = aws.sdk.kotlin.services.mediapackagevod.model.MssEncryption.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy