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