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