com.pulumi.gcp.notebooks.kotlin.inputs.InstanceReservationAffinityArgs.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.notebooks.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.notebooks.inputs.InstanceReservationAffinityArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property consumeReservationType The type of Compute Reservation.
* Possible values are: `NO_RESERVATION`, `ANY_RESERVATION`, `SPECIFIC_RESERVATION`.
* @property key Corresponds to the label key of reservation resource.
* @property values Corresponds to the label values of reservation resource.
*/
public data class InstanceReservationAffinityArgs(
public val consumeReservationType: Output,
public val key: Output? = null,
public val values: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.notebooks.inputs.InstanceReservationAffinityArgs =
com.pulumi.gcp.notebooks.inputs.InstanceReservationAffinityArgs.builder()
.consumeReservationType(consumeReservationType.applyValue({ args0 -> args0 }))
.key(key?.applyValue({ args0 -> args0 }))
.values(values?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}
/**
* Builder for [InstanceReservationAffinityArgs].
*/
@PulumiTagMarker
public class InstanceReservationAffinityArgsBuilder internal constructor() {
private var consumeReservationType: Output? = null
private var key: Output? = null
private var values: Output>? = null
/**
* @param value The type of Compute Reservation.
* Possible values are: `NO_RESERVATION`, `ANY_RESERVATION`, `SPECIFIC_RESERVATION`.
*/
@JvmName("oxeycvmluggujfqj")
public suspend fun consumeReservationType(`value`: Output) {
this.consumeReservationType = value
}
/**
* @param value Corresponds to the label key of reservation resource.
*/
@JvmName("cnhmlgrbghexquky")
public suspend fun key(`value`: Output) {
this.key = value
}
/**
* @param value Corresponds to the label values of reservation resource.
*/
@JvmName("hetpyyepssqykvep")
public suspend fun values(`value`: Output>) {
this.values = value
}
@JvmName("omebsncspibpsbnq")
public suspend fun values(vararg values: Output) {
this.values = Output.all(values.asList())
}
/**
* @param values Corresponds to the label values of reservation resource.
*/
@JvmName("mownupagfurfidwk")
public suspend fun values(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy