All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.mediaconvert.model.StaticKeyProvider.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.mediaconvert.model



/**
 * Use these settings to set up encryption with a static key provider.
 */
public class StaticKeyProvider private constructor(builder: Builder) {
    /**
     * Relates to DRM implementation. Sets the value of the KEYFORMAT attribute. Must be 'identity' or a reverse DNS string. May be omitted to indicate an implicit value of 'identity'.
     */
    public val keyFormat: kotlin.String? = builder.keyFormat
    /**
     * Relates to DRM implementation. Either a single positive integer version value or a slash delimited list of version values (1/2/3).
     */
    public val keyFormatVersions: kotlin.String? = builder.keyFormatVersions
    /**
     * Relates to DRM implementation. Use a 32-character hexidecimal string to specify Key Value.
     */
    public val staticKeyValue: kotlin.String? = builder.staticKeyValue
    /**
     * Relates to DRM implementation. The location of the license server used for protecting content.
     */
    public val url: kotlin.String? = builder.url

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.mediaconvert.model.StaticKeyProvider = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("StaticKeyProvider(")
        append("keyFormat=$keyFormat,")
        append("keyFormatVersions=$keyFormatVersions,")
        append("staticKeyValue=$staticKeyValue,")
        append("url=$url")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = keyFormat?.hashCode() ?: 0
        result = 31 * result + (keyFormatVersions?.hashCode() ?: 0)
        result = 31 * result + (staticKeyValue?.hashCode() ?: 0)
        result = 31 * result + (url?.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 StaticKeyProvider

        if (keyFormat != other.keyFormat) return false
        if (keyFormatVersions != other.keyFormatVersions) return false
        if (staticKeyValue != other.staticKeyValue) return false
        if (url != other.url) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.mediaconvert.model.StaticKeyProvider = Builder(this).apply(block).build()

    public class Builder {
        /**
         * Relates to DRM implementation. Sets the value of the KEYFORMAT attribute. Must be 'identity' or a reverse DNS string. May be omitted to indicate an implicit value of 'identity'.
         */
        public var keyFormat: kotlin.String? = null
        /**
         * Relates to DRM implementation. Either a single positive integer version value or a slash delimited list of version values (1/2/3).
         */
        public var keyFormatVersions: kotlin.String? = null
        /**
         * Relates to DRM implementation. Use a 32-character hexidecimal string to specify Key Value.
         */
        public var staticKeyValue: kotlin.String? = null
        /**
         * Relates to DRM implementation. The location of the license server used for protecting content.
         */
        public var url: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.mediaconvert.model.StaticKeyProvider) : this() {
            this.keyFormat = x.keyFormat
            this.keyFormatVersions = x.keyFormatVersions
            this.staticKeyValue = x.staticKeyValue
            this.url = x.url
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.mediaconvert.model.StaticKeyProvider = StaticKeyProvider(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy