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

commonMain.aws.sdk.kotlin.services.chimesdkmediapipelines.model.ArtifactsConfiguration.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 for the artifacts.
 */
public class ArtifactsConfiguration private constructor(builder: Builder) {
    /**
     * The configuration for the audio artifacts.
     */
    public val audio: aws.sdk.kotlin.services.chimesdkmediapipelines.model.AudioArtifactsConfiguration? = builder.audio
    /**
     * Enables video compositing.
     */
    public val compositedVideo: aws.sdk.kotlin.services.chimesdkmediapipelines.model.CompositedVideoArtifactsConfiguration? = builder.compositedVideo
    /**
     * The configuration for the content artifacts.
     */
    public val content: aws.sdk.kotlin.services.chimesdkmediapipelines.model.ContentArtifactsConfiguration? = builder.content
    /**
     * The configuration for the video artifacts.
     */
    public val video: aws.sdk.kotlin.services.chimesdkmediapipelines.model.VideoArtifactsConfiguration? = builder.video

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

    override fun toString(): kotlin.String = buildString {
        append("ArtifactsConfiguration(")
        append("audio=$audio,")
        append("compositedVideo=$compositedVideo,")
        append("content=$content,")
        append("video=$video")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = audio?.hashCode() ?: 0
        result = 31 * result + (compositedVideo?.hashCode() ?: 0)
        result = 31 * result + (content?.hashCode() ?: 0)
        result = 31 * result + (video?.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 ArtifactsConfiguration

        if (audio != other.audio) return false
        if (compositedVideo != other.compositedVideo) return false
        if (content != other.content) return false
        if (video != other.video) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The configuration for the audio artifacts.
         */
        public var audio: aws.sdk.kotlin.services.chimesdkmediapipelines.model.AudioArtifactsConfiguration? = null
        /**
         * Enables video compositing.
         */
        public var compositedVideo: aws.sdk.kotlin.services.chimesdkmediapipelines.model.CompositedVideoArtifactsConfiguration? = null
        /**
         * The configuration for the content artifacts.
         */
        public var content: aws.sdk.kotlin.services.chimesdkmediapipelines.model.ContentArtifactsConfiguration? = null
        /**
         * The configuration for the video artifacts.
         */
        public var video: aws.sdk.kotlin.services.chimesdkmediapipelines.model.VideoArtifactsConfiguration? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.chimesdkmediapipelines.model.ArtifactsConfiguration) : this() {
            this.audio = x.audio
            this.compositedVideo = x.compositedVideo
            this.content = x.content
            this.video = x.video
        }

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

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy