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

com.pulumi.gcp.compute.kotlin.inputs.ReservationSpecificReservationArgs.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: 8.13.1.0
Show newest version
@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.ReservationSpecificReservationArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property count The number of resources that are allocated.
 * @property inUseCount (Output)
 * How many instances are in use.
 * @property instanceProperties The instance properties for the reservation.
 * Structure is documented below.
 */
public data class ReservationSpecificReservationArgs(
    public val count: Output,
    public val inUseCount: Output? = null,
    public val instanceProperties: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.ReservationSpecificReservationArgs =
        com.pulumi.gcp.compute.inputs.ReservationSpecificReservationArgs.builder()
            .count(count.applyValue({ args0 -> args0 }))
            .inUseCount(inUseCount?.applyValue({ args0 -> args0 }))
            .instanceProperties(
                instanceProperties.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [ReservationSpecificReservationArgs].
 */
@PulumiTagMarker
public class ReservationSpecificReservationArgsBuilder internal constructor() {
    private var count: Output? = null

    private var inUseCount: Output? = null

    private var instanceProperties: Output? =
        null

    /**
     * @param value The number of resources that are allocated.
     */
    @JvmName("wlitfiksabeceoom")
    public suspend fun count(`value`: Output) {
        this.count = value
    }

    /**
     * @param value (Output)
     * How many instances are in use.
     */
    @JvmName("vcvibhqmlgqymnvb")
    public suspend fun inUseCount(`value`: Output) {
        this.inUseCount = value
    }

    /**
     * @param value The instance properties for the reservation.
     * Structure is documented below.
     */
    @JvmName("nemnegkfhbrbwhyf")
    public suspend fun instanceProperties(`value`: Output) {
        this.instanceProperties = value
    }

    /**
     * @param value The number of resources that are allocated.
     */
    @JvmName("nngnblccwbwgfjxd")
    public suspend fun count(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.count = mapped
    }

    /**
     * @param value (Output)
     * How many instances are in use.
     */
    @JvmName("tfsvrnlwbqlswqki")
    public suspend fun inUseCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.inUseCount = mapped
    }

    /**
     * @param value The instance properties for the reservation.
     * Structure is documented below.
     */
    @JvmName("mlhyrfvksqormedd")
    public suspend fun instanceProperties(`value`: ReservationSpecificReservationInstancePropertiesArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.instanceProperties = mapped
    }

    /**
     * @param argument The instance properties for the reservation.
     * Structure is documented below.
     */
    @JvmName("ndtbuvbeppryiagu")
    public suspend fun instanceProperties(argument: suspend ReservationSpecificReservationInstancePropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = ReservationSpecificReservationInstancePropertiesArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.instanceProperties = mapped
    }

    internal fun build(): ReservationSpecificReservationArgs = ReservationSpecificReservationArgs(
        count = count ?: throw PulumiNullFieldException("count"),
        inUseCount = inUseCount,
        instanceProperties = instanceProperties ?: throw PulumiNullFieldException("instanceProperties"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy