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

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

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

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



/**
 * Placeholder documentation for OutputDestination
 */
public class OutputDestination private constructor(builder: Builder) {
    /**
     * User-specified id. This is used in an output group or an output.
     */
    public val id: kotlin.String? = builder.id
    /**
     * Destination settings for a MediaPackage output; one destination for both encoders.
     */
    public val mediaPackageSettings: List? = builder.mediaPackageSettings
    /**
     * Destination settings for a Multiplex output; one destination for both encoders.
     */
    public val multiplexSettings: aws.sdk.kotlin.services.medialive.model.MultiplexProgramChannelDestinationSettings? = builder.multiplexSettings
    /**
     * Destination settings for a standard output; one destination for each redundant encoder.
     */
    public val settings: List? = builder.settings

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

    override fun toString(): kotlin.String = buildString {
        append("OutputDestination(")
        append("id=$id,")
        append("mediaPackageSettings=$mediaPackageSettings,")
        append("multiplexSettings=$multiplexSettings,")
        append("settings=$settings")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = id?.hashCode() ?: 0
        result = 31 * result + (mediaPackageSettings?.hashCode() ?: 0)
        result = 31 * result + (multiplexSettings?.hashCode() ?: 0)
        result = 31 * result + (settings?.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 OutputDestination

        if (id != other.id) return false
        if (mediaPackageSettings != other.mediaPackageSettings) return false
        if (multiplexSettings != other.multiplexSettings) return false
        if (settings != other.settings) return false

        return true
    }

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

    public class Builder {
        /**
         * User-specified id. This is used in an output group or an output.
         */
        public var id: kotlin.String? = null
        /**
         * Destination settings for a MediaPackage output; one destination for both encoders.
         */
        public var mediaPackageSettings: List? = null
        /**
         * Destination settings for a Multiplex output; one destination for both encoders.
         */
        public var multiplexSettings: aws.sdk.kotlin.services.medialive.model.MultiplexProgramChannelDestinationSettings? = null
        /**
         * Destination settings for a standard output; one destination for each redundant encoder.
         */
        public var settings: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medialive.model.OutputDestination) : this() {
            this.id = x.id
            this.mediaPackageSettings = x.mediaPackageSettings
            this.multiplexSettings = x.multiplexSettings
            this.settings = x.settings
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy