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

commonMain.aws.sdk.kotlin.services.chimesdkmediapipelines.model.LiveConnectorRtmpConfiguration.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.chimesdkmediapipelines.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * The media pipeline's RTMP configuration object.
 */
public class LiveConnectorRtmpConfiguration private constructor(builder: Builder) {
    /**
     * The audio channels set for the RTMP configuration
     */
    public val audioChannels: aws.sdk.kotlin.services.chimesdkmediapipelines.model.AudioChannelsOption? = builder.audioChannels
    /**
     * The audio sample rate set for the RTMP configuration. Default: 48000.
     */
    public val audioSampleRate: kotlin.String? = builder.audioSampleRate
    /**
     * The URL of the RTMP configuration.
     */
    public val url: kotlin.String = requireNotNull(builder.url) { "A non-null value must be provided for url" }

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

    override fun toString(): kotlin.String = buildString {
        append("LiveConnectorRtmpConfiguration(")
        append("audioChannels=$audioChannels,")
        append("audioSampleRate=$audioSampleRate,")
        append("url=*** Sensitive Data Redacted ***")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = audioChannels?.hashCode() ?: 0
        result = 31 * result + (audioSampleRate?.hashCode() ?: 0)
        result = 31 * result + (url.hashCode())
        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 LiveConnectorRtmpConfiguration

        if (audioChannels != other.audioChannels) return false
        if (audioSampleRate != other.audioSampleRate) return false
        if (url != other.url) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The audio channels set for the RTMP configuration
         */
        public var audioChannels: aws.sdk.kotlin.services.chimesdkmediapipelines.model.AudioChannelsOption? = null
        /**
         * The audio sample rate set for the RTMP configuration. Default: 48000.
         */
        public var audioSampleRate: kotlin.String? = null
        /**
         * The URL of the RTMP configuration.
         */
        public var url: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.chimesdkmediapipelines.model.LiveConnectorRtmpConfiguration) : this() {
            this.audioChannels = x.audioChannels
            this.audioSampleRate = x.audioSampleRate
            this.url = x.url
        }

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

        internal fun correctErrors(): Builder {
            if (url == null) url = ""
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy