
com.pulumi.azure.compute.kotlin.inputs.CapacityReservationSkuArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.compute.kotlin.inputs
import com.pulumi.azure.compute.inputs.CapacityReservationSkuArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property capacity Specifies the number of instances to be reserved. It must be greater than or equal to `0` and not exceed the quota in the subscription.
* @property name Name of the sku, such as `Standard_F2`. Changing this forces a new resource to be created.
*/
public data class CapacityReservationSkuArgs(
public val capacity: Output,
public val name: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.compute.inputs.CapacityReservationSkuArgs =
com.pulumi.azure.compute.inputs.CapacityReservationSkuArgs.builder()
.capacity(capacity.applyValue({ args0 -> args0 }))
.name(name.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [CapacityReservationSkuArgs].
*/
@PulumiTagMarker
public class CapacityReservationSkuArgsBuilder internal constructor() {
private var capacity: Output? = null
private var name: Output? = null
/**
* @param value Specifies the number of instances to be reserved. It must be greater than or equal to `0` and not exceed the quota in the subscription.
*/
@JvmName("wcnliwvclharrehp")
public suspend fun capacity(`value`: Output) {
this.capacity = value
}
/**
* @param value Name of the sku, such as `Standard_F2`. Changing this forces a new resource to be created.
*/
@JvmName("txnaftksudasttlb")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Specifies the number of instances to be reserved. It must be greater than or equal to `0` and not exceed the quota in the subscription.
*/
@JvmName("pvfxvdwvbqhitgqj")
public suspend fun capacity(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.capacity = mapped
}
/**
* @param value Name of the sku, such as `Standard_F2`. Changing this forces a new resource to be created.
*/
@JvmName("buwsphposeaxhjyh")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
internal fun build(): CapacityReservationSkuArgs = CapacityReservationSkuArgs(
capacity = capacity ?: throw PulumiNullFieldException("capacity"),
name = name ?: throw PulumiNullFieldException("name"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy