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

commonMain.aws.sdk.kotlin.services.kafka.model.EbsStorageInfo.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 the EBS storage volumes attached to Apache Kafka broker nodes.
 */
public class EbsStorageInfo private constructor(builder: Builder) {
    /**
     * EBS volume provisioned throughput information.
     */
    public val provisionedThroughput: aws.sdk.kotlin.services.kafka.model.ProvisionedThroughput? = builder.provisionedThroughput
    /**
     * The size in GiB of the EBS volume for the data drive on each broker node.
     */
    public val volumeSize: kotlin.Int? = builder.volumeSize

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

    override fun toString(): kotlin.String = buildString {
        append("EbsStorageInfo(")
        append("provisionedThroughput=$provisionedThroughput,")
        append("volumeSize=$volumeSize")
        append(")")
    }

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

        if (provisionedThroughput != other.provisionedThroughput) return false
        if (volumeSize != other.volumeSize) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * EBS volume provisioned throughput information.
         */
        public var provisionedThroughput: aws.sdk.kotlin.services.kafka.model.ProvisionedThroughput? = null
        /**
         * The size in GiB of the EBS volume for the data drive on each broker node.
         */
        public var volumeSize: kotlin.Int? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.kafka.model.EbsStorageInfo) : this() {
            this.provisionedThroughput = x.provisionedThroughput
            this.volumeSize = x.volumeSize
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.kafka.model.ProvisionedThroughput] inside the given [block]
         */
        public fun provisionedThroughput(block: aws.sdk.kotlin.services.kafka.model.ProvisionedThroughput.Builder.() -> kotlin.Unit) {
            this.provisionedThroughput = aws.sdk.kotlin.services.kafka.model.ProvisionedThroughput.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy