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

com.pulumi.azure.batch.kotlin.inputs.AccountNetworkProfileAccountAccessArgs.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.batch.kotlin.inputs

import com.pulumi.azure.batch.inputs.AccountNetworkProfileAccountAccessArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property defaultAction Specifies the default action for the account access. Possible values are `Allow` and `Deny`. Defaults to `Deny`.
 * @property ipRules One or more `ip_rule` blocks as defined below.
 */
public data class AccountNetworkProfileAccountAccessArgs(
    public val defaultAction: Output? = null,
    public val ipRules: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.batch.inputs.AccountNetworkProfileAccountAccessArgs =
        com.pulumi.azure.batch.inputs.AccountNetworkProfileAccountAccessArgs.builder()
            .defaultAction(defaultAction?.applyValue({ args0 -> args0 }))
            .ipRules(
                ipRules?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [AccountNetworkProfileAccountAccessArgs].
 */
@PulumiTagMarker
public class AccountNetworkProfileAccountAccessArgsBuilder internal constructor() {
    private var defaultAction: Output? = null

    private var ipRules: Output>? = null

    /**
     * @param value Specifies the default action for the account access. Possible values are `Allow` and `Deny`. Defaults to `Deny`.
     */
    @JvmName("dqyqrsfwcmtghuox")
    public suspend fun defaultAction(`value`: Output) {
        this.defaultAction = value
    }

    /**
     * @param value One or more `ip_rule` blocks as defined below.
     */
    @JvmName("crnolpwrawbibvcw")
    public suspend fun ipRules(`value`: Output>) {
        this.ipRules = value
    }

    @JvmName("gvebxlbfehvtfnib")
    public suspend fun ipRules(vararg values: Output) {
        this.ipRules = Output.all(values.asList())
    }

    /**
     * @param values One or more `ip_rule` blocks as defined below.
     */
    @JvmName("fchyjfmhkpmdhyqa")
    public suspend fun ipRules(values: List>) {
        this.ipRules = Output.all(values)
    }

    /**
     * @param value Specifies the default action for the account access. Possible values are `Allow` and `Deny`. Defaults to `Deny`.
     */
    @JvmName("ufxqbgjknehuocst")
    public suspend fun defaultAction(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultAction = mapped
    }

    /**
     * @param value One or more `ip_rule` blocks as defined below.
     */
    @JvmName("rfrpnkbwjnrqxtgr")
    public suspend fun ipRules(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipRules = mapped
    }

    /**
     * @param argument One or more `ip_rule` blocks as defined below.
     */
    @JvmName("bbxugmnyryfcgtkx")
    public suspend
    fun ipRules(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AccountNetworkProfileAccountAccessIpRuleArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.ipRules = mapped
    }

    /**
     * @param argument One or more `ip_rule` blocks as defined below.
     */
    @JvmName("vmunsqwbtmpibsmo")
    public suspend fun ipRules(
        vararg
        argument: suspend AccountNetworkProfileAccountAccessIpRuleArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            AccountNetworkProfileAccountAccessIpRuleArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.ipRules = mapped
    }

    /**
     * @param argument One or more `ip_rule` blocks as defined below.
     */
    @JvmName("jhbkrgbwqlhiehwl")
    public suspend
    fun ipRules(argument: suspend AccountNetworkProfileAccountAccessIpRuleArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            AccountNetworkProfileAccountAccessIpRuleArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.ipRules = mapped
    }

    /**
     * @param values One or more `ip_rule` blocks as defined below.
     */
    @JvmName("xtwssdppahdxeoep")
    public suspend fun ipRules(vararg values: AccountNetworkProfileAccountAccessIpRuleArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ipRules = mapped
    }

    internal fun build(): AccountNetworkProfileAccountAccessArgs =
        AccountNetworkProfileAccountAccessArgs(
            defaultAction = defaultAction,
            ipRules = ipRules,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy