com.pulumi.azure.storage.kotlin.inputs.GetShareAcl.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.storage.kotlin.inputs
import com.pulumi.azure.storage.inputs.GetShareAcl.builder
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 GetShareAcl(
public val accessPolicies: List,
public val id: String,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.storage.inputs.GetShareAcl =
com.pulumi.azure.storage.inputs.GetShareAcl.builder()
.accessPolicies(
accessPolicies.let({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.id(id.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetShareAcl].
*/
@PulumiTagMarker
public class GetShareAclBuilder internal constructor() {
private var accessPolicies: List? = null
private var id: String? = null
/**
* @param value An `access_policy` block as defined below.
*/
@JvmName("johwqgqlsqayanco")
public suspend fun accessPolicies(`value`: List) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.accessPolicies = mapped
}
/**
* @param argument An `access_policy` block as defined below.
*/
@JvmName("qwuymgxgwppprgdn")
public suspend
fun accessPolicies(argument: List Unit>) {
val toBeMapped = argument.toList().map {
GetShareAclAccessPolicyBuilder().applySuspend {
it()
}.build()
}
val mapped = toBeMapped
this.accessPolicies = mapped
}
/**
* @param argument An `access_policy` block as defined below.
*/
@JvmName("pbjjaoxuwwtogfwg")
public suspend fun accessPolicies(
vararg
argument: suspend GetShareAclAccessPolicyBuilder.() -> Unit,
) {
val toBeMapped = argument.toList().map {
GetShareAclAccessPolicyBuilder().applySuspend {
it()
}.build()
}
val mapped = toBeMapped
this.accessPolicies = mapped
}
/**
* @param argument An `access_policy` block as defined below.
*/
@JvmName("njgkihfdikvemsdr")
public suspend fun accessPolicies(argument: suspend GetShareAclAccessPolicyBuilder.() -> Unit) {
val toBeMapped = listOf(GetShareAclAccessPolicyBuilder().applySuspend { argument() }.build())
val mapped = toBeMapped
this.accessPolicies = mapped
}
/**
* @param values An `access_policy` block as defined below.
*/
@JvmName("cbarrprcnywbvyjm")
public suspend fun accessPolicies(vararg values: GetShareAclAccessPolicy) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> args0 })
this.accessPolicies = mapped
}
/**
* @param value The ID which should be used for this Shared Identifier.
*/
@JvmName("ovgcpqcvldedhnom")
public suspend fun id(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.id = mapped
}
internal fun build(): GetShareAcl = GetShareAcl(
accessPolicies = accessPolicies ?: throw PulumiNullFieldException("accessPolicies"),
id = id ?: throw PulumiNullFieldException("id"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy