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

commonMain.aws.sdk.kotlin.services.kafka.model.VpcConnection.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
import aws.smithy.kotlin.runtime.time.Instant

/**
 * The VPC connection object.
 */
public class VpcConnection private constructor(builder: Builder) {
    /**
     * Information about the auth scheme of Vpc Connection.
     */
    public val authentication: kotlin.String? = builder.authentication
    /**
     * Creation time of the Vpc Connection.
     */
    public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
    /**
     * State of the Vpc Connection.
     */
    public val state: aws.sdk.kotlin.services.kafka.model.VpcConnectionState? = builder.state
    /**
     * The ARN that identifies the Cluster which the Vpc Connection belongs to.
     */
    public val targetClusterArn: kotlin.String? = builder.targetClusterArn
    /**
     * The ARN that identifies the Vpc Connection.
     */
    public val vpcConnectionArn: kotlin.String? = builder.vpcConnectionArn
    /**
     * The vpcId that belongs to the Vpc Connection.
     */
    public val vpcId: kotlin.String? = builder.vpcId

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

    override fun toString(): kotlin.String = buildString {
        append("VpcConnection(")
        append("authentication=$authentication,")
        append("creationTime=$creationTime,")
        append("state=$state,")
        append("targetClusterArn=$targetClusterArn,")
        append("vpcConnectionArn=$vpcConnectionArn,")
        append("vpcId=$vpcId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = authentication?.hashCode() ?: 0
        result = 31 * result + (creationTime?.hashCode() ?: 0)
        result = 31 * result + (state?.hashCode() ?: 0)
        result = 31 * result + (targetClusterArn?.hashCode() ?: 0)
        result = 31 * result + (vpcConnectionArn?.hashCode() ?: 0)
        result = 31 * result + (vpcId?.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 VpcConnection

        if (authentication != other.authentication) return false
        if (creationTime != other.creationTime) return false
        if (state != other.state) return false
        if (targetClusterArn != other.targetClusterArn) return false
        if (vpcConnectionArn != other.vpcConnectionArn) return false
        if (vpcId != other.vpcId) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Information about the auth scheme of Vpc Connection.
         */
        public var authentication: kotlin.String? = null
        /**
         * Creation time of the Vpc Connection.
         */
        public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * State of the Vpc Connection.
         */
        public var state: aws.sdk.kotlin.services.kafka.model.VpcConnectionState? = null
        /**
         * The ARN that identifies the Cluster which the Vpc Connection belongs to.
         */
        public var targetClusterArn: kotlin.String? = null
        /**
         * The ARN that identifies the Vpc Connection.
         */
        public var vpcConnectionArn: kotlin.String? = null
        /**
         * The vpcId that belongs to the Vpc Connection.
         */
        public var vpcId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.kafka.model.VpcConnection) : this() {
            this.authentication = x.authentication
            this.creationTime = x.creationTime
            this.state = x.state
            this.targetClusterArn = x.targetClusterArn
            this.vpcConnectionArn = x.vpcConnectionArn
            this.vpcId = x.vpcId
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy