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

com.pulumi.awsnative.lightsail.kotlin.inputs.InstanceDiskArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.lightsail.kotlin.inputs

import com.pulumi.awsnative.lightsail.inputs.InstanceDiskArgs.builder
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 kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Disk associated with the Instance.
 * @property attachedTo Instance attached to the disk.
 * @property attachmentState Attachment state of the disk.
 * @property diskName The names to use for your new Lightsail disk.
 * @property iops IOPS of disk.
 * @property isSystemDisk Is the Attached disk is the system disk of the Instance.
 * @property path Path of the disk attached to the instance.
 * @property sizeInGb Size of the disk attached to the Instance.
 */
public data class InstanceDiskArgs(
    public val attachedTo: Output? = null,
    public val attachmentState: Output? = null,
    public val diskName: Output,
    public val iops: Output? = null,
    public val isSystemDisk: Output? = null,
    public val path: Output,
    public val sizeInGb: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.lightsail.inputs.InstanceDiskArgs =
        com.pulumi.awsnative.lightsail.inputs.InstanceDiskArgs.builder()
            .attachedTo(attachedTo?.applyValue({ args0 -> args0 }))
            .attachmentState(attachmentState?.applyValue({ args0 -> args0 }))
            .diskName(diskName.applyValue({ args0 -> args0 }))
            .iops(iops?.applyValue({ args0 -> args0 }))
            .isSystemDisk(isSystemDisk?.applyValue({ args0 -> args0 }))
            .path(path.applyValue({ args0 -> args0 }))
            .sizeInGb(sizeInGb?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InstanceDiskArgs].
 */
@PulumiTagMarker
public class InstanceDiskArgsBuilder internal constructor() {
    private var attachedTo: Output? = null

    private var attachmentState: Output? = null

    private var diskName: Output? = null

    private var iops: Output? = null

    private var isSystemDisk: Output? = null

    private var path: Output? = null

    private var sizeInGb: Output? = null

    /**
     * @param value Instance attached to the disk.
     */
    @JvmName("ftavmltdlpapjbac")
    public suspend fun attachedTo(`value`: Output) {
        this.attachedTo = value
    }

    /**
     * @param value Attachment state of the disk.
     */
    @JvmName("mskunaxulmiqjpop")
    public suspend fun attachmentState(`value`: Output) {
        this.attachmentState = value
    }

    /**
     * @param value The names to use for your new Lightsail disk.
     */
    @JvmName("kmqsbahcucwbfwql")
    public suspend fun diskName(`value`: Output) {
        this.diskName = value
    }

    /**
     * @param value IOPS of disk.
     */
    @JvmName("lvfqysnxotasbras")
    public suspend fun iops(`value`: Output) {
        this.iops = value
    }

    /**
     * @param value Is the Attached disk is the system disk of the Instance.
     */
    @JvmName("dttnugoovfhmctdl")
    public suspend fun isSystemDisk(`value`: Output) {
        this.isSystemDisk = value
    }

    /**
     * @param value Path of the disk attached to the instance.
     */
    @JvmName("umoadlscbatshkjm")
    public suspend fun path(`value`: Output) {
        this.path = value
    }

    /**
     * @param value Size of the disk attached to the Instance.
     */
    @JvmName("cjmbakrxplqxpxep")
    public suspend fun sizeInGb(`value`: Output) {
        this.sizeInGb = value
    }

    /**
     * @param value Instance attached to the disk.
     */
    @JvmName("mocyqwekuqsdwnbb")
    public suspend fun attachedTo(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.attachedTo = mapped
    }

    /**
     * @param value Attachment state of the disk.
     */
    @JvmName("ydyymhpppmcmdanw")
    public suspend fun attachmentState(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.attachmentState = mapped
    }

    /**
     * @param value The names to use for your new Lightsail disk.
     */
    @JvmName("ywjjxexuralnlbfd")
    public suspend fun diskName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.diskName = mapped
    }

    /**
     * @param value IOPS of disk.
     */
    @JvmName("hvupsvkuckiotbcl")
    public suspend fun iops(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.iops = mapped
    }

    /**
     * @param value Is the Attached disk is the system disk of the Instance.
     */
    @JvmName("puhrpyomgedtcygv")
    public suspend fun isSystemDisk(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.isSystemDisk = mapped
    }

    /**
     * @param value Path of the disk attached to the instance.
     */
    @JvmName("nyrluutjmensppfa")
    public suspend fun path(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.path = mapped
    }

    /**
     * @param value Size of the disk attached to the Instance.
     */
    @JvmName("pawxkhhqnepujwrg")
    public suspend fun sizeInGb(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sizeInGb = mapped
    }

    internal fun build(): InstanceDiskArgs = InstanceDiskArgs(
        attachedTo = attachedTo,
        attachmentState = attachmentState,
        diskName = diskName ?: throw PulumiNullFieldException("diskName"),
        iops = iops,
        isSystemDisk = isSystemDisk,
        path = path ?: throw PulumiNullFieldException("path"),
        sizeInGb = sizeInGb,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy