com.pulumi.gcp.compute.kotlin.inputs.ReservationSpecificReservationInstancePropertiesArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.compute.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.ReservationSpecificReservationInstancePropertiesArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property guestAccelerators Guest accelerator type and count.
* Structure is documented below.
* @property localSsds The amount of local ssd to reserve with each instance. This
* reserves disks of type `local-ssd`.
* Structure is documented below.
* @property machineType The name of the machine type to reserve.
* @property minCpuPlatform The minimum CPU platform for the reservation. For example,
* `"Intel Skylake"`. See
* the CPU platform availability reference](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform#availablezones)
* for information on available CPU platforms.
*/
public data class ReservationSpecificReservationInstancePropertiesArgs(
public val guestAccelerators: Output>? = null,
public val localSsds: Output>? =
null,
public val machineType: Output,
public val minCpuPlatform: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.ReservationSpecificReservationInstancePropertiesArgs =
com.pulumi.gcp.compute.inputs.ReservationSpecificReservationInstancePropertiesArgs.builder()
.guestAccelerators(
guestAccelerators?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.localSsds(
localSsds?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.machineType(machineType.applyValue({ args0 -> args0 }))
.minCpuPlatform(minCpuPlatform?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ReservationSpecificReservationInstancePropertiesArgs].
*/
@PulumiTagMarker
public class ReservationSpecificReservationInstancePropertiesArgsBuilder internal constructor() {
private var guestAccelerators:
Output>? = null
private var localSsds: Output>? =
null
private var machineType: Output? = null
private var minCpuPlatform: Output? = null
/**
* @param value Guest accelerator type and count.
* Structure is documented below.
*/
@JvmName("ibnkqgmwbvmemrff")
public suspend fun guestAccelerators(`value`: Output>) {
this.guestAccelerators = value
}
@JvmName("sdcyqqbhsujvqtfh")
public suspend fun guestAccelerators(vararg values: Output) {
this.guestAccelerators = Output.all(values.asList())
}
/**
* @param values Guest accelerator type and count.
* Structure is documented below.
*/
@JvmName("tljusobeiqwvmtfb")
public suspend fun guestAccelerators(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy