commonMain.aws.sdk.kotlin.services.mediaconvert.model.MsSmoothEncryptionSettings.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mediaconvert-jvm Show documentation
Show all versions of mediaconvert-jvm Show documentation
The AWS SDK for Kotlin client for MediaConvert
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.mediaconvert.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* If you are using DRM, set DRM System to specify the value SpekeKeyProvider.
*/
public class MsSmoothEncryptionSettings private constructor(builder: Builder) {
/**
* If your output group type is HLS, DASH, or Microsoft Smooth, use these settings when doing DRM encryption with a SPEKE-compliant key provider. If your output group type is CMAF, use the SpekeKeyProviderCmaf settings instead.
*/
public val spekeKeyProvider: aws.sdk.kotlin.services.mediaconvert.model.SpekeKeyProvider? = builder.spekeKeyProvider
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.mediaconvert.model.MsSmoothEncryptionSettings = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MsSmoothEncryptionSettings(")
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 MsSmoothEncryptionSettings
if (spekeKeyProvider != other.spekeKeyProvider) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.mediaconvert.model.MsSmoothEncryptionSettings = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* If your output group type is HLS, DASH, or Microsoft Smooth, use these settings when doing DRM encryption with a SPEKE-compliant key provider. If your output group type is CMAF, use the SpekeKeyProviderCmaf settings instead.
*/
public var spekeKeyProvider: aws.sdk.kotlin.services.mediaconvert.model.SpekeKeyProvider? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.mediaconvert.model.MsSmoothEncryptionSettings) : this() {
this.spekeKeyProvider = x.spekeKeyProvider
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.mediaconvert.model.MsSmoothEncryptionSettings = MsSmoothEncryptionSettings(this)
/**
* construct an [aws.sdk.kotlin.services.mediaconvert.model.SpekeKeyProvider] inside the given [block]
*/
public fun spekeKeyProvider(block: aws.sdk.kotlin.services.mediaconvert.model.SpekeKeyProvider.Builder.() -> kotlin.Unit) {
this.spekeKeyProvider = aws.sdk.kotlin.services.mediaconvert.model.SpekeKeyProvider.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}