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

commonMain.aws.sdk.kotlin.services.kafka.model.BrokerCountUpdateInfo.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.kafka.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Information regarding UpdateBrokerCount.
 */
public class BrokerCountUpdateInfo private constructor(builder: Builder) {
    /**
     * Kafka Broker IDs of brokers being created.
     */
    public val createdBrokerIds: List? = builder.createdBrokerIds
    /**
     * Kafka Broker IDs of brokers being deleted.
     */
    public val deletedBrokerIds: List? = builder.deletedBrokerIds

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

    override fun toString(): kotlin.String = buildString {
        append("BrokerCountUpdateInfo(")
        append("createdBrokerIds=$createdBrokerIds,")
        append("deletedBrokerIds=$deletedBrokerIds")
        append(")")
    }

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

        if (createdBrokerIds != other.createdBrokerIds) return false
        if (deletedBrokerIds != other.deletedBrokerIds) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Kafka Broker IDs of brokers being created.
         */
        public var createdBrokerIds: List? = null
        /**
         * Kafka Broker IDs of brokers being deleted.
         */
        public var deletedBrokerIds: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.kafka.model.BrokerCountUpdateInfo) : this() {
            this.createdBrokerIds = x.createdBrokerIds
            this.deletedBrokerIds = x.deletedBrokerIds
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy