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

com.pulumi.azurenative.network.kotlin.inputs.PrivateLinkServiceArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.network.kotlin.inputs

import com.pulumi.azurenative.network.inputs.PrivateLinkServiceArgs.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.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Private link service resource.
 * @property autoApproval The auto-approval list of the private link service.
 * @property enableProxyProtocol Whether the private link service is enabled for proxy protocol or not.
 * @property extendedLocation The extended location of the load balancer.
 * @property fqdns The list of Fqdn.
 * @property id Resource ID.
 * @property ipConfigurations An array of private link service IP configurations.
 * @property loadBalancerFrontendIpConfigurations An array of references to the load balancer IP configurations.
 * @property location Resource location.
 * @property tags Resource tags.
 * @property visibility The visibility list of the private link service.
 */
public data class PrivateLinkServiceArgs(
    public val autoApproval: Output? = null,
    public val enableProxyProtocol: Output? = null,
    public val extendedLocation: Output? = null,
    public val fqdns: Output>? = null,
    public val id: Output? = null,
    public val ipConfigurations: Output>? = null,
    public val loadBalancerFrontendIpConfigurations: Output>? =
        null,
    public val location: Output? = null,
    public val tags: Output>? = null,
    public val visibility: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.network.inputs.PrivateLinkServiceArgs =
        com.pulumi.azurenative.network.inputs.PrivateLinkServiceArgs.builder()
            .autoApproval(autoApproval?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .enableProxyProtocol(enableProxyProtocol?.applyValue({ args0 -> args0 }))
            .extendedLocation(extendedLocation?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .fqdns(fqdns?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .id(id?.applyValue({ args0 -> args0 }))
            .ipConfigurations(
                ipConfigurations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .loadBalancerFrontendIpConfigurations(
                loadBalancerFrontendIpConfigurations?.applyValue({ args0 ->
                    args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .location(location?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .visibility(visibility?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [PrivateLinkServiceArgs].
 */
@PulumiTagMarker
public class PrivateLinkServiceArgsBuilder internal constructor() {
    private var autoApproval: Output? = null

    private var enableProxyProtocol: Output? = null

    private var extendedLocation: Output? = null

    private var fqdns: Output>? = null

    private var id: Output? = null

    private var ipConfigurations: Output>? = null

    private var loadBalancerFrontendIpConfigurations: Output>? =
        null

    private var location: Output? = null

    private var tags: Output>? = null

    private var visibility: Output? = null

    /**
     * @param value The auto-approval list of the private link service.
     */
    @JvmName("bicrbqwgwhcripor")
    public suspend fun autoApproval(`value`: Output) {
        this.autoApproval = value
    }

    /**
     * @param value Whether the private link service is enabled for proxy protocol or not.
     */
    @JvmName("sidvcolymxrqbvuc")
    public suspend fun enableProxyProtocol(`value`: Output) {
        this.enableProxyProtocol = value
    }

    /**
     * @param value The extended location of the load balancer.
     */
    @JvmName("ibnjktqrketwogwc")
    public suspend fun extendedLocation(`value`: Output) {
        this.extendedLocation = value
    }

    /**
     * @param value The list of Fqdn.
     */
    @JvmName("nnbbasoqtiagfrgx")
    public suspend fun fqdns(`value`: Output>) {
        this.fqdns = value
    }

    @JvmName("ddkorshtoyyfpdob")
    public suspend fun fqdns(vararg values: Output) {
        this.fqdns = Output.all(values.asList())
    }

    /**
     * @param values The list of Fqdn.
     */
    @JvmName("tkxptlwywirxwopk")
    public suspend fun fqdns(values: List>) {
        this.fqdns = Output.all(values)
    }

    /**
     * @param value Resource ID.
     */
    @JvmName("nvbpwqesjpqwkthc")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value An array of private link service IP configurations.
     */
    @JvmName("bnyfppyomwyysiis")
    public suspend fun ipConfigurations(`value`: Output>) {
        this.ipConfigurations = value
    }

    @JvmName("uhrjiyisgwjtjwcq")
    public suspend fun ipConfigurations(vararg values: Output) {
        this.ipConfigurations = Output.all(values.asList())
    }

    /**
     * @param values An array of private link service IP configurations.
     */
    @JvmName("nplcmbkmlxyoagib")
    public suspend fun ipConfigurations(values: List>) {
        this.ipConfigurations = Output.all(values)
    }

    /**
     * @param value An array of references to the load balancer IP configurations.
     */
    @JvmName("lfpddwthpapbesss")
    public suspend fun loadBalancerFrontendIpConfigurations(`value`: Output>) {
        this.loadBalancerFrontendIpConfigurations = value
    }

    @JvmName("rvmmwucsjxnpkqls")
    public suspend fun loadBalancerFrontendIpConfigurations(vararg values: Output) {
        this.loadBalancerFrontendIpConfigurations = Output.all(values.asList())
    }

    /**
     * @param values An array of references to the load balancer IP configurations.
     */
    @JvmName("qqefltcxevnatlwu")
    public suspend fun loadBalancerFrontendIpConfigurations(values: List>) {
        this.loadBalancerFrontendIpConfigurations = Output.all(values)
    }

    /**
     * @param value Resource location.
     */
    @JvmName("eyaakvxhkiskkbaj")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value Resource tags.
     */
    @JvmName("qmwqlyodpdubmnug")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The visibility list of the private link service.
     */
    @JvmName("djqrrpxtejrqgldi")
    public suspend fun visibility(`value`: Output) {
        this.visibility = value
    }

    /**
     * @param value The auto-approval list of the private link service.
     */
    @JvmName("ofeibimcjjrgotwl")
    public suspend fun autoApproval(`value`: PrivateLinkServicePropertiesAutoApprovalArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoApproval = mapped
    }

    /**
     * @param argument The auto-approval list of the private link service.
     */
    @JvmName("icehwwaevdeedlta")
    public suspend fun autoApproval(argument: suspend PrivateLinkServicePropertiesAutoApprovalArgsBuilder.() -> Unit) {
        val toBeMapped = PrivateLinkServicePropertiesAutoApprovalArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.autoApproval = mapped
    }

    /**
     * @param value Whether the private link service is enabled for proxy protocol or not.
     */
    @JvmName("tyoxfdrnukvhuisp")
    public suspend fun enableProxyProtocol(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableProxyProtocol = mapped
    }

    /**
     * @param value The extended location of the load balancer.
     */
    @JvmName("qfqgcbqhsmbgtajm")
    public suspend fun extendedLocation(`value`: ExtendedLocationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.extendedLocation = mapped
    }

    /**
     * @param argument The extended location of the load balancer.
     */
    @JvmName("mgqivwndkbphvtyk")
    public suspend fun extendedLocation(argument: suspend ExtendedLocationArgsBuilder.() -> Unit) {
        val toBeMapped = ExtendedLocationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.extendedLocation = mapped
    }

    /**
     * @param value The list of Fqdn.
     */
    @JvmName("nscmuxsrfcujknpd")
    public suspend fun fqdns(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fqdns = mapped
    }

    /**
     * @param values The list of Fqdn.
     */
    @JvmName("ipkqanuqvudupbhu")
    public suspend fun fqdns(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.fqdns = mapped
    }

    /**
     * @param value Resource ID.
     */
    @JvmName("vaccboyqapqodldv")
    public suspend fun id(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.id = mapped
    }

    /**
     * @param value An array of private link service IP configurations.
     */
    @JvmName("pjduedytgjwwaqba")
    public suspend fun ipConfigurations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipConfigurations = mapped
    }

    /**
     * @param argument An array of private link service IP configurations.
     */
    @JvmName("wtrdgbcwrdvypxal")
    public suspend fun ipConfigurations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            PrivateLinkServiceIpConfigurationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.ipConfigurations = mapped
    }

    /**
     * @param argument An array of private link service IP configurations.
     */
    @JvmName("xyokvfgssnybdybo")
    public suspend fun ipConfigurations(vararg argument: suspend PrivateLinkServiceIpConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            PrivateLinkServiceIpConfigurationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.ipConfigurations = mapped
    }

    /**
     * @param argument An array of private link service IP configurations.
     */
    @JvmName("rqgwsfnbwlvgtcno")
    public suspend fun ipConfigurations(argument: suspend PrivateLinkServiceIpConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            PrivateLinkServiceIpConfigurationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.ipConfigurations = mapped
    }

    /**
     * @param values An array of private link service IP configurations.
     */
    @JvmName("klhngpxqnfraouoe")
    public suspend fun ipConfigurations(vararg values: PrivateLinkServiceIpConfigurationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ipConfigurations = mapped
    }

    /**
     * @param value An array of references to the load balancer IP configurations.
     */
    @JvmName("ytueacmndlvgvlrl")
    public suspend fun loadBalancerFrontendIpConfigurations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.loadBalancerFrontendIpConfigurations = mapped
    }

    /**
     * @param argument An array of references to the load balancer IP configurations.
     */
    @JvmName("uvwipjrwroflvkko")
    public suspend fun loadBalancerFrontendIpConfigurations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            FrontendIPConfigurationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.loadBalancerFrontendIpConfigurations = mapped
    }

    /**
     * @param argument An array of references to the load balancer IP configurations.
     */
    @JvmName("jbkkfrygocgrylrf")
    public suspend fun loadBalancerFrontendIpConfigurations(vararg argument: suspend FrontendIPConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            FrontendIPConfigurationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.loadBalancerFrontendIpConfigurations = mapped
    }

    /**
     * @param argument An array of references to the load balancer IP configurations.
     */
    @JvmName("bfaomfoahoiromss")
    public suspend fun loadBalancerFrontendIpConfigurations(argument: suspend FrontendIPConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            FrontendIPConfigurationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.loadBalancerFrontendIpConfigurations = mapped
    }

    /**
     * @param values An array of references to the load balancer IP configurations.
     */
    @JvmName("aqvuevrdlfahswol")
    public suspend fun loadBalancerFrontendIpConfigurations(vararg values: FrontendIPConfigurationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.loadBalancerFrontendIpConfigurations = mapped
    }

    /**
     * @param value Resource location.
     */
    @JvmName("ueqxdnlhikeaxybh")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value Resource tags.
     */
    @JvmName("atwvjjfxglqjewgx")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values Resource tags.
     */
    @JvmName("vmoqhhcbxvkhsssv")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The visibility list of the private link service.
     */
    @JvmName("ymjwoxkoclrfokkk")
    public suspend fun visibility(`value`: PrivateLinkServicePropertiesVisibilityArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.visibility = mapped
    }

    /**
     * @param argument The visibility list of the private link service.
     */
    @JvmName("acejmdiitceahord")
    public suspend fun visibility(argument: suspend PrivateLinkServicePropertiesVisibilityArgsBuilder.() -> Unit) {
        val toBeMapped = PrivateLinkServicePropertiesVisibilityArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.visibility = mapped
    }

    internal fun build(): PrivateLinkServiceArgs = PrivateLinkServiceArgs(
        autoApproval = autoApproval,
        enableProxyProtocol = enableProxyProtocol,
        extendedLocation = extendedLocation,
        fqdns = fqdns,
        id = id,
        ipConfigurations = ipConfigurations,
        loadBalancerFrontendIpConfigurations = loadBalancerFrontendIpConfigurations,
        location = location,
        tags = tags,
        visibility = visibility,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy