![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.batch.kotlin.inputs.AccountNetworkProfileNodeManagementAccessIpRuleArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.batch.kotlin.inputs
import com.pulumi.azure.batch.inputs.AccountNetworkProfileNodeManagementAccessIpRuleArgs.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.jvm.JvmName
/**
*
* @property action Specifies the action of the ip rule. The only possible value is `Allow`. Defaults to `Allow`.
* @property ipRange The CIDR block from which requests will match the rule.
*/
public data class AccountNetworkProfileNodeManagementAccessIpRuleArgs(
public val action: Output? = null,
public val ipRange: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.azure.batch.inputs.AccountNetworkProfileNodeManagementAccessIpRuleArgs =
com.pulumi.azure.batch.inputs.AccountNetworkProfileNodeManagementAccessIpRuleArgs.builder()
.action(action?.applyValue({ args0 -> args0 }))
.ipRange(ipRange.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AccountNetworkProfileNodeManagementAccessIpRuleArgs].
*/
@PulumiTagMarker
public class AccountNetworkProfileNodeManagementAccessIpRuleArgsBuilder internal constructor() {
private var action: Output? = null
private var ipRange: Output? = null
/**
* @param value Specifies the action of the ip rule. The only possible value is `Allow`. Defaults to `Allow`.
*/
@JvmName("jhgdfsvlggxuqitc")
public suspend fun action(`value`: Output) {
this.action = value
}
/**
* @param value The CIDR block from which requests will match the rule.
*/
@JvmName("yktdwiutaswsjsnd")
public suspend fun ipRange(`value`: Output) {
this.ipRange = value
}
/**
* @param value Specifies the action of the ip rule. The only possible value is `Allow`. Defaults to `Allow`.
*/
@JvmName("hpwljubeyqfiyegd")
public suspend fun action(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.action = mapped
}
/**
* @param value The CIDR block from which requests will match the rule.
*/
@JvmName("torocifedhovtxso")
public suspend fun ipRange(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.ipRange = mapped
}
internal fun build(): AccountNetworkProfileNodeManagementAccessIpRuleArgs =
AccountNetworkProfileNodeManagementAccessIpRuleArgs(
action = action,
ipRange = ipRange ?: throw PulumiNullFieldException("ipRange"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy