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

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

import com.pulumi.azure.batch.inputs.AccountNetworkProfileNodeManagementAccessArgs.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 node management access. Possible values are `Allow` and `Deny`. Defaults to `Deny`.
 * @property ipRules One or more `ip_rule` blocks as defined below.
 */
public data class AccountNetworkProfileNodeManagementAccessArgs(
    public val defaultAction: Output? = null,
    public val ipRules: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.batch.inputs.AccountNetworkProfileNodeManagementAccessArgs = com.pulumi.azure.batch.inputs.AccountNetworkProfileNodeManagementAccessArgs.builder()
        .defaultAction(defaultAction?.applyValue({ args0 -> args0 }))
        .ipRules(
            ipRules?.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                })
            }),
        ).build()
}

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

    private var ipRules: Output>? = null

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

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

    @JvmName("eawbrswikxhcagra")
    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("mtnxppenpqbcvuyl")
    public suspend fun ipRules(values: List>) {
        this.ipRules = Output.all(values)
    }

    /**
     * @param value Specifies the default action for the node management access. Possible values are `Allow` and `Deny`. Defaults to `Deny`.
     */
    @JvmName("ooistbtvhjxuwjhd")
    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("nihghqvnwtkwqhqv")
    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("vxkyhsynuguwdrdd")
    public suspend fun ipRules(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AccountNetworkProfileNodeManagementAccessIpRuleArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.ipRules = mapped
    }

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy