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

com.pulumi.kubernetes.policy.v1beta1.kotlin.inputs.AllowedFlexVolumeArgs.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: 4.18.2.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.kubernetes.policy.v1beta1.kotlin.inputs

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.kubernetes.policy.v1beta1.inputs.AllowedFlexVolumeArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * AllowedFlexVolume represents a single Flexvolume that is allowed to be used.
 * @property driver driver is the name of the Flexvolume driver.
 */
public data class AllowedFlexVolumeArgs(
    public val driver: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.policy.v1beta1.inputs.AllowedFlexVolumeArgs =
        com.pulumi.kubernetes.policy.v1beta1.inputs.AllowedFlexVolumeArgs.builder()
            .driver(driver.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AllowedFlexVolumeArgs].
 */
@PulumiTagMarker
public class AllowedFlexVolumeArgsBuilder internal constructor() {
    private var driver: Output? = null

    /**
     * @param value driver is the name of the Flexvolume driver.
     */
    @JvmName("gqhunhmcwqcpxdly")
    public suspend fun driver(`value`: Output) {
        this.driver = value
    }

    /**
     * @param value driver is the name of the Flexvolume driver.
     */
    @JvmName("jbiqkilghjqjqclh")
    public suspend fun driver(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.driver = mapped
    }

    internal fun build(): AllowedFlexVolumeArgs = AllowedFlexVolumeArgs(
        driver = driver ?: throw PulumiNullFieldException("driver"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy