
commonMain.aws.sdk.kotlin.services.kafka.model.BrokerSoftwareInfo.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
/**
* Information about the current software installed on the cluster.
*/
public class BrokerSoftwareInfo private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the configuration used for the cluster. This field isn't visible in this preview release.
*/
public val configurationArn: kotlin.String? = builder.configurationArn
/**
* The revision of the configuration to use. This field isn't visible in this preview release.
*/
public val configurationRevision: kotlin.Long? = builder.configurationRevision
/**
* The version of Apache Kafka.
*/
public val kafkaVersion: kotlin.String? = builder.kafkaVersion
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kafka.model.BrokerSoftwareInfo = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BrokerSoftwareInfo(")
append("configurationArn=$configurationArn,")
append("configurationRevision=$configurationRevision,")
append("kafkaVersion=$kafkaVersion")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = configurationArn?.hashCode() ?: 0
result = 31 * result + (configurationRevision?.hashCode() ?: 0)
result = 31 * result + (kafkaVersion?.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 BrokerSoftwareInfo
if (configurationArn != other.configurationArn) return false
if (configurationRevision != other.configurationRevision) return false
if (kafkaVersion != other.kafkaVersion) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kafka.model.BrokerSoftwareInfo = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the configuration used for the cluster. This field isn't visible in this preview release.
*/
public var configurationArn: kotlin.String? = null
/**
* The revision of the configuration to use. This field isn't visible in this preview release.
*/
public var configurationRevision: kotlin.Long? = null
/**
* The version of Apache Kafka.
*/
public var kafkaVersion: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kafka.model.BrokerSoftwareInfo) : this() {
this.configurationArn = x.configurationArn
this.configurationRevision = x.configurationRevision
this.kafkaVersion = x.kafkaVersion
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kafka.model.BrokerSoftwareInfo = BrokerSoftwareInfo(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy