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

com.pulumi.azure.batch.kotlin.inputs.AccountNetworkProfileArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.batch.kotlin.inputs

import com.pulumi.azure.batch.inputs.AccountNetworkProfileArgs.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.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property accountAccess An `account_access` block as defined below.
 * @property nodeManagementAccess A `node_management_access` block as defined below.
 * > **NOTE:** At least one of `account_access` or `node_management_access` must be specified.
 */
public data class AccountNetworkProfileArgs(
    public val accountAccess: Output? = null,
    public val nodeManagementAccess: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.batch.inputs.AccountNetworkProfileArgs =
        com.pulumi.azure.batch.inputs.AccountNetworkProfileArgs.builder()
            .accountAccess(accountAccess?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .nodeManagementAccess(
                nodeManagementAccess?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [AccountNetworkProfileArgs].
 */
@PulumiTagMarker
public class AccountNetworkProfileArgsBuilder internal constructor() {
    private var accountAccess: Output? = null

    private var nodeManagementAccess: Output? = null

    /**
     * @param value An `account_access` block as defined below.
     */
    @JvmName("nmdbdolfjnkfrbdk")
    public suspend fun accountAccess(`value`: Output) {
        this.accountAccess = value
    }

    /**
     * @param value A `node_management_access` block as defined below.
     * > **NOTE:** At least one of `account_access` or `node_management_access` must be specified.
     */
    @JvmName("cebcsnlvabjfnptn")
    public suspend fun nodeManagementAccess(`value`: Output) {
        this.nodeManagementAccess = value
    }

    /**
     * @param value An `account_access` block as defined below.
     */
    @JvmName("fwaecvkrfddardsk")
    public suspend fun accountAccess(`value`: AccountNetworkProfileAccountAccessArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accountAccess = mapped
    }

    /**
     * @param argument An `account_access` block as defined below.
     */
    @JvmName("wdrunomkhwwquwlt")
    public suspend fun accountAccess(argument: suspend AccountNetworkProfileAccountAccessArgsBuilder.() -> Unit) {
        val toBeMapped = AccountNetworkProfileAccountAccessArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.accountAccess = mapped
    }

    /**
     * @param value A `node_management_access` block as defined below.
     * > **NOTE:** At least one of `account_access` or `node_management_access` must be specified.
     */
    @JvmName("rjjmjniwxurydagg")
    public suspend fun nodeManagementAccess(`value`: AccountNetworkProfileNodeManagementAccessArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nodeManagementAccess = mapped
    }

    /**
     * @param argument A `node_management_access` block as defined below.
     * > **NOTE:** At least one of `account_access` or `node_management_access` must be specified.
     */
    @JvmName("qevoequjbjksjvwg")
    public suspend fun nodeManagementAccess(argument: suspend AccountNetworkProfileNodeManagementAccessArgsBuilder.() -> Unit) {
        val toBeMapped = AccountNetworkProfileNodeManagementAccessArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.nodeManagementAccess = mapped
    }

    internal fun build(): AccountNetworkProfileArgs = AccountNetworkProfileArgs(
        accountAccess = accountAccess,
        nodeManagementAccess = nodeManagementAccess,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy