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

commonMain.aws.sdk.kotlin.services.kafka.model.ProvisionedThroughput.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

/**
 * Contains information about provisioned throughput for EBS storage volumes attached to kafka broker nodes.
 */
public class ProvisionedThroughput private constructor(builder: Builder) {
    /**
     * Provisioned throughput is enabled or not.
     */
    public val enabled: kotlin.Boolean? = builder.enabled
    /**
     * Throughput value of the EBS volumes for the data drive on each kafka broker node in MiB per second.
     */
    public val volumeThroughput: kotlin.Int? = builder.volumeThroughput

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

    override fun toString(): kotlin.String = buildString {
        append("ProvisionedThroughput(")
        append("enabled=$enabled,")
        append("volumeThroughput=$volumeThroughput")
        append(")")
    }

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

        if (enabled != other.enabled) return false
        if (volumeThroughput != other.volumeThroughput) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Provisioned throughput is enabled or not.
         */
        public var enabled: kotlin.Boolean? = null
        /**
         * Throughput value of the EBS volumes for the data drive on each kafka broker node in MiB per second.
         */
        public var volumeThroughput: kotlin.Int? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.kafka.model.ProvisionedThroughput) : this() {
            this.enabled = x.enabled
            this.volumeThroughput = x.volumeThroughput
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy