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

commonMain.aws.sdk.kotlin.services.ivs.model.StreamKey.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.ivs.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Object specifying a stream key.
 */
public class StreamKey private constructor(builder: Builder) {
    /**
     * Stream-key ARN.
     */
    public val arn: kotlin.String? = builder.arn
    /**
     * Channel ARN for the stream.
     */
    public val channelArn: kotlin.String? = builder.channelArn
    /**
     * Tags attached to the resource. Array of 1-50 maps, each of the form `string:string (key:value)`. See [Tagging Amazon Web Services Resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) for more information, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no service-specific constraints beyond what is documented there.
     */
    public val tags: Map? = builder.tags
    /**
     * Stream-key value.
     */
    public val value: kotlin.String? = builder.value

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

    override fun toString(): kotlin.String = buildString {
        append("StreamKey(")
        append("arn=$arn,")
        append("channelArn=$channelArn,")
        append("tags=$tags,")
        append("value=*** Sensitive Data Redacted ***")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = arn?.hashCode() ?: 0
        result = 31 * result + (channelArn?.hashCode() ?: 0)
        result = 31 * result + (tags?.hashCode() ?: 0)
        result = 31 * result + (value?.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 StreamKey

        if (arn != other.arn) return false
        if (channelArn != other.channelArn) return false
        if (tags != other.tags) return false
        if (value != other.value) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Stream-key ARN.
         */
        public var arn: kotlin.String? = null
        /**
         * Channel ARN for the stream.
         */
        public var channelArn: kotlin.String? = null
        /**
         * Tags attached to the resource. Array of 1-50 maps, each of the form `string:string (key:value)`. See [Tagging Amazon Web Services Resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) for more information, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no service-specific constraints beyond what is documented there.
         */
        public var tags: Map? = null
        /**
         * Stream-key value.
         */
        public var value: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ivs.model.StreamKey) : this() {
            this.arn = x.arn
            this.channelArn = x.channelArn
            this.tags = x.tags
            this.value = x.value
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy