
commonMain.aws.sdk.kotlin.services.kafka.model.StorageInfo.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 storage volumes attached to MSK broker nodes.
*/
public class StorageInfo private constructor(builder: Builder) {
/**
* EBS volume information.
*/
public val ebsStorageInfo: aws.sdk.kotlin.services.kafka.model.EbsStorageInfo? = builder.ebsStorageInfo
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kafka.model.StorageInfo = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StorageInfo(")
append("ebsStorageInfo=$ebsStorageInfo")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = ebsStorageInfo?.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 StorageInfo
if (ebsStorageInfo != other.ebsStorageInfo) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kafka.model.StorageInfo = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* EBS volume information.
*/
public var ebsStorageInfo: aws.sdk.kotlin.services.kafka.model.EbsStorageInfo? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kafka.model.StorageInfo) : this() {
this.ebsStorageInfo = x.ebsStorageInfo
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kafka.model.StorageInfo = StorageInfo(this)
/**
* construct an [aws.sdk.kotlin.services.kafka.model.EbsStorageInfo] inside the given [block]
*/
public fun ebsStorageInfo(block: aws.sdk.kotlin.services.kafka.model.EbsStorageInfo.Builder.() -> kotlin.Unit) {
this.ebsStorageInfo = aws.sdk.kotlin.services.kafka.model.EbsStorageInfo.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy