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

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

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

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



/**
 * Rtmp Output Settings
 */
public class RtmpOutputSettings private constructor(builder: Builder) {
    /**
     * If set to verifyAuthenticity, verify the tls certificate chain to a trusted Certificate Authority (CA). This will cause rtmps outputs with self-signed certificates to fail.
     */
    public val certificateMode: aws.sdk.kotlin.services.medialive.model.RtmpOutputCertificateMode? = builder.certificateMode
    /**
     * Number of seconds to wait before retrying a connection to the Flash Media server if the connection is lost.
     */
    public val connectionRetryInterval: kotlin.Int = builder.connectionRetryInterval
    /**
     * The RTMP endpoint excluding the stream name (eg. rtmp://host/appname). For connection to Akamai, a username and password must be supplied. URI fields accept format identifiers.
     */
    public val destination: aws.sdk.kotlin.services.medialive.model.OutputLocationRef? = builder.destination
    /**
     * Number of retry attempts.
     */
    public val numRetries: kotlin.Int = builder.numRetries

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

    override fun toString(): kotlin.String = buildString {
        append("RtmpOutputSettings(")
        append("certificateMode=$certificateMode,")
        append("connectionRetryInterval=$connectionRetryInterval,")
        append("destination=$destination,")
        append("numRetries=$numRetries")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = certificateMode?.hashCode() ?: 0
        result = 31 * result + (connectionRetryInterval)
        result = 31 * result + (destination?.hashCode() ?: 0)
        result = 31 * result + (numRetries)
        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 RtmpOutputSettings

        if (certificateMode != other.certificateMode) return false
        if (connectionRetryInterval != other.connectionRetryInterval) return false
        if (destination != other.destination) return false
        if (numRetries != other.numRetries) return false

        return true
    }

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

    public class Builder {
        /**
         * If set to verifyAuthenticity, verify the tls certificate chain to a trusted Certificate Authority (CA). This will cause rtmps outputs with self-signed certificates to fail.
         */
        public var certificateMode: aws.sdk.kotlin.services.medialive.model.RtmpOutputCertificateMode? = null
        /**
         * Number of seconds to wait before retrying a connection to the Flash Media server if the connection is lost.
         */
        public var connectionRetryInterval: kotlin.Int = 0
        /**
         * The RTMP endpoint excluding the stream name (eg. rtmp://host/appname). For connection to Akamai, a username and password must be supplied. URI fields accept format identifiers.
         */
        public var destination: aws.sdk.kotlin.services.medialive.model.OutputLocationRef? = null
        /**
         * Number of retry attempts.
         */
        public var numRetries: kotlin.Int = 0

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medialive.model.RtmpOutputSettings) : this() {
            this.certificateMode = x.certificateMode
            this.connectionRetryInterval = x.connectionRetryInterval
            this.destination = x.destination
            this.numRetries = x.numRetries
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy