
com.pulumi.azure.batch.kotlin.inputs.AccountNetworkProfileAccountAccessIpRuleArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.batch.kotlin.inputs
import com.pulumi.azure.batch.inputs.AccountNetworkProfileAccountAccessIpRuleArgs.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 AccountNetworkProfileAccountAccessIpRuleArgs(
public val action: Output? = null,
public val ipRange: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.batch.inputs.AccountNetworkProfileAccountAccessIpRuleArgs = com.pulumi.azure.batch.inputs.AccountNetworkProfileAccountAccessIpRuleArgs.builder()
.action(action?.applyValue({ args0 -> args0 }))
.ipRange(ipRange.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AccountNetworkProfileAccountAccessIpRuleArgs].
*/
@PulumiTagMarker
public class AccountNetworkProfileAccountAccessIpRuleArgsBuilder 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("rqjapsrkukuvykcc")
public suspend fun action(`value`: Output) {
this.action = value
}
/**
* @param value The CIDR block from which requests will match the rule.
*/
@JvmName("ckhbqwjhrhpuvvmr")
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("cpunehmqtsqrefkw")
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("uioxdlktpxktchng")
public suspend fun ipRange(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.ipRange = mapped
}
internal fun build(): AccountNetworkProfileAccountAccessIpRuleArgs =
AccountNetworkProfileAccountAccessIpRuleArgs(
action = action,
ipRange = ipRange ?: throw PulumiNullFieldException("ipRange"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy