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

com.pulumi.azurenative.containerservice.kotlin.inputs.ManagedClusterStorageProfileArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.containerservice.kotlin.inputs

import com.pulumi.azurenative.containerservice.inputs.ManagedClusterStorageProfileArgs.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.jvm.JvmName

/**
 * Storage profile for the container service cluster.
 * @property blobCSIDriver AzureBlob CSI Driver settings for the storage profile.
 * @property diskCSIDriver AzureDisk CSI Driver settings for the storage profile.
 * @property fileCSIDriver AzureFile CSI Driver settings for the storage profile.
 * @property snapshotController Snapshot Controller settings for the storage profile.
 */
public data class ManagedClusterStorageProfileArgs(
    public val blobCSIDriver: Output? = null,
    public val diskCSIDriver: Output? = null,
    public val fileCSIDriver: Output? = null,
    public val snapshotController: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.containerservice.inputs.ManagedClusterStorageProfileArgs =
        com.pulumi.azurenative.containerservice.inputs.ManagedClusterStorageProfileArgs.builder()
            .blobCSIDriver(blobCSIDriver?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .diskCSIDriver(diskCSIDriver?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .fileCSIDriver(fileCSIDriver?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .snapshotController(
                snapshotController?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [ManagedClusterStorageProfileArgs].
 */
@PulumiTagMarker
public class ManagedClusterStorageProfileArgsBuilder internal constructor() {
    private var blobCSIDriver: Output? = null

    private var diskCSIDriver: Output? = null

    private var fileCSIDriver: Output? = null

    private var snapshotController: Output? = null

    /**
     * @param value AzureBlob CSI Driver settings for the storage profile.
     */
    @JvmName("tfruyqvsqbgcqmxa")
    public suspend fun blobCSIDriver(`value`: Output) {
        this.blobCSIDriver = value
    }

    /**
     * @param value AzureDisk CSI Driver settings for the storage profile.
     */
    @JvmName("hdvvworpgbxqjmhk")
    public suspend fun diskCSIDriver(`value`: Output) {
        this.diskCSIDriver = value
    }

    /**
     * @param value AzureFile CSI Driver settings for the storage profile.
     */
    @JvmName("rpqiigdbgwfehsux")
    public suspend fun fileCSIDriver(`value`: Output) {
        this.fileCSIDriver = value
    }

    /**
     * @param value Snapshot Controller settings for the storage profile.
     */
    @JvmName("lmfkmwcthyngknwn")
    public suspend fun snapshotController(`value`: Output) {
        this.snapshotController = value
    }

    /**
     * @param value AzureBlob CSI Driver settings for the storage profile.
     */
    @JvmName("smlnlqqfohderjku")
    public suspend fun blobCSIDriver(`value`: ManagedClusterStorageProfileBlobCSIDriverArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.blobCSIDriver = mapped
    }

    /**
     * @param argument AzureBlob CSI Driver settings for the storage profile.
     */
    @JvmName("oykqhhlyxicrtvfl")
    public suspend fun blobCSIDriver(argument: suspend ManagedClusterStorageProfileBlobCSIDriverArgsBuilder.() -> Unit) {
        val toBeMapped = ManagedClusterStorageProfileBlobCSIDriverArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.blobCSIDriver = mapped
    }

    /**
     * @param value AzureDisk CSI Driver settings for the storage profile.
     */
    @JvmName("ktucvdkhrhktxhtq")
    public suspend fun diskCSIDriver(`value`: ManagedClusterStorageProfileDiskCSIDriverArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.diskCSIDriver = mapped
    }

    /**
     * @param argument AzureDisk CSI Driver settings for the storage profile.
     */
    @JvmName("ljlyuokpipibbopg")
    public suspend fun diskCSIDriver(argument: suspend ManagedClusterStorageProfileDiskCSIDriverArgsBuilder.() -> Unit) {
        val toBeMapped = ManagedClusterStorageProfileDiskCSIDriverArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.diskCSIDriver = mapped
    }

    /**
     * @param value AzureFile CSI Driver settings for the storage profile.
     */
    @JvmName("jydjbuhlmmfrnuhk")
    public suspend fun fileCSIDriver(`value`: ManagedClusterStorageProfileFileCSIDriverArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fileCSIDriver = mapped
    }

    /**
     * @param argument AzureFile CSI Driver settings for the storage profile.
     */
    @JvmName("ehuxjdyycsdoidgx")
    public suspend fun fileCSIDriver(argument: suspend ManagedClusterStorageProfileFileCSIDriverArgsBuilder.() -> Unit) {
        val toBeMapped = ManagedClusterStorageProfileFileCSIDriverArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.fileCSIDriver = mapped
    }

    /**
     * @param value Snapshot Controller settings for the storage profile.
     */
    @JvmName("mvargjmmcwyrxwuq")
    public suspend fun snapshotController(`value`: ManagedClusterStorageProfileSnapshotControllerArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.snapshotController = mapped
    }

    /**
     * @param argument Snapshot Controller settings for the storage profile.
     */
    @JvmName("noakdipiekflywya")
    public suspend fun snapshotController(argument: suspend ManagedClusterStorageProfileSnapshotControllerArgsBuilder.() -> Unit) {
        val toBeMapped = ManagedClusterStorageProfileSnapshotControllerArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.snapshotController = mapped
    }

    internal fun build(): ManagedClusterStorageProfileArgs = ManagedClusterStorageProfileArgs(
        blobCSIDriver = blobCSIDriver,
        diskCSIDriver = diskCSIDriver,
        fileCSIDriver = fileCSIDriver,
        snapshotController = snapshotController,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy