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

com.pulumi.azure.storage.kotlin.inputs.TableAclArgs.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.storage.kotlin.inputs

import com.pulumi.azure.storage.inputs.TableAclArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property accessPolicies An `access_policy` block as defined below.
 * @property id The ID which should be used for this Shared Identifier.
 */
public data class TableAclArgs(
    public val accessPolicies: Output>? = null,
    public val id: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.storage.inputs.TableAclArgs =
        com.pulumi.azure.storage.inputs.TableAclArgs.builder()
            .accessPolicies(
                accessPolicies?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .id(id.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TableAclArgs].
 */
@PulumiTagMarker
public class TableAclArgsBuilder internal constructor() {
    private var accessPolicies: Output>? = null

    private var id: Output? = null

    /**
     * @param value An `access_policy` block as defined below.
     */
    @JvmName("jabyymxnsfkkclky")
    public suspend fun accessPolicies(`value`: Output>) {
        this.accessPolicies = value
    }

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

    /**
     * @param values An `access_policy` block as defined below.
     */
    @JvmName("jgqsrwrvnceggeop")
    public suspend fun accessPolicies(values: List>) {
        this.accessPolicies = Output.all(values)
    }

    /**
     * @param value The ID which should be used for this Shared Identifier.
     */
    @JvmName("yothmciqvhnqaccg")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

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

    /**
     * @param argument An `access_policy` block as defined below.
     */
    @JvmName("lbtpnbmpfbwcjqfn")
    public suspend fun accessPolicies(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TableAclAccessPolicyArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.accessPolicies = mapped
    }

    /**
     * @param argument An `access_policy` block as defined below.
     */
    @JvmName("vcgyecddmepmhawm")
    public suspend fun accessPolicies(vararg argument: suspend TableAclAccessPolicyArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TableAclAccessPolicyArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.accessPolicies = mapped
    }

    /**
     * @param argument An `access_policy` block as defined below.
     */
    @JvmName("ptppaetwfcpvwwfn")
    public suspend fun accessPolicies(argument: suspend TableAclAccessPolicyArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TableAclAccessPolicyArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.accessPolicies = mapped
    }

    /**
     * @param values An `access_policy` block as defined below.
     */
    @JvmName("qutfhsetxmibmsdr")
    public suspend fun accessPolicies(vararg values: TableAclAccessPolicyArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.accessPolicies = mapped
    }

    /**
     * @param value The ID which should be used for this Shared Identifier.
     */
    @JvmName("udedmwqumfucdrlw")
    public suspend fun id(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.id = mapped
    }

    internal fun build(): TableAclArgs = TableAclArgs(
        accessPolicies = accessPolicies,
        id = id ?: throw PulumiNullFieldException("id"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy