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

com.pulumi.azure.eventhub.kotlin.inputs.EventHubNamespaceNetworkRulesetsIpRuleArgs.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: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.eventhub.kotlin.inputs

import com.pulumi.azure.eventhub.inputs.EventHubNamespaceNetworkRulesetsIpRuleArgs.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 The action to take when the rule is matched. Possible values are `Allow`. Defaults to `Allow`.
 * @property ipMask The IP mask to match on.
 */
public data class EventHubNamespaceNetworkRulesetsIpRuleArgs(
    public val action: Output? = null,
    public val ipMask: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.eventhub.inputs.EventHubNamespaceNetworkRulesetsIpRuleArgs =
        com.pulumi.azure.eventhub.inputs.EventHubNamespaceNetworkRulesetsIpRuleArgs.builder()
            .action(action?.applyValue({ args0 -> args0 }))
            .ipMask(ipMask.applyValue({ args0 -> args0 })).build()
}

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

    private var ipMask: Output? = null

    /**
     * @param value The action to take when the rule is matched. Possible values are `Allow`. Defaults to `Allow`.
     */
    @JvmName("honteddcwmsvfxst")
    public suspend fun action(`value`: Output) {
        this.action = value
    }

    /**
     * @param value The IP mask to match on.
     */
    @JvmName("irpmaqiodmaxnbiy")
    public suspend fun ipMask(`value`: Output) {
        this.ipMask = value
    }

    /**
     * @param value The action to take when the rule is matched. Possible values are `Allow`. Defaults to `Allow`.
     */
    @JvmName("edlrvaqjbfctuetl")
    public suspend fun action(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.action = mapped
    }

    /**
     * @param value The IP mask to match on.
     */
    @JvmName("tlwwqhkmxwpyrdmp")
    public suspend fun ipMask(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ipMask = mapped
    }

    internal fun build(): EventHubNamespaceNetworkRulesetsIpRuleArgs =
        EventHubNamespaceNetworkRulesetsIpRuleArgs(
            action = action,
            ipMask = ipMask ?: throw PulumiNullFieldException("ipMask"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy