![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.devices.kotlin.inputs.NetworkRuleSetIpRuleArgs.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.devices.kotlin.inputs
import com.pulumi.azurenative.devices.inputs.NetworkRuleSetIpRuleArgs.builder
import com.pulumi.azurenative.devices.kotlin.enums.NetworkRuleIPAction
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.jvm.JvmName
/**
* IP Rule to be applied as part of Network Rule Set
* @property action IP Filter Action
* @property filterName Name of the IP filter rule.
* @property ipMask A string that contains the IP address range in CIDR notation for the rule.
*/
public data class NetworkRuleSetIpRuleArgs(
public val action: Output>? = null,
public val filterName: Output,
public val ipMask: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.devices.inputs.NetworkRuleSetIpRuleArgs =
com.pulumi.azurenative.devices.inputs.NetworkRuleSetIpRuleArgs.builder()
.action(
action?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.filterName(filterName.applyValue({ args0 -> args0 }))
.ipMask(ipMask.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [NetworkRuleSetIpRuleArgs].
*/
@PulumiTagMarker
public class NetworkRuleSetIpRuleArgsBuilder internal constructor() {
private var action: Output>? = null
private var filterName: Output? = null
private var ipMask: Output? = null
/**
* @param value IP Filter Action
*/
@JvmName("npefokytbduoccmr")
public suspend fun action(`value`: Output>) {
this.action = value
}
/**
* @param value Name of the IP filter rule.
*/
@JvmName("yhcvgckwkbimfvhd")
public suspend fun filterName(`value`: Output) {
this.filterName = value
}
/**
* @param value A string that contains the IP address range in CIDR notation for the rule.
*/
@JvmName("qtuebidytwagfxie")
public suspend fun ipMask(`value`: Output) {
this.ipMask = value
}
/**
* @param value IP Filter Action
*/
@JvmName("rulocojotrgqcywm")
public suspend fun action(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.action = mapped
}
/**
* @param value IP Filter Action
*/
@JvmName("bytiahptpttepdfw")
public fun action(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.action = mapped
}
/**
* @param value IP Filter Action
*/
@JvmName("dpnukgoayathboax")
public fun action(`value`: NetworkRuleIPAction) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.action = mapped
}
/**
* @param value Name of the IP filter rule.
*/
@JvmName("rttwuajpdrdewqor")
public suspend fun filterName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.filterName = mapped
}
/**
* @param value A string that contains the IP address range in CIDR notation for the rule.
*/
@JvmName("uomnbscuxihuyrca")
public suspend fun ipMask(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.ipMask = mapped
}
internal fun build(): NetworkRuleSetIpRuleArgs = NetworkRuleSetIpRuleArgs(
action = action,
filterName = filterName ?: throw PulumiNullFieldException("filterName"),
ipMask = ipMask ?: throw PulumiNullFieldException("ipMask"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy