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

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

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.awsnative.lightsail.inputs.InstanceHardwareArgs.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.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Hardware of the Instance.
 * @property cpuCount CPU count of the Instance.
 * @property disks Disks attached to the Instance.
 * @property ramSizeInGb RAM Size of the Instance.
 */
public data class InstanceHardwareArgs(
    public val cpuCount: Output? = null,
    public val disks: Output>? = null,
    public val ramSizeInGb: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.lightsail.inputs.InstanceHardwareArgs =
        com.pulumi.awsnative.lightsail.inputs.InstanceHardwareArgs.builder()
            .cpuCount(cpuCount?.applyValue({ args0 -> args0 }))
            .disks(disks?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .ramSizeInGb(ramSizeInGb?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InstanceHardwareArgs].
 */
@PulumiTagMarker
public class InstanceHardwareArgsBuilder internal constructor() {
    private var cpuCount: Output? = null

    private var disks: Output>? = null

    private var ramSizeInGb: Output? = null

    /**
     * @param value CPU count of the Instance.
     */
    @JvmName("fpdxjsyvippvymnw")
    public suspend fun cpuCount(`value`: Output) {
        this.cpuCount = value
    }

    /**
     * @param value Disks attached to the Instance.
     */
    @JvmName("yixnmmlmckktgvgc")
    public suspend fun disks(`value`: Output>) {
        this.disks = value
    }

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

    /**
     * @param values Disks attached to the Instance.
     */
    @JvmName("libyteafauylprhp")
    public suspend fun disks(values: List>) {
        this.disks = Output.all(values)
    }

    /**
     * @param value RAM Size of the Instance.
     */
    @JvmName("lpkstcopbbkqdvux")
    public suspend fun ramSizeInGb(`value`: Output) {
        this.ramSizeInGb = value
    }

    /**
     * @param value CPU count of the Instance.
     */
    @JvmName("jhloxkdyqqotmdpn")
    public suspend fun cpuCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cpuCount = mapped
    }

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

    /**
     * @param argument Disks attached to the Instance.
     */
    @JvmName("jxnwycyyxhmbtnyq")
    public suspend fun disks(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            InstanceDiskArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.disks = mapped
    }

    /**
     * @param argument Disks attached to the Instance.
     */
    @JvmName("muxbwspteblmyaji")
    public suspend fun disks(vararg argument: suspend InstanceDiskArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            InstanceDiskArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.disks = mapped
    }

    /**
     * @param argument Disks attached to the Instance.
     */
    @JvmName("akwmsnwdtwtcyfgv")
    public suspend fun disks(argument: suspend InstanceDiskArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(InstanceDiskArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.disks = mapped
    }

    /**
     * @param values Disks attached to the Instance.
     */
    @JvmName("bfjhyfmwuqjfmnvf")
    public suspend fun disks(vararg values: InstanceDiskArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.disks = mapped
    }

    /**
     * @param value RAM Size of the Instance.
     */
    @JvmName("vfakalhakydhlmkl")
    public suspend fun ramSizeInGb(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ramSizeInGb = mapped
    }

    internal fun build(): InstanceHardwareArgs = InstanceHardwareArgs(
        cpuCount = cpuCount,
        disks = disks,
        ramSizeInGb = ramSizeInGb,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy