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

com.pulumi.alicloud.pvtz.kotlin.EndpointArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 3.62.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.alicloud.pvtz.kotlin

import com.pulumi.alicloud.pvtz.EndpointArgs.builder
import com.pulumi.alicloud.pvtz.kotlin.inputs.EndpointIpConfigArgs
import com.pulumi.alicloud.pvtz.kotlin.inputs.EndpointIpConfigArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Provides a Private Zone Endpoint resource.
 * For information about Private Zone Endpoint and how to use it, see [What is Endpoint](https://www.alibabacloud.com/help/en/privatezone/latest/add-endpoint).
 * > **NOTE:** Available since v1.143.0.
 * ## Import
 * Private Zone Endpoint can be imported using the id, e.g.
 * ```sh
 * $ pulumi import alicloud:pvtz/endpoint:Endpoint example 
 * ```
 * @property endpointName The name of the resource.
 * @property ipConfigs The Ip Configs. See `ip_configs` below. **NOTE:** In order to ensure high availability, add at least 2 and up to 6.
 * @property securityGroupId The ID of the Security Group.
 * @property vpcId The VPC ID.
 * @property vpcRegionId The Region of the VPC.
 */
public data class EndpointArgs(
    public val endpointName: Output? = null,
    public val ipConfigs: Output>? = null,
    public val securityGroupId: Output? = null,
    public val vpcId: Output? = null,
    public val vpcRegionId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.alicloud.pvtz.EndpointArgs =
        com.pulumi.alicloud.pvtz.EndpointArgs.builder()
            .endpointName(endpointName?.applyValue({ args0 -> args0 }))
            .ipConfigs(
                ipConfigs?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .securityGroupId(securityGroupId?.applyValue({ args0 -> args0 }))
            .vpcId(vpcId?.applyValue({ args0 -> args0 }))
            .vpcRegionId(vpcRegionId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EndpointArgs].
 */
@PulumiTagMarker
public class EndpointArgsBuilder internal constructor() {
    private var endpointName: Output? = null

    private var ipConfigs: Output>? = null

    private var securityGroupId: Output? = null

    private var vpcId: Output? = null

    private var vpcRegionId: Output? = null

    /**
     * @param value The name of the resource.
     */
    @JvmName("bqhkvibpdjixdhab")
    public suspend fun endpointName(`value`: Output) {
        this.endpointName = value
    }

    /**
     * @param value The Ip Configs. See `ip_configs` below. **NOTE:** In order to ensure high availability, add at least 2 and up to 6.
     */
    @JvmName("yrxoionhxyswvvyv")
    public suspend fun ipConfigs(`value`: Output>) {
        this.ipConfigs = value
    }

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

    /**
     * @param values The Ip Configs. See `ip_configs` below. **NOTE:** In order to ensure high availability, add at least 2 and up to 6.
     */
    @JvmName("mvvmaiwcxqqlwssu")
    public suspend fun ipConfigs(values: List>) {
        this.ipConfigs = Output.all(values)
    }

    /**
     * @param value The ID of the Security Group.
     */
    @JvmName("sugektbgldxgfynp")
    public suspend fun securityGroupId(`value`: Output) {
        this.securityGroupId = value
    }

    /**
     * @param value The VPC ID.
     */
    @JvmName("chgwsssxasfojldp")
    public suspend fun vpcId(`value`: Output) {
        this.vpcId = value
    }

    /**
     * @param value The Region of the VPC.
     */
    @JvmName("rctxbvdmmnpastvp")
    public suspend fun vpcRegionId(`value`: Output) {
        this.vpcRegionId = value
    }

    /**
     * @param value The name of the resource.
     */
    @JvmName("cfjixaehacwapxdc")
    public suspend fun endpointName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.endpointName = mapped
    }

    /**
     * @param value The Ip Configs. See `ip_configs` below. **NOTE:** In order to ensure high availability, add at least 2 and up to 6.
     */
    @JvmName("ffoinnommqtcljru")
    public suspend fun ipConfigs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipConfigs = mapped
    }

    /**
     * @param argument The Ip Configs. See `ip_configs` below. **NOTE:** In order to ensure high availability, add at least 2 and up to 6.
     */
    @JvmName("gdlbjovwkiikgraq")
    public suspend fun ipConfigs(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            EndpointIpConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.ipConfigs = mapped
    }

    /**
     * @param argument The Ip Configs. See `ip_configs` below. **NOTE:** In order to ensure high availability, add at least 2 and up to 6.
     */
    @JvmName("nmqwjrdaokerbbdw")
    public suspend fun ipConfigs(vararg argument: suspend EndpointIpConfigArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            EndpointIpConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.ipConfigs = mapped
    }

    /**
     * @param argument The Ip Configs. See `ip_configs` below. **NOTE:** In order to ensure high availability, add at least 2 and up to 6.
     */
    @JvmName("ngcalhmkycvusgqm")
    public suspend fun ipConfigs(argument: suspend EndpointIpConfigArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(EndpointIpConfigArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.ipConfigs = mapped
    }

    /**
     * @param values The Ip Configs. See `ip_configs` below. **NOTE:** In order to ensure high availability, add at least 2 and up to 6.
     */
    @JvmName("tnpslchmpuveqoml")
    public suspend fun ipConfigs(vararg values: EndpointIpConfigArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ipConfigs = mapped
    }

    /**
     * @param value The ID of the Security Group.
     */
    @JvmName("cktyqwuidmrfaymk")
    public suspend fun securityGroupId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.securityGroupId = mapped
    }

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

    /**
     * @param value The Region of the VPC.
     */
    @JvmName("xdpfykdnhnatvope")
    public suspend fun vpcRegionId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vpcRegionId = mapped
    }

    internal fun build(): EndpointArgs = EndpointArgs(
        endpointName = endpointName,
        ipConfigs = ipConfigs,
        securityGroupId = securityGroupId,
        vpcId = vpcId,
        vpcRegionId = vpcRegionId,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy