All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.networkanalytics.kotlin.inputs.IPRulesArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.networkanalytics.kotlin.inputs

import com.pulumi.azurenative.networkanalytics.inputs.IPRulesArgs.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

/**
 * IP rule with specific IP or IP range in CIDR format.
 * @property action The action of virtual network rule.
 * @property value IP Rules Value
 */
public data class IPRulesArgs(
    public val action: Output,
    public val `value`: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.networkanalytics.inputs.IPRulesArgs =
        com.pulumi.azurenative.networkanalytics.inputs.IPRulesArgs.builder()
            .action(action.applyValue({ args0 -> args0 }))
            .`value`(`value`?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [IPRulesArgs].
 */
@PulumiTagMarker
public class IPRulesArgsBuilder internal constructor() {
    private var action: Output? = null

    private var `value`: Output? = null

    /**
     * @param value The action of virtual network rule.
     */
    @JvmName("koruxocoqxapgngd")
    public suspend fun action(`value`: Output) {
        this.action = value
    }

    /**
     * @param value IP Rules Value
     */
    @JvmName("xxytnaejbyogmgxq")
    public suspend fun `value`(`value`: Output) {
        this.`value` = value
    }

    /**
     * @param value The action of virtual network rule.
     */
    @JvmName("idfynukftpwcmpqd")
    public suspend fun action(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.action = mapped
    }

    /**
     * @param value IP Rules Value
     */
    @JvmName("asqbebbimfdydcyw")
    public suspend fun `value`(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.`value` = mapped
    }

    internal fun build(): IPRulesArgs = IPRulesArgs(
        action = action ?: throw PulumiNullFieldException("action"),
        `value` = `value`,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy