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

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

package com.pulumi.azure.iot.kotlin.inputs

import com.pulumi.azure.iot.inputs.IoTHubNetworkRuleSetIpRuleArgs.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 desired action for requests captured by this rule. Possible values are `Allow`. Defaults to `Allow`.
 * @property ipMask The IP address range in CIDR notation for the ip rule.
 * @property name The name of the ip rule.
 */
public data class IoTHubNetworkRuleSetIpRuleArgs(
    public val action: Output? = null,
    public val ipMask: Output,
    public val name: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.iot.inputs.IoTHubNetworkRuleSetIpRuleArgs =
        com.pulumi.azure.iot.inputs.IoTHubNetworkRuleSetIpRuleArgs.builder()
            .action(action?.applyValue({ args0 -> args0 }))
            .ipMask(ipMask.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 })).build()
}

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

    private var ipMask: Output? = null

    private var name: Output? = null

    /**
     * @param value The desired action for requests captured by this rule. Possible values are `Allow`. Defaults to `Allow`.
     */
    @JvmName("gxhokbygiefjoyja")
    public suspend fun action(`value`: Output) {
        this.action = value
    }

    /**
     * @param value The IP address range in CIDR notation for the ip rule.
     */
    @JvmName("tthgqxilgfelodqj")
    public suspend fun ipMask(`value`: Output) {
        this.ipMask = value
    }

    /**
     * @param value The name of the ip rule.
     */
    @JvmName("qywfeswhtiytvgum")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The desired action for requests captured by this rule. Possible values are `Allow`. Defaults to `Allow`.
     */
    @JvmName("hechaatysoothcuu")
    public suspend fun action(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.action = mapped
    }

    /**
     * @param value The IP address range in CIDR notation for the ip rule.
     */
    @JvmName("yokotyvplliiceve")
    public suspend fun ipMask(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ipMask = mapped
    }

    /**
     * @param value The name of the ip rule.
     */
    @JvmName("uusejgtpbbjutciw")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy