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

commonMain.aws.sdk.kotlin.services.chimesdkmessaging.model.AssociateChannelFlowRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.chimesdkmessaging.model



public class AssociateChannelFlowRequest private constructor(builder: Builder) {
    /**
     * The ARN of the channel.
     */
    public val channelArn: kotlin.String? = builder.channelArn
    /**
     * The ARN of the channel flow.
     */
    public val channelFlowArn: kotlin.String? = builder.channelFlowArn
    /**
     * The `AppInstanceUserArn` of the user making the API call.
     */
    public val chimeBearer: kotlin.String? = builder.chimeBearer

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

    override fun toString(): kotlin.String = buildString {
        append("AssociateChannelFlowRequest(")
        append("channelArn=$channelArn,")
        append("channelFlowArn=$channelFlowArn,")
        append("chimeBearer=$chimeBearer")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = channelArn?.hashCode() ?: 0
        result = 31 * result + (channelFlowArn?.hashCode() ?: 0)
        result = 31 * result + (chimeBearer?.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 AssociateChannelFlowRequest

        if (channelArn != other.channelArn) return false
        if (channelFlowArn != other.channelFlowArn) return false
        if (chimeBearer != other.chimeBearer) return false

        return true
    }

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

    public class Builder {
        /**
         * The ARN of the channel.
         */
        public var channelArn: kotlin.String? = null
        /**
         * The ARN of the channel flow.
         */
        public var channelFlowArn: kotlin.String? = null
        /**
         * The `AppInstanceUserArn` of the user making the API call.
         */
        public var chimeBearer: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.chimesdkmessaging.model.AssociateChannelFlowRequest) : this() {
            this.channelArn = x.channelArn
            this.channelFlowArn = x.channelFlowArn
            this.chimeBearer = x.chimeBearer
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy