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

commonMain.aws.sdk.kotlin.services.ivs.model.Srt.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

/**
 * Specifies information needed to stream using the SRT protocol.
 */
public class Srt private constructor(builder: Builder) {
    /**
     * The endpoint to be used when streaming with IVS using the SRT protocol.
     */
    public val endpoint: kotlin.String? = builder.endpoint
    /**
     * Auto-generated passphrase to enable encryption. This field is applicable only if the end user has *not* enabled the `insecureIngest` option for the channel.
     */
    public val passphrase: kotlin.String? = builder.passphrase

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

    override fun toString(): kotlin.String = buildString {
        append("Srt(")
        append("endpoint=$endpoint,")
        append("passphrase=*** Sensitive Data Redacted ***")
        append(")")
    }

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

        if (endpoint != other.endpoint) return false
        if (passphrase != other.passphrase) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The endpoint to be used when streaming with IVS using the SRT protocol.
         */
        public var endpoint: kotlin.String? = null
        /**
         * Auto-generated passphrase to enable encryption. This field is applicable only if the end user has *not* enabled the `insecureIngest` option for the channel.
         */
        public var passphrase: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ivs.model.Srt) : this() {
            this.endpoint = x.endpoint
            this.passphrase = x.passphrase
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy