
com.pulumi.awsnative.lightsail.kotlin.inputs.InstanceHardwareArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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
© 2015 - 2025 Weber Informatics LLC | Privacy Policy