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

com.pulumi.azure.storage.kotlin.inputs.GetShareAclAccessPolicy.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.GetShareAclAccessPolicy.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property expiry The time at which this Access Policy should be valid until, in [ISO8601](https://en.wikipedia.org/wiki/ISO_8601) format.
 * @property permissions The permissions which should be associated with this Shared Identifier. Possible value is combination of `r` (read), `w` (write), `d` (delete), and `l` (list).
 * @property start The time at which this Access Policy should be valid from, in [ISO8601](https://en.wikipedia.org/wiki/ISO_8601) format.
 */
public data class GetShareAclAccessPolicy(
    public val expiry: String,
    public val permissions: String,
    public val start: String,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.storage.inputs.GetShareAclAccessPolicy =
        com.pulumi.azure.storage.inputs.GetShareAclAccessPolicy.builder()
            .expiry(expiry.let({ args0 -> args0 }))
            .permissions(permissions.let({ args0 -> args0 }))
            .start(start.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetShareAclAccessPolicy].
 */
@PulumiTagMarker
public class GetShareAclAccessPolicyBuilder internal constructor() {
    private var expiry: String? = null

    private var permissions: String? = null

    private var start: String? = null

    /**
     * @param value The time at which this Access Policy should be valid until, in [ISO8601](https://en.wikipedia.org/wiki/ISO_8601) format.
     */
    @JvmName("gkvnytbyldvjkgak")
    public suspend fun expiry(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.expiry = mapped
    }

    /**
     * @param value The permissions which should be associated with this Shared Identifier. Possible value is combination of `r` (read), `w` (write), `d` (delete), and `l` (list).
     */
    @JvmName("htythbjmiqaxojvb")
    public suspend fun permissions(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.permissions = mapped
    }

    /**
     * @param value The time at which this Access Policy should be valid from, in [ISO8601](https://en.wikipedia.org/wiki/ISO_8601) format.
     */
    @JvmName("fsljcnpkpouvvmjw")
    public suspend fun start(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.start = mapped
    }

    internal fun build(): GetShareAclAccessPolicy = GetShareAclAccessPolicy(
        expiry = expiry ?: throw PulumiNullFieldException("expiry"),
        permissions = permissions ?: throw PulumiNullFieldException("permissions"),
        start = start ?: throw PulumiNullFieldException("start"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy