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

com.pulumi.azure.containerservice.kotlin.inputs.RegistryNetworkRuleSetIpRuleArgs.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.containerservice.kotlin.inputs

import com.pulumi.azure.containerservice.inputs.RegistryNetworkRuleSetIpRuleArgs.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 behaviour for requests matching this rule. At this time the only supported value is `Allow`
 * @property ipRange The CIDR block from which requests will match the rule.
 */
public data class RegistryNetworkRuleSetIpRuleArgs(
    public val action: Output,
    public val ipRange: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.containerservice.inputs.RegistryNetworkRuleSetIpRuleArgs =
        com.pulumi.azure.containerservice.inputs.RegistryNetworkRuleSetIpRuleArgs.builder()
            .action(action.applyValue({ args0 -> args0 }))
            .ipRange(ipRange.applyValue({ args0 -> args0 })).build()
}

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

    private var ipRange: Output? = null

    /**
     * @param value The behaviour for requests matching this rule. At this time the only supported value is `Allow`
     */
    @JvmName("hmykyhlxgqinbknf")
    public suspend fun action(`value`: Output) {
        this.action = value
    }

    /**
     * @param value The CIDR block from which requests will match the rule.
     */
    @JvmName("jtwxktjrvbiocqxm")
    public suspend fun ipRange(`value`: Output) {
        this.ipRange = value
    }

    /**
     * @param value The behaviour for requests matching this rule. At this time the only supported value is `Allow`
     */
    @JvmName("tpjvuvfalpnfdrov")
    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("mejjcsbwvimgovva")
    public suspend fun ipRange(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ipRange = mapped
    }

    internal fun build(): RegistryNetworkRuleSetIpRuleArgs = RegistryNetworkRuleSetIpRuleArgs(
        action = action ?: throw PulumiNullFieldException("action"),
        ipRange = ipRange ?: throw PulumiNullFieldException("ipRange"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy