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

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

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

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



/**
 * Output groups for this Live Event. Output groups contain information about where streams should be distributed.
 */
public class OutputGroup private constructor(builder: Builder) {
    /**
     * Custom output group name optionally defined by the user.
     */
    public val name: kotlin.String? = builder.name
    /**
     * Settings associated with the output group.
     */
    public val outputGroupSettings: aws.sdk.kotlin.services.medialive.model.OutputGroupSettings? = builder.outputGroupSettings
    /**
     * Placeholder documentation for __listOfOutput
     */
    public val outputs: List? = builder.outputs

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

    override fun toString(): kotlin.String = buildString {
        append("OutputGroup(")
        append("name=$name,")
        append("outputGroupSettings=$outputGroupSettings,")
        append("outputs=$outputs")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = name?.hashCode() ?: 0
        result = 31 * result + (outputGroupSettings?.hashCode() ?: 0)
        result = 31 * result + (outputs?.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 OutputGroup

        if (name != other.name) return false
        if (outputGroupSettings != other.outputGroupSettings) return false
        if (outputs != other.outputs) return false

        return true
    }

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

    public class Builder {
        /**
         * Custom output group name optionally defined by the user.
         */
        public var name: kotlin.String? = null
        /**
         * Settings associated with the output group.
         */
        public var outputGroupSettings: aws.sdk.kotlin.services.medialive.model.OutputGroupSettings? = null
        /**
         * Placeholder documentation for __listOfOutput
         */
        public var outputs: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medialive.model.OutputGroup) : this() {
            this.name = x.name
            this.outputGroupSettings = x.outputGroupSettings
            this.outputs = x.outputs
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy