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

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

There is a newer version: 1.3.76
Show 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 configuration object.
 */
public class ChimeSdkMeetingLiveConnectorConfiguration private constructor(builder: Builder) {
    /**
     * The configuration object's Chime SDK meeting ARN.
     */
    public val arn: kotlin.String = requireNotNull(builder.arn) { "A non-null value must be provided for arn" }
    /**
     * The media pipeline's composited video.
     */
    public val compositedVideo: aws.sdk.kotlin.services.chimesdkmediapipelines.model.CompositedVideoArtifactsConfiguration? = builder.compositedVideo
    /**
     * The configuration object's multiplex type.
     */
    public val muxType: aws.sdk.kotlin.services.chimesdkmediapipelines.model.LiveConnectorMuxType = requireNotNull(builder.muxType) { "A non-null value must be provided for muxType" }
    /**
     * The source configuration settings of the media pipeline's configuration object.
     */
    public val sourceConfiguration: aws.sdk.kotlin.services.chimesdkmediapipelines.model.SourceConfiguration? = builder.sourceConfiguration

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

    override fun toString(): kotlin.String = buildString {
        append("ChimeSdkMeetingLiveConnectorConfiguration(")
        append("arn=*** Sensitive Data Redacted ***,")
        append("compositedVideo=$compositedVideo,")
        append("muxType=$muxType,")
        append("sourceConfiguration=$sourceConfiguration")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = arn.hashCode()
        result = 31 * result + (compositedVideo?.hashCode() ?: 0)
        result = 31 * result + (muxType.hashCode())
        result = 31 * result + (sourceConfiguration?.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 ChimeSdkMeetingLiveConnectorConfiguration

        if (arn != other.arn) return false
        if (compositedVideo != other.compositedVideo) return false
        if (muxType != other.muxType) return false
        if (sourceConfiguration != other.sourceConfiguration) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The configuration object's Chime SDK meeting ARN.
         */
        public var arn: kotlin.String? = null
        /**
         * The media pipeline's composited video.
         */
        public var compositedVideo: aws.sdk.kotlin.services.chimesdkmediapipelines.model.CompositedVideoArtifactsConfiguration? = null
        /**
         * The configuration object's multiplex type.
         */
        public var muxType: aws.sdk.kotlin.services.chimesdkmediapipelines.model.LiveConnectorMuxType? = null
        /**
         * The source configuration settings of the media pipeline's configuration object.
         */
        public var sourceConfiguration: aws.sdk.kotlin.services.chimesdkmediapipelines.model.SourceConfiguration? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.chimesdkmediapipelines.model.ChimeSdkMeetingLiveConnectorConfiguration) : this() {
            this.arn = x.arn
            this.compositedVideo = x.compositedVideo
            this.muxType = x.muxType
            this.sourceConfiguration = x.sourceConfiguration
        }

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

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

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

        internal fun correctErrors(): Builder {
            if (arn == null) arn = ""
            if (muxType == null) muxType = LiveConnectorMuxType.SdkUnknown("no value provided")
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy