commonMain.aws.sdk.kotlin.services.mediapackage.model.MssPackage.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 Microsoft Smooth Streaming (MSS) packaging configuration.
*/
public class MssPackage private constructor(builder: Builder) {
/**
* A Microsoft Smooth Streaming (MSS) encryption configuration.
*/
public val encryption: aws.sdk.kotlin.services.mediapackage.model.MssEncryption? = builder.encryption
/**
* The time window (in seconds) contained in each manifest.
*/
public val manifestWindowSeconds: kotlin.Int? = builder.manifestWindowSeconds
/**
* The duration (in seconds) of each segment.
*/
public val segmentDurationSeconds: kotlin.Int? = builder.segmentDurationSeconds
/**
* A StreamSelection configuration.
*/
public val streamSelection: aws.sdk.kotlin.services.mediapackage.model.StreamSelection? = builder.streamSelection
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.mediapackage.model.MssPackage = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MssPackage(")
append("encryption=$encryption,")
append("manifestWindowSeconds=$manifestWindowSeconds,")
append("segmentDurationSeconds=$segmentDurationSeconds,")
append("streamSelection=$streamSelection")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = encryption?.hashCode() ?: 0
result = 31 * result + (manifestWindowSeconds ?: 0)
result = 31 * result + (segmentDurationSeconds ?: 0)
result = 31 * result + (streamSelection?.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 MssPackage
if (encryption != other.encryption) return false
if (manifestWindowSeconds != other.manifestWindowSeconds) return false
if (segmentDurationSeconds != other.segmentDurationSeconds) return false
if (streamSelection != other.streamSelection) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.mediapackage.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.mediapackage.model.MssEncryption? = null
/**
* The time window (in seconds) contained in each manifest.
*/
public var manifestWindowSeconds: kotlin.Int? = null
/**
* The duration (in seconds) of each segment.
*/
public var segmentDurationSeconds: kotlin.Int? = null
/**
* A StreamSelection configuration.
*/
public var streamSelection: aws.sdk.kotlin.services.mediapackage.model.StreamSelection? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.mediapackage.model.MssPackage) : this() {
this.encryption = x.encryption
this.manifestWindowSeconds = x.manifestWindowSeconds
this.segmentDurationSeconds = x.segmentDurationSeconds
this.streamSelection = x.streamSelection
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.mediapackage.model.MssPackage = MssPackage(this)
/**
* construct an [aws.sdk.kotlin.services.mediapackage.model.MssEncryption] inside the given [block]
*/
public fun encryption(block: aws.sdk.kotlin.services.mediapackage.model.MssEncryption.Builder.() -> kotlin.Unit) {
this.encryption = aws.sdk.kotlin.services.mediapackage.model.MssEncryption.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.mediapackage.model.StreamSelection] inside the given [block]
*/
public fun streamSelection(block: aws.sdk.kotlin.services.mediapackage.model.StreamSelection.Builder.() -> kotlin.Unit) {
this.streamSelection = aws.sdk.kotlin.services.mediapackage.model.StreamSelection.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}