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

com.pulumi.azure.compute.kotlin.inputs.ImageDataDiskArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.compute.kotlin.inputs

import com.pulumi.azure.compute.inputs.ImageDataDiskArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property blobUri Specifies the URI in Azure storage of the blob that you want to use to create the image.
 * @property caching Specifies the caching mode as `ReadWrite`, `ReadOnly`, or `None`. Defaults to `None`.
 * @property lun Specifies the logical unit number of the data disk.
 * @property managedDiskId Specifies the ID of the managed disk resource that you want to use to create the image. Changing this forces a new resource to be created.
 * @property sizeGb Specifies the size of the image to be created. The target size can't be smaller than the source size.
 */
public data class ImageDataDiskArgs(
    public val blobUri: Output? = null,
    public val caching: Output? = null,
    public val lun: Output? = null,
    public val managedDiskId: Output? = null,
    public val sizeGb: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.compute.inputs.ImageDataDiskArgs =
        com.pulumi.azure.compute.inputs.ImageDataDiskArgs.builder()
            .blobUri(blobUri?.applyValue({ args0 -> args0 }))
            .caching(caching?.applyValue({ args0 -> args0 }))
            .lun(lun?.applyValue({ args0 -> args0 }))
            .managedDiskId(managedDiskId?.applyValue({ args0 -> args0 }))
            .sizeGb(sizeGb?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ImageDataDiskArgs].
 */
@PulumiTagMarker
public class ImageDataDiskArgsBuilder internal constructor() {
    private var blobUri: Output? = null

    private var caching: Output? = null

    private var lun: Output? = null

    private var managedDiskId: Output? = null

    private var sizeGb: Output? = null

    /**
     * @param value Specifies the URI in Azure storage of the blob that you want to use to create the image.
     */
    @JvmName("gklwqndcphipdbrq")
    public suspend fun blobUri(`value`: Output) {
        this.blobUri = value
    }

    /**
     * @param value Specifies the caching mode as `ReadWrite`, `ReadOnly`, or `None`. Defaults to `None`.
     */
    @JvmName("dqaefquevyoucjwl")
    public suspend fun caching(`value`: Output) {
        this.caching = value
    }

    /**
     * @param value Specifies the logical unit number of the data disk.
     */
    @JvmName("lafqvbpapbuistfk")
    public suspend fun lun(`value`: Output) {
        this.lun = value
    }

    /**
     * @param value Specifies the ID of the managed disk resource that you want to use to create the image. Changing this forces a new resource to be created.
     */
    @JvmName("mkuhaylklajeygna")
    public suspend fun managedDiskId(`value`: Output) {
        this.managedDiskId = value
    }

    /**
     * @param value Specifies the size of the image to be created. The target size can't be smaller than the source size.
     */
    @JvmName("mqeupaoxerxxqgpa")
    public suspend fun sizeGb(`value`: Output) {
        this.sizeGb = value
    }

    /**
     * @param value Specifies the URI in Azure storage of the blob that you want to use to create the image.
     */
    @JvmName("yxrlbjyjdmsyixdn")
    public suspend fun blobUri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.blobUri = mapped
    }

    /**
     * @param value Specifies the caching mode as `ReadWrite`, `ReadOnly`, or `None`. Defaults to `None`.
     */
    @JvmName("topyvgpahvvuovvs")
    public suspend fun caching(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.caching = mapped
    }

    /**
     * @param value Specifies the logical unit number of the data disk.
     */
    @JvmName("lqnkbdoxfgjksoxe")
    public suspend fun lun(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.lun = mapped
    }

    /**
     * @param value Specifies the ID of the managed disk resource that you want to use to create the image. Changing this forces a new resource to be created.
     */
    @JvmName("daqcwafwwyuusddi")
    public suspend fun managedDiskId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.managedDiskId = mapped
    }

    /**
     * @param value Specifies the size of the image to be created. The target size can't be smaller than the source size.
     */
    @JvmName("jtfwagodfsnvkfll")
    public suspend fun sizeGb(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sizeGb = mapped
    }

    internal fun build(): ImageDataDiskArgs = ImageDataDiskArgs(
        blobUri = blobUri,
        caching = caching,
        lun = lun,
        managedDiskId = managedDiskId,
        sizeGb = sizeGb,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy