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