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

com.pulumi.azure.webpubsub.kotlin.inputs.NetworkAclPrivateEndpointArgs.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.webpubsub.kotlin.inputs

import com.pulumi.azure.webpubsub.inputs.NetworkAclPrivateEndpointArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property allowedRequestTypes The allowed request types for the Private Endpoint Connection. Possible values are `ClientConnection`, `ServerConnection`, `RESTAPI` and `Trace`.
 * @property deniedRequestTypes The denied request types for the Private Endpoint Connection. Possible values are `ClientConnection`, `ServerConnection`, `RESTAPI` and `Trace`.
 * > **NOTE:** When `default_action` is `Allow`, `allowed_request_types`cannot be set. When `default_action` is `Deny`, `denied_request_types`cannot be set.
 * @property id The ID of the Private Endpoint which is based on the Web Pubsub service.
 */
public data class NetworkAclPrivateEndpointArgs(
    public val allowedRequestTypes: Output>? = null,
    public val deniedRequestTypes: Output>? = null,
    public val id: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.webpubsub.inputs.NetworkAclPrivateEndpointArgs =
        com.pulumi.azure.webpubsub.inputs.NetworkAclPrivateEndpointArgs.builder()
            .allowedRequestTypes(allowedRequestTypes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .deniedRequestTypes(deniedRequestTypes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .id(id.applyValue({ args0 -> args0 })).build()
}

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

    private var deniedRequestTypes: Output>? = null

    private var id: Output? = null

    /**
     * @param value The allowed request types for the Private Endpoint Connection. Possible values are `ClientConnection`, `ServerConnection`, `RESTAPI` and `Trace`.
     */
    @JvmName("gggjlvdwgtrqfstp")
    public suspend fun allowedRequestTypes(`value`: Output>) {
        this.allowedRequestTypes = value
    }

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

    /**
     * @param values The allowed request types for the Private Endpoint Connection. Possible values are `ClientConnection`, `ServerConnection`, `RESTAPI` and `Trace`.
     */
    @JvmName("qklepifborinapwf")
    public suspend fun allowedRequestTypes(values: List>) {
        this.allowedRequestTypes = Output.all(values)
    }

    /**
     * @param value The denied request types for the Private Endpoint Connection. Possible values are `ClientConnection`, `ServerConnection`, `RESTAPI` and `Trace`.
     * > **NOTE:** When `default_action` is `Allow`, `allowed_request_types`cannot be set. When `default_action` is `Deny`, `denied_request_types`cannot be set.
     */
    @JvmName("fifbdrsubuycoowt")
    public suspend fun deniedRequestTypes(`value`: Output>) {
        this.deniedRequestTypes = value
    }

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

    /**
     * @param values The denied request types for the Private Endpoint Connection. Possible values are `ClientConnection`, `ServerConnection`, `RESTAPI` and `Trace`.
     * > **NOTE:** When `default_action` is `Allow`, `allowed_request_types`cannot be set. When `default_action` is `Deny`, `denied_request_types`cannot be set.
     */
    @JvmName("lscgursqwrerrqyy")
    public suspend fun deniedRequestTypes(values: List>) {
        this.deniedRequestTypes = Output.all(values)
    }

    /**
     * @param value The ID of the Private Endpoint which is based on the Web Pubsub service.
     */
    @JvmName("duqwdohdleowiqea")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value The allowed request types for the Private Endpoint Connection. Possible values are `ClientConnection`, `ServerConnection`, `RESTAPI` and `Trace`.
     */
    @JvmName("iollpfbspdfhistb")
    public suspend fun allowedRequestTypes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowedRequestTypes = mapped
    }

    /**
     * @param values The allowed request types for the Private Endpoint Connection. Possible values are `ClientConnection`, `ServerConnection`, `RESTAPI` and `Trace`.
     */
    @JvmName("glmxtauaaionlmex")
    public suspend fun allowedRequestTypes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowedRequestTypes = mapped
    }

    /**
     * @param value The denied request types for the Private Endpoint Connection. Possible values are `ClientConnection`, `ServerConnection`, `RESTAPI` and `Trace`.
     * > **NOTE:** When `default_action` is `Allow`, `allowed_request_types`cannot be set. When `default_action` is `Deny`, `denied_request_types`cannot be set.
     */
    @JvmName("ifxttgttmbrmyujy")
    public suspend fun deniedRequestTypes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deniedRequestTypes = mapped
    }

    /**
     * @param values The denied request types for the Private Endpoint Connection. Possible values are `ClientConnection`, `ServerConnection`, `RESTAPI` and `Trace`.
     * > **NOTE:** When `default_action` is `Allow`, `allowed_request_types`cannot be set. When `default_action` is `Deny`, `denied_request_types`cannot be set.
     */
    @JvmName("qfjmqlowjwkatxqp")
    public suspend fun deniedRequestTypes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.deniedRequestTypes = mapped
    }

    /**
     * @param value The ID of the Private Endpoint which is based on the Web Pubsub service.
     */
    @JvmName("edslswcdckrfbtcx")
    public suspend fun id(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.id = mapped
    }

    internal fun build(): NetworkAclPrivateEndpointArgs = NetworkAclPrivateEndpointArgs(
        allowedRequestTypes = allowedRequestTypes,
        deniedRequestTypes = deniedRequestTypes,
        id = id ?: throw PulumiNullFieldException("id"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy