com.pulumi.azurenative.webpubsub.kotlin.inputs.NetworkACLArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.webpubsub.kotlin.inputs
import com.pulumi.azurenative.webpubsub.inputs.NetworkACLArgs.builder
import com.pulumi.azurenative.webpubsub.kotlin.enums.WebPubSubRequestType
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.collections.List
import kotlin.jvm.JvmName
/**
* Network ACL
* @property allow Allowed request types. The value can be one or more of: ClientConnection, ServerConnection, RESTAPI.
* @property deny Denied request types. The value can be one or more of: ClientConnection, ServerConnection, RESTAPI.
*/
public data class NetworkACLArgs(
public val allow: Output>>? = null,
public val deny: Output>>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.webpubsub.inputs.NetworkACLArgs =
com.pulumi.azurenative.webpubsub.inputs.NetworkACLArgs.builder()
.allow(
allow?.applyValue({ args0 ->
args0.map({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
})
}),
)
.deny(
deny?.applyValue({ args0 ->
args0.map({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
})
}),
).build()
}
/**
* Builder for [NetworkACLArgs].
*/
@PulumiTagMarker
public class NetworkACLArgsBuilder internal constructor() {
private var allow: Output>>? = null
private var deny: Output>>? = null
/**
* @param value Allowed request types. The value can be one or more of: ClientConnection, ServerConnection, RESTAPI.
*/
@JvmName("qojmenecwttsmyhp")
public suspend fun allow(`value`: Output>>) {
this.allow = value
}
@JvmName("kpfcomusehlbkcuo")
public suspend fun allow(vararg values: Output>) {
this.allow = Output.all(values.asList())
}
/**
* @param values Allowed request types. The value can be one or more of: ClientConnection, ServerConnection, RESTAPI.
*/
@JvmName("ixoybmyygauohbqi")
public suspend fun allow(values: List