commonMain.aws.sdk.kotlin.services.mediapackage.model.MssEncryption.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) encryption configuration.
*/
public class MssEncryption private constructor(builder: Builder) {
/**
* A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys.
*/
public val spekeKeyProvider: aws.sdk.kotlin.services.mediapackage.model.SpekeKeyProvider? = builder.spekeKeyProvider
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.mediapackage.model.MssEncryption = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MssEncryption(")
append("spekeKeyProvider=$spekeKeyProvider")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = spekeKeyProvider?.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 MssEncryption
if (spekeKeyProvider != other.spekeKeyProvider) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.mediapackage.model.MssEncryption = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys.
*/
public var spekeKeyProvider: aws.sdk.kotlin.services.mediapackage.model.SpekeKeyProvider? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.mediapackage.model.MssEncryption) : this() {
this.spekeKeyProvider = x.spekeKeyProvider
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.mediapackage.model.MssEncryption = MssEncryption(this)
/**
* construct an [aws.sdk.kotlin.services.mediapackage.model.SpekeKeyProvider] inside the given [block]
*/
public fun spekeKeyProvider(block: aws.sdk.kotlin.services.mediapackage.model.SpekeKeyProvider.Builder.() -> kotlin.Unit) {
this.spekeKeyProvider = aws.sdk.kotlin.services.mediapackage.model.SpekeKeyProvider.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}