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

com.pulumi.azure.iotcentral.kotlin.inputs.ApplicationNetworkRuleSetIpRuleArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.iotcentral.kotlin.inputs

import com.pulumi.azure.iotcentral.inputs.ApplicationNetworkRuleSetIpRuleArgs.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 ipMask The IP address range in CIDR notation for the IP Rule.
 * @property name The name of the IP Rule
 */
public data class ApplicationNetworkRuleSetIpRuleArgs(
    public val ipMask: Output,
    public val name: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.iotcentral.inputs.ApplicationNetworkRuleSetIpRuleArgs =
        com.pulumi.azure.iotcentral.inputs.ApplicationNetworkRuleSetIpRuleArgs.builder()
            .ipMask(ipMask.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ApplicationNetworkRuleSetIpRuleArgs].
 */
@PulumiTagMarker
public class ApplicationNetworkRuleSetIpRuleArgsBuilder internal constructor() {
    private var ipMask: Output? = null

    private var name: Output? = null

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

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

    /**
     * @param value The IP address range in CIDR notation for the IP Rule.
     */
    @JvmName("fnnxgqqglsyfouyy")
    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("sbkaixcncmcjuhnv")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy