All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.kafka.model.BrokerNodeInfo.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

/**
 * BrokerNodeInfo
 */
public class BrokerNodeInfo private constructor(builder: Builder) {
    /**
     * The attached elastic network interface of the broker.
     */
    public val attachedEniId: kotlin.String? = builder.attachedEniId
    /**
     * The ID of the broker.
     */
    public val brokerId: kotlin.Double? = builder.brokerId
    /**
     * The client subnet to which this broker node belongs.
     */
    public val clientSubnet: kotlin.String? = builder.clientSubnet
    /**
     * The virtual private cloud (VPC) of the client.
     */
    public val clientVpcIpAddress: kotlin.String? = builder.clientVpcIpAddress
    /**
     * Information about the version of software currently deployed on the Apache Kafka brokers in the cluster.
     */
    public val currentBrokerSoftwareInfo: aws.sdk.kotlin.services.kafka.model.BrokerSoftwareInfo? = builder.currentBrokerSoftwareInfo
    /**
     * Endpoints for accessing the broker.
     */
    public val endpoints: List? = builder.endpoints

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kafka.model.BrokerNodeInfo = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("BrokerNodeInfo(")
        append("attachedEniId=$attachedEniId,")
        append("brokerId=$brokerId,")
        append("clientSubnet=$clientSubnet,")
        append("clientVpcIpAddress=$clientVpcIpAddress,")
        append("currentBrokerSoftwareInfo=$currentBrokerSoftwareInfo,")
        append("endpoints=$endpoints")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = attachedEniId?.hashCode() ?: 0
        result = 31 * result + (brokerId?.hashCode() ?: 0)
        result = 31 * result + (clientSubnet?.hashCode() ?: 0)
        result = 31 * result + (clientVpcIpAddress?.hashCode() ?: 0)
        result = 31 * result + (currentBrokerSoftwareInfo?.hashCode() ?: 0)
        result = 31 * result + (endpoints?.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 BrokerNodeInfo

        if (attachedEniId != other.attachedEniId) return false
        if (!(brokerId?.equals(other.brokerId) ?: (other.brokerId == null))) return false
        if (clientSubnet != other.clientSubnet) return false
        if (clientVpcIpAddress != other.clientVpcIpAddress) return false
        if (currentBrokerSoftwareInfo != other.currentBrokerSoftwareInfo) return false
        if (endpoints != other.endpoints) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kafka.model.BrokerNodeInfo = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The attached elastic network interface of the broker.
         */
        public var attachedEniId: kotlin.String? = null
        /**
         * The ID of the broker.
         */
        public var brokerId: kotlin.Double? = null
        /**
         * The client subnet to which this broker node belongs.
         */
        public var clientSubnet: kotlin.String? = null
        /**
         * The virtual private cloud (VPC) of the client.
         */
        public var clientVpcIpAddress: kotlin.String? = null
        /**
         * Information about the version of software currently deployed on the Apache Kafka brokers in the cluster.
         */
        public var currentBrokerSoftwareInfo: aws.sdk.kotlin.services.kafka.model.BrokerSoftwareInfo? = null
        /**
         * Endpoints for accessing the broker.
         */
        public var endpoints: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.kafka.model.BrokerNodeInfo) : this() {
            this.attachedEniId = x.attachedEniId
            this.brokerId = x.brokerId
            this.clientSubnet = x.clientSubnet
            this.clientVpcIpAddress = x.clientVpcIpAddress
            this.currentBrokerSoftwareInfo = x.currentBrokerSoftwareInfo
            this.endpoints = x.endpoints
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.kafka.model.BrokerNodeInfo = BrokerNodeInfo(this)

        /**
         * construct an [aws.sdk.kotlin.services.kafka.model.BrokerSoftwareInfo] inside the given [block]
         */
        public fun currentBrokerSoftwareInfo(block: aws.sdk.kotlin.services.kafka.model.BrokerSoftwareInfo.Builder.() -> kotlin.Unit) {
            this.currentBrokerSoftwareInfo = aws.sdk.kotlin.services.kafka.model.BrokerSoftwareInfo.invoke(block)
        }

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy