![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.notificationhubs.kotlin.inputs.IpRuleArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.notificationhubs.kotlin.inputs
import com.pulumi.azurenative.notificationhubs.inputs.IpRuleArgs.builder
import com.pulumi.azurenative.notificationhubs.kotlin.enums.AccessRights
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.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* A network authorization rule that filters traffic based on IP address.
* @property ipMask IP mask.
* @property rights List of access rights.
*/
public data class IpRuleArgs(
public val ipMask: Output,
public val rights: Output>>,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.notificationhubs.inputs.IpRuleArgs =
com.pulumi.azurenative.notificationhubs.inputs.IpRuleArgs.builder()
.ipMask(ipMask.applyValue({ args0 -> args0 }))
.rights(
rights.applyValue({ args0 ->
args0.map({ args0 ->
args0.transform(
{ args0 -> args0 },
{ args0 -> args0.let({ args0 -> args0.toJava() }) },
)
})
}),
).build()
}
/**
* Builder for [IpRuleArgs].
*/
@PulumiTagMarker
public class IpRuleArgsBuilder internal constructor() {
private var ipMask: Output? = null
private var rights: Output>>? = null
/**
* @param value IP mask.
*/
@JvmName("jcsmqytfbpgpkkdt")
public suspend fun ipMask(`value`: Output) {
this.ipMask = value
}
/**
* @param value List of access rights.
*/
@JvmName("yrtitsgesbwxevpe")
public suspend fun rights(`value`: Output>>) {
this.rights = value
}
@JvmName("tfwltmfbcpqfikod")
public suspend fun rights(vararg values: Output>) {
this.rights = Output.all(values.asList())
}
/**
* @param values List of access rights.
*/
@JvmName("gbldfjlrtdmdwtrs")
public suspend fun rights(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy