com.pulumi.kubernetes.policy.v1beta1.kotlin.inputs.AllowedFlexVolumeArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-kubernetes-kotlin Show documentation
Show all versions of pulumi-kubernetes-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.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