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

commonMain.aws.sdk.kotlin.services.chimesdkmediapipelines.model.ChimeSdkMeetingConfiguration.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 configuration object of the Amazon Chime SDK meeting for a specified media pipeline. `SourceType` must be `ChimeSdkMeeting`.
 */
public class ChimeSdkMeetingConfiguration private constructor(builder: Builder) {
    /**
     * The configuration for the artifacts in an Amazon Chime SDK meeting.
     */
    public val artifactsConfiguration: aws.sdk.kotlin.services.chimesdkmediapipelines.model.ArtifactsConfiguration? = builder.artifactsConfiguration
    /**
     * The source configuration for a specified media pipeline.
     */
    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.ChimeSdkMeetingConfiguration = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("ChimeSdkMeetingConfiguration(")
        append("artifactsConfiguration=$artifactsConfiguration,")
        append("sourceConfiguration=$sourceConfiguration")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = artifactsConfiguration?.hashCode() ?: 0
        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 ChimeSdkMeetingConfiguration

        if (artifactsConfiguration != other.artifactsConfiguration) return false
        if (sourceConfiguration != other.sourceConfiguration) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The configuration for the artifacts in an Amazon Chime SDK meeting.
         */
        public var artifactsConfiguration: aws.sdk.kotlin.services.chimesdkmediapipelines.model.ArtifactsConfiguration? = null
        /**
         * The source configuration for a specified media pipeline.
         */
        public var sourceConfiguration: aws.sdk.kotlin.services.chimesdkmediapipelines.model.SourceConfiguration? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.chimesdkmediapipelines.model.ChimeSdkMeetingConfiguration) : this() {
            this.artifactsConfiguration = x.artifactsConfiguration
            this.sourceConfiguration = x.sourceConfiguration
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.chimesdkmediapipelines.model.ArtifactsConfiguration] inside the given [block]
         */
        public fun artifactsConfiguration(block: aws.sdk.kotlin.services.chimesdkmediapipelines.model.ArtifactsConfiguration.Builder.() -> kotlin.Unit) {
            this.artifactsConfiguration = aws.sdk.kotlin.services.chimesdkmediapipelines.model.ArtifactsConfiguration.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 {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy