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

commonMain.aws.sdk.kotlin.services.mediaconnect.model.AddFlowOutputsResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.mediaconnect.model



class AddFlowOutputsResponse private constructor(builder: Builder) {
    /**
     * The ARN of the flow that these outputs were added to.
     */
    val flowArn: kotlin.String? = builder.flowArn
    /**
     * The details of the newly added outputs.
     */
    val outputs: List? = builder.outputs

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

    override fun toString(): kotlin.String = buildString {
        append("AddFlowOutputsResponse(")
        append("flowArn=$flowArn,")
        append("outputs=$outputs)")
    }

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

        if (flowArn != other.flowArn) return false
        if (outputs != other.outputs) return false

        return true
    }

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

    class Builder {
        /**
         * The ARN of the flow that these outputs were added to.
         */
        var flowArn: kotlin.String? = null
        /**
         * The details of the newly added outputs.
         */
        var outputs: List? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.mediaconnect.model.AddFlowOutputsResponse) : this() {
            this.flowArn = x.flowArn
            this.outputs = x.outputs
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.mediaconnect.model.AddFlowOutputsResponse = AddFlowOutputsResponse(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy