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

com.pulumi.azurenative.hdinsight.kotlin.inputs.NetworkPropertiesArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.hdinsight.kotlin.inputs

import com.pulumi.azurenative.hdinsight.inputs.NetworkPropertiesArgs.builder
import com.pulumi.azurenative.hdinsight.kotlin.enums.PrivateLink
import com.pulumi.azurenative.hdinsight.kotlin.enums.ResourceProviderConnection
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * The network properties.
 * @property privateLink Indicates whether or not private link is enabled.
 * @property resourceProviderConnection The direction for the resource provider connection.
 */
public data class NetworkPropertiesArgs(
    public val privateLink: Output>? = null,
    public val resourceProviderConnection: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.hdinsight.inputs.NetworkPropertiesArgs =
        com.pulumi.azurenative.hdinsight.inputs.NetworkPropertiesArgs.builder()
            .privateLink(
                privateLink?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .resourceProviderConnection(
                resourceProviderConnection?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            ).build()
}

/**
 * Builder for [NetworkPropertiesArgs].
 */
@PulumiTagMarker
public class NetworkPropertiesArgsBuilder internal constructor() {
    private var privateLink: Output>? = null

    private var resourceProviderConnection: Output>? = null

    /**
     * @param value Indicates whether or not private link is enabled.
     */
    @JvmName("hfyvcqfcskcwohwd")
    public suspend fun privateLink(`value`: Output>) {
        this.privateLink = value
    }

    /**
     * @param value The direction for the resource provider connection.
     */
    @JvmName("nmavikgpffijbplj")
    public suspend fun resourceProviderConnection(`value`: Output>) {
        this.resourceProviderConnection = value
    }

    /**
     * @param value Indicates whether or not private link is enabled.
     */
    @JvmName("bqtxhhaqkhfspidq")
    public suspend fun privateLink(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.privateLink = mapped
    }

    /**
     * @param value Indicates whether or not private link is enabled.
     */
    @JvmName("oksccymyhxxqhfso")
    public fun privateLink(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.privateLink = mapped
    }

    /**
     * @param value Indicates whether or not private link is enabled.
     */
    @JvmName("dglywnhqbxhnrtce")
    public fun privateLink(`value`: PrivateLink) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.privateLink = mapped
    }

    /**
     * @param value The direction for the resource provider connection.
     */
    @JvmName("tetpbjqltxtjvtli")
    public suspend fun resourceProviderConnection(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceProviderConnection = mapped
    }

    /**
     * @param value The direction for the resource provider connection.
     */
    @JvmName("hgriatajvpbtsgvc")
    public fun resourceProviderConnection(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.resourceProviderConnection = mapped
    }

    /**
     * @param value The direction for the resource provider connection.
     */
    @JvmName("wcyfscwnlepymokm")
    public fun resourceProviderConnection(`value`: ResourceProviderConnection) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.resourceProviderConnection = mapped
    }

    internal fun build(): NetworkPropertiesArgs = NetworkPropertiesArgs(
        privateLink = privateLink,
        resourceProviderConnection = resourceProviderConnection,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy