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

com.pulumi.gcp.vertex.kotlin.inputs.AiIndexEndpointPrivateServiceConnectConfigArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.vertex.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.vertex.inputs.AiIndexEndpointPrivateServiceConnectConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property enablePrivateServiceConnect If set to true, the IndexEndpoint is created without private service access.
 * @property projectAllowlists A list of Projects from which the forwarding rule will target the service attachment.
 */
public data class AiIndexEndpointPrivateServiceConnectConfigArgs(
    public val enablePrivateServiceConnect: Output,
    public val projectAllowlists: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.vertex.inputs.AiIndexEndpointPrivateServiceConnectConfigArgs = com.pulumi.gcp.vertex.inputs.AiIndexEndpointPrivateServiceConnectConfigArgs.builder()
        .enablePrivateServiceConnect(enablePrivateServiceConnect.applyValue({ args0 -> args0 }))
        .projectAllowlists(projectAllowlists?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [AiIndexEndpointPrivateServiceConnectConfigArgs].
 */
@PulumiTagMarker
public class AiIndexEndpointPrivateServiceConnectConfigArgsBuilder internal constructor() {
    private var enablePrivateServiceConnect: Output? = null

    private var projectAllowlists: Output>? = null

    /**
     * @param value If set to true, the IndexEndpoint is created without private service access.
     */
    @JvmName("gretdrikwdyvmgdf")
    public suspend fun enablePrivateServiceConnect(`value`: Output) {
        this.enablePrivateServiceConnect = value
    }

    /**
     * @param value A list of Projects from which the forwarding rule will target the service attachment.
     */
    @JvmName("qgaywnpwlabjgpgh")
    public suspend fun projectAllowlists(`value`: Output>) {
        this.projectAllowlists = value
    }

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

    /**
     * @param values A list of Projects from which the forwarding rule will target the service attachment.
     */
    @JvmName("bjrubxdstsyqbdbo")
    public suspend fun projectAllowlists(values: List>) {
        this.projectAllowlists = Output.all(values)
    }

    /**
     * @param value If set to true, the IndexEndpoint is created without private service access.
     */
    @JvmName("kisptcvgkxqwdhrx")
    public suspend fun enablePrivateServiceConnect(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.enablePrivateServiceConnect = mapped
    }

    /**
     * @param value A list of Projects from which the forwarding rule will target the service attachment.
     */
    @JvmName("pekhltbpqxlumify")
    public suspend fun projectAllowlists(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.projectAllowlists = mapped
    }

    /**
     * @param values A list of Projects from which the forwarding rule will target the service attachment.
     */
    @JvmName("wifmvdajqibnhnqd")
    public suspend fun projectAllowlists(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.projectAllowlists = mapped
    }

    internal fun build(): AiIndexEndpointPrivateServiceConnectConfigArgs =
        AiIndexEndpointPrivateServiceConnectConfigArgs(
            enablePrivateServiceConnect = enablePrivateServiceConnect ?: throw
                PulumiNullFieldException("enablePrivateServiceConnect"),
            projectAllowlists = projectAllowlists,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy