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

com.pulumi.azure.storage.kotlin.inputs.AccountSharePropertiesArgs.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.AccountSharePropertiesArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property corsRules A `cors_rule` block as defined below.
 * @property retentionPolicy A `retention_policy` block as defined below.
 * @property smb A `smb` block as defined below.
 */
public data class AccountSharePropertiesArgs(
    public val corsRules: Output>? = null,
    public val retentionPolicy: Output? = null,
    public val smb: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.storage.inputs.AccountSharePropertiesArgs =
        com.pulumi.azure.storage.inputs.AccountSharePropertiesArgs.builder()
            .corsRules(
                corsRules?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .retentionPolicy(retentionPolicy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .smb(smb?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var retentionPolicy: Output? = null

    private var smb: Output? = null

    /**
     * @param value A `cors_rule` block as defined below.
     */
    @JvmName("adfxaqieqwnfywtn")
    public suspend fun corsRules(`value`: Output>) {
        this.corsRules = value
    }

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

    /**
     * @param values A `cors_rule` block as defined below.
     */
    @JvmName("xpmwbjicnjgnbwqr")
    public suspend fun corsRules(values: List>) {
        this.corsRules = Output.all(values)
    }

    /**
     * @param value A `retention_policy` block as defined below.
     */
    @JvmName("ekktpwtiocblcdxx")
    public suspend fun retentionPolicy(`value`: Output) {
        this.retentionPolicy = value
    }

    /**
     * @param value A `smb` block as defined below.
     */
    @JvmName("bgescpmcdtdpwvmb")
    public suspend fun smb(`value`: Output) {
        this.smb = value
    }

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

    /**
     * @param argument A `cors_rule` block as defined below.
     */
    @JvmName("ivifbwntvnssmfiu")
    public suspend
    fun corsRules(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AccountSharePropertiesCorsRuleArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.corsRules = mapped
    }

    /**
     * @param argument A `cors_rule` block as defined below.
     */
    @JvmName("wpqlmfjiyrvejnwp")
    public suspend fun corsRules(
        vararg
        argument: suspend AccountSharePropertiesCorsRuleArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            AccountSharePropertiesCorsRuleArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.corsRules = mapped
    }

    /**
     * @param argument A `cors_rule` block as defined below.
     */
    @JvmName("slamgmblhptuhokr")
    public suspend
    fun corsRules(argument: suspend AccountSharePropertiesCorsRuleArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            AccountSharePropertiesCorsRuleArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.corsRules = mapped
    }

    /**
     * @param values A `cors_rule` block as defined below.
     */
    @JvmName("sbdqwahkqtvaofph")
    public suspend fun corsRules(vararg values: AccountSharePropertiesCorsRuleArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.corsRules = mapped
    }

    /**
     * @param value A `retention_policy` block as defined below.
     */
    @JvmName("mkojqfcwpqbrhafx")
    public suspend fun retentionPolicy(`value`: AccountSharePropertiesRetentionPolicyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.retentionPolicy = mapped
    }

    /**
     * @param argument A `retention_policy` block as defined below.
     */
    @JvmName("jentygjnbokeflwm")
    public suspend
    fun retentionPolicy(argument: suspend AccountSharePropertiesRetentionPolicyArgsBuilder.() -> Unit) {
        val toBeMapped = AccountSharePropertiesRetentionPolicyArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.retentionPolicy = mapped
    }

    /**
     * @param value A `smb` block as defined below.
     */
    @JvmName("ihmtakysodtfkfhc")
    public suspend fun smb(`value`: AccountSharePropertiesSmbArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.smb = mapped
    }

    /**
     * @param argument A `smb` block as defined below.
     */
    @JvmName("aofcbsnqqaeqliya")
    public suspend fun smb(argument: suspend AccountSharePropertiesSmbArgsBuilder.() -> Unit) {
        val toBeMapped = AccountSharePropertiesSmbArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.smb = mapped
    }

    internal fun build(): AccountSharePropertiesArgs = AccountSharePropertiesArgs(
        corsRules = corsRules,
        retentionPolicy = retentionPolicy,
        smb = smb,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy