
commonMain.aws.sdk.kotlin.services.kafka.model.ZookeeperNodeInfo.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
/**
* Zookeeper node information.
*/
public class ZookeeperNodeInfo private constructor(builder: Builder) {
/**
* The attached elastic network interface of the broker.
*/
public val attachedEniId: kotlin.String? = builder.attachedEniId
/**
* The virtual private cloud (VPC) IP address of the client.
*/
public val clientVpcIpAddress: kotlin.String? = builder.clientVpcIpAddress
/**
* Endpoints for accessing the ZooKeeper.
*/
public val endpoints: List? = builder.endpoints
/**
* The role-specific ID for Zookeeper.
*/
public val zookeeperId: kotlin.Double? = builder.zookeeperId
/**
* The version of Zookeeper.
*/
public val zookeeperVersion: kotlin.String? = builder.zookeeperVersion
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kafka.model.ZookeeperNodeInfo = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ZookeeperNodeInfo(")
append("attachedEniId=$attachedEniId,")
append("clientVpcIpAddress=$clientVpcIpAddress,")
append("endpoints=$endpoints,")
append("zookeeperId=$zookeeperId,")
append("zookeeperVersion=$zookeeperVersion")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = attachedEniId?.hashCode() ?: 0
result = 31 * result + (clientVpcIpAddress?.hashCode() ?: 0)
result = 31 * result + (endpoints?.hashCode() ?: 0)
result = 31 * result + (zookeeperId?.hashCode() ?: 0)
result = 31 * result + (zookeeperVersion?.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 ZookeeperNodeInfo
if (attachedEniId != other.attachedEniId) return false
if (clientVpcIpAddress != other.clientVpcIpAddress) return false
if (endpoints != other.endpoints) return false
if (!(zookeeperId?.equals(other.zookeeperId) ?: (other.zookeeperId == null))) return false
if (zookeeperVersion != other.zookeeperVersion) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kafka.model.ZookeeperNodeInfo = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The attached elastic network interface of the broker.
*/
public var attachedEniId: kotlin.String? = null
/**
* The virtual private cloud (VPC) IP address of the client.
*/
public var clientVpcIpAddress: kotlin.String? = null
/**
* Endpoints for accessing the ZooKeeper.
*/
public var endpoints: List? = null
/**
* The role-specific ID for Zookeeper.
*/
public var zookeeperId: kotlin.Double? = null
/**
* The version of Zookeeper.
*/
public var zookeeperVersion: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kafka.model.ZookeeperNodeInfo) : this() {
this.attachedEniId = x.attachedEniId
this.clientVpcIpAddress = x.clientVpcIpAddress
this.endpoints = x.endpoints
this.zookeeperId = x.zookeeperId
this.zookeeperVersion = x.zookeeperVersion
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kafka.model.ZookeeperNodeInfo = ZookeeperNodeInfo(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy