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

com.pulumi.azurenative.azurelargeinstance.kotlin.inputs.StorageProfileArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.azurelargeinstance.kotlin.inputs

import com.pulumi.azurenative.azurelargeinstance.inputs.StorageProfileArgs.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Specifies the storage settings for the Azure Large Instance disks.
 * @property nfsIpAddress IP Address to connect to storage.
 * @property osDisks Specifies information about the operating system disk used by Azure Large
 * Instance.
 */
public data class StorageProfileArgs(
    public val nfsIpAddress: Output? = null,
    public val osDisks: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.azurelargeinstance.inputs.StorageProfileArgs =
        com.pulumi.azurenative.azurelargeinstance.inputs.StorageProfileArgs.builder()
            .nfsIpAddress(nfsIpAddress?.applyValue({ args0 -> args0 }))
            .osDisks(
                osDisks?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [StorageProfileArgs].
 */
@PulumiTagMarker
public class StorageProfileArgsBuilder internal constructor() {
    private var nfsIpAddress: Output? = null

    private var osDisks: Output>? = null

    /**
     * @param value IP Address to connect to storage.
     */
    @JvmName("kkybmfyovgpxjtdv")
    public suspend fun nfsIpAddress(`value`: Output) {
        this.nfsIpAddress = value
    }

    /**
     * @param value Specifies information about the operating system disk used by Azure Large
     * Instance.
     */
    @JvmName("yxfshvvieyccohxd")
    public suspend fun osDisks(`value`: Output>) {
        this.osDisks = value
    }

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

    /**
     * @param values Specifies information about the operating system disk used by Azure Large
     * Instance.
     */
    @JvmName("shrrjvhevxpcxmvy")
    public suspend fun osDisks(values: List>) {
        this.osDisks = Output.all(values)
    }

    /**
     * @param value IP Address to connect to storage.
     */
    @JvmName("mpodycpdpquetapd")
    public suspend fun nfsIpAddress(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nfsIpAddress = mapped
    }

    /**
     * @param value Specifies information about the operating system disk used by Azure Large
     * Instance.
     */
    @JvmName("ieikstnxgkeevkqo")
    public suspend fun osDisks(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.osDisks = mapped
    }

    /**
     * @param argument Specifies information about the operating system disk used by Azure Large
     * Instance.
     */
    @JvmName("eqsaxbgadujaoagy")
    public suspend fun osDisks(argument: List Unit>) {
        val toBeMapped = argument.toList().map { DiskArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.osDisks = mapped
    }

    /**
     * @param argument Specifies information about the operating system disk used by Azure Large
     * Instance.
     */
    @JvmName("rnvhwsngdhhgepra")
    public suspend fun osDisks(vararg argument: suspend DiskArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { DiskArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.osDisks = mapped
    }

    /**
     * @param argument Specifies information about the operating system disk used by Azure Large
     * Instance.
     */
    @JvmName("bgobctccmdabeimw")
    public suspend fun osDisks(argument: suspend DiskArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(DiskArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.osDisks = mapped
    }

    /**
     * @param values Specifies information about the operating system disk used by Azure Large
     * Instance.
     */
    @JvmName("encfdtofrvmofxfo")
    public suspend fun osDisks(vararg values: DiskArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.osDisks = mapped
    }

    internal fun build(): StorageProfileArgs = StorageProfileArgs(
        nfsIpAddress = nfsIpAddress,
        osDisks = osDisks,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy