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

commonMain.aws.sdk.kotlin.services.medialive.model.StaticKeySettings.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.medialive.model



/**
 * Static Key Settings
 */
public class StaticKeySettings private constructor(builder: Builder) {
    /**
     * The URL of the license server used for protecting content.
     */
    public val keyProviderServer: aws.sdk.kotlin.services.medialive.model.InputLocation? = builder.keyProviderServer
    /**
     * Static key value as a 32 character hexadecimal string.
     */
    public val staticKeyValue: kotlin.String? = builder.staticKeyValue

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

    override fun toString(): kotlin.String = buildString {
        append("StaticKeySettings(")
        append("keyProviderServer=$keyProviderServer,")
        append("staticKeyValue=$staticKeyValue")
        append(")")
    }

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

        if (keyProviderServer != other.keyProviderServer) return false
        if (staticKeyValue != other.staticKeyValue) return false

        return true
    }

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

    public class Builder {
        /**
         * The URL of the license server used for protecting content.
         */
        public var keyProviderServer: aws.sdk.kotlin.services.medialive.model.InputLocation? = null
        /**
         * Static key value as a 32 character hexadecimal string.
         */
        public var staticKeyValue: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medialive.model.StaticKeySettings) : this() {
            this.keyProviderServer = x.keyProviderServer
            this.staticKeyValue = x.staticKeyValue
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.medialive.model.InputLocation] inside the given [block]
         */
        public fun keyProviderServer(block: aws.sdk.kotlin.services.medialive.model.InputLocation.Builder.() -> kotlin.Unit) {
            this.keyProviderServer = aws.sdk.kotlin.services.medialive.model.InputLocation.invoke(block)
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy