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

com.pulumi.awsnative.msk.kotlin.inputs.ClusterConnectivityInfoArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.msk.kotlin.inputs

import com.pulumi.awsnative.msk.inputs.ClusterConnectivityInfoArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property publicAccess Access control settings for the cluster's brokers.
 * @property vpcConnectivity VPC connection control settings for brokers
 */
public data class ClusterConnectivityInfoArgs(
    public val publicAccess: Output? = null,
    public val vpcConnectivity: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.msk.inputs.ClusterConnectivityInfoArgs =
        com.pulumi.awsnative.msk.inputs.ClusterConnectivityInfoArgs.builder()
            .publicAccess(publicAccess?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .vpcConnectivity(
                vpcConnectivity?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [ClusterConnectivityInfoArgs].
 */
@PulumiTagMarker
public class ClusterConnectivityInfoArgsBuilder internal constructor() {
    private var publicAccess: Output? = null

    private var vpcConnectivity: Output? = null

    /**
     * @param value Access control settings for the cluster's brokers.
     */
    @JvmName("orbrwwjuyngixtfn")
    public suspend fun publicAccess(`value`: Output) {
        this.publicAccess = value
    }

    /**
     * @param value VPC connection control settings for brokers
     */
    @JvmName("kcravniimmukowsl")
    public suspend fun vpcConnectivity(`value`: Output) {
        this.vpcConnectivity = value
    }

    /**
     * @param value Access control settings for the cluster's brokers.
     */
    @JvmName("owaqbbujdhkwbygy")
    public suspend fun publicAccess(`value`: ClusterPublicAccessArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publicAccess = mapped
    }

    /**
     * @param argument Access control settings for the cluster's brokers.
     */
    @JvmName("ljoxpfxfxuorlhgk")
    public suspend fun publicAccess(argument: suspend ClusterPublicAccessArgsBuilder.() -> Unit) {
        val toBeMapped = ClusterPublicAccessArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.publicAccess = mapped
    }

    /**
     * @param value VPC connection control settings for brokers
     */
    @JvmName("urrmpemiwdkvtsna")
    public suspend fun vpcConnectivity(`value`: ClusterVpcConnectivityArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vpcConnectivity = mapped
    }

    /**
     * @param argument VPC connection control settings for brokers
     */
    @JvmName("lsbwcaaeklpnhxfa")
    public suspend fun vpcConnectivity(argument: suspend ClusterVpcConnectivityArgsBuilder.() -> Unit) {
        val toBeMapped = ClusterVpcConnectivityArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.vpcConnectivity = mapped
    }

    internal fun build(): ClusterConnectivityInfoArgs = ClusterConnectivityInfoArgs(
        publicAccess = publicAccess,
        vpcConnectivity = vpcConnectivity,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy