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

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

public class CreateVpcConnectionRequest private constructor(builder: Builder) {
    /**
     * The authentication type of VPC connection.
     */
    public val authentication: kotlin.String? = builder.authentication
    /**
     * The list of client subnets.
     */
    public val clientSubnets: List? = builder.clientSubnets
    /**
     * The list of security groups.
     */
    public val securityGroups: List? = builder.securityGroups
    /**
     * A map of tags for the VPC connection.
     */
    public val tags: Map? = builder.tags
    /**
     * The cluster Amazon Resource Name (ARN) for the VPC connection.
     */
    public val targetClusterArn: kotlin.String? = builder.targetClusterArn
    /**
     * The VPC ID of 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.CreateVpcConnectionRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("CreateVpcConnectionRequest(")
        append("authentication=$authentication,")
        append("clientSubnets=$clientSubnets,")
        append("securityGroups=$securityGroups,")
        append("tags=$tags,")
        append("targetClusterArn=$targetClusterArn,")
        append("vpcId=$vpcId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = authentication?.hashCode() ?: 0
        result = 31 * result + (clientSubnets?.hashCode() ?: 0)
        result = 31 * result + (securityGroups?.hashCode() ?: 0)
        result = 31 * result + (tags?.hashCode() ?: 0)
        result = 31 * result + (targetClusterArn?.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 CreateVpcConnectionRequest

        if (authentication != other.authentication) return false
        if (clientSubnets != other.clientSubnets) return false
        if (securityGroups != other.securityGroups) return false
        if (tags != other.tags) return false
        if (targetClusterArn != other.targetClusterArn) return false
        if (vpcId != other.vpcId) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The authentication type of VPC connection.
         */
        public var authentication: kotlin.String? = null
        /**
         * The list of client subnets.
         */
        public var clientSubnets: List? = null
        /**
         * The list of security groups.
         */
        public var securityGroups: List? = null
        /**
         * A map of tags for the VPC connection.
         */
        public var tags: Map? = null
        /**
         * The cluster Amazon Resource Name (ARN) for the VPC connection.
         */
        public var targetClusterArn: kotlin.String? = null
        /**
         * The VPC ID of VPC connection.
         */
        public var vpcId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.kafka.model.CreateVpcConnectionRequest) : this() {
            this.authentication = x.authentication
            this.clientSubnets = x.clientSubnets
            this.securityGroups = x.securityGroups
            this.tags = x.tags
            this.targetClusterArn = x.targetClusterArn
            this.vpcId = x.vpcId
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy