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

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

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

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



/**
 * Summary of the sub-channels associated with the elastic channel.
 */
public class SubChannelSummary private constructor(builder: Builder) {
    /**
     * The number of members in a SubChannel.
     */
    public val membershipCount: kotlin.Int? = builder.membershipCount
    /**
     * The unique ID of a SubChannel.
     */
    public val subChannelId: kotlin.String? = builder.subChannelId

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

    override fun toString(): kotlin.String = buildString {
        append("SubChannelSummary(")
        append("membershipCount=$membershipCount,")
        append("subChannelId=$subChannelId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = membershipCount ?: 0
        result = 31 * result + (subChannelId?.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 SubChannelSummary

        if (membershipCount != other.membershipCount) return false
        if (subChannelId != other.subChannelId) return false

        return true
    }

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

    public class Builder {
        /**
         * The number of members in a SubChannel.
         */
        public var membershipCount: kotlin.Int? = null
        /**
         * The unique ID of a SubChannel.
         */
        public var subChannelId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.chimesdkmessaging.model.SubChannelSummary) : this() {
            this.membershipCount = x.membershipCount
            this.subChannelId = x.subChannelId
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy